Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): inline worktree setup rows and async setup scripts #11832

Mergedjuliusmarmingemerged 4 commits intomain fromrefs/pull/11832/headmerged by juliusmarminge View on GitHub

Showing 18 changed files with 155 additions and 0 deletions (loading 15).

x
0 of 18 viewed, 18 left
1 addition and 0 deletionsapps/server/src/project/ProjectSetupScriptRunner.test.tsModified
View file
@@ -203,6 +203,7 @@
scriptCommand: "bun install",
terminalId: "setup-setup",
cwd: "/repo/worktrees/a",
+ async: true,
});
expect(open).toHaveBeenCalledWith({
threadId: "thread-1",
3 additions and 0 deletionsapps/server/src/project/ProjectSetupScriptRunner.tsModified
View file
@@ -30,6 +30,8 @@
readonly scriptCommand: string;
readonly terminalId: string;
readonly cwd: string;
+ /** False when the script's `async` flag asks the agent to wait for it. */
+ readonly async: boolean;
/**
* Resolves when the script's shell prints the completion sentinel. The
* exit code is null when the terminal exited or was closed before the
@@ -410,6 +412,7 @@
scriptCommand: script.command,
terminalId,
cwd,
+ async: script.async !== false,
...(observed ? { completion: observed.completion } : {}),
} as const;