Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): keep worktree setup state when leaving a thread and returning #11769

Closedmaria-rckswants to merge 3 commits intomain fromrefs/pull/11769/headopened View on GitHub

Showing 3 changed files with 205 additions and 0 deletions (loading 1).

x
0 of 3 viewed, 3 left
85 additions and 0 deletionsapps/web/src/components/ChatView.logic.test.tsModified
View file
@@ -88,6 +88,12 @@
toolGroupConsumesUpwardNavigation,
waitForRevertedMessage,
prepareRevertedMessageAttachments,
+ forgetPendingWorktreeSetup,
+ forgetPendingWorktreeSetupMessage,
+ isPendingWorktreeSetupMessage,
+ peekPendingWorktreeSetup,
+ rememberPendingWorktreeSetup,
+ resetPendingWorktreeSetups,
} from "./ChatView.logic";
​
describe("agent browser close confirmation", () => {
@@ -2472,3 +2478,82 @@
+​
+describe("pending worktree setup handoff", () => {
+ const ownerKey = "draft-1";
+ const threadKey = "environment-1:thread-1";
+ const message = {
+ id: MessageId.make("pending-message"),
+ role: "user" as const,
+ text: "start in a new worktree",
+ turnId: null,
+ createdAt: now,
+ updatedAt: now,
+ streaming: false,