Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: worktree threads keep their worktree when the agent starts, and messages sent during setup queue #17654

Mergedmaria-rcksmerged 12 commits intomain fromrefs/pull/17654/headmerged by maria-rcks View on GitHub

Showing 8 changed files with 34 additions and 8 deletions (loading 5).

x
0 of 8 viewed, 8 left
14 additions and 5 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -173,9 +173,15 @@
* The server has not created this thread yet. "preparing" runs while the
* queued creation is delivered (a worktree may be checking out); "failed"
* is a rejected creation whose content went back to the project draft.
+ * `serverOwned` marks a thread the server already created that is still
+ * setting up its worktree; follow-ups queue on the server behind that setup.
readonly creationState:
- | { readonly kind: "preparing"; readonly preparingWorktree: boolean }
+ | {
+ readonly kind: "preparing";
+ readonly preparingWorktree: boolean;
+ readonly serverOwned: boolean;
+ }
| { readonly kind: "failed"; readonly reason: string; readonly onEditTask: () => void }
| null;
readonly activePendingApproval: PendingApproval | null;
@@ -1439,11 +1445,14 @@
canStopThread={props.canStopThread}
environmentId={props.environmentId}
projectCwd={props.threadCwd ?? props.projectWorkspaceRoot}
- // Follow-ups typed during setup wait in the draft: queueing
- // them against a thread id the server may still reject
- // would strand them in the outbox.
+ // Follow-ups typed before the server creates the thread wait in
+ // the draft: queueing them against a thread id the server may
+ // still reject would strand them in the outbox.
sendBlockedReason={
- props.creationState?.kind === "preparing" ? "Starting the task…" : null