Skip to content

Commit 4ff90a9

Browse files
test(server): drop low-value handoff delivery case and unrelated user doc
AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b9fd6e3 commit 4ff90a9

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

‎apps/server/src/mcp/WorktreeMcpService.test.ts‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ interface HarnessOptions {
122122
readonly threadAttachedOnRecheck?: boolean;
123123
readonly threadArchivedOnRecheck?: boolean;
124124
readonly threadReadFailsOnRecheck?: boolean;
125-
readonly continuation?: "queued" | "started";
126125
readonly projectMissing?: boolean;
127126
readonly projectReadFails?: boolean;
128127
readonly existingBranchWorktreePath?: string | null;
@@ -175,7 +174,7 @@ const makeHarness = (options: HarnessOptions = {}) => {
175174
userMessageId: command.worktreeContinuation.messageId,
176175
rootNodeId: null,
177176
activeAttemptId: null,
178-
status: options.continuation === "started" ? "starting" : "queued",
177+
status: "queued",
179178
requestedAt: DateTime.makeUnsafe("2026-01-01T00:00:00.000Z"),
180179
startedAt: null,
181180
completedAt: null,
@@ -469,19 +468,6 @@ describe("t3_worktree_handoff", () => {
469468
});
470469
});
471470

472-
it.effect("reports a continuation started when no run was blocking the handoff", () => {
473-
const harness = makeHarness({ continuation: "started" });
474-
return Effect.gen(function* () {
475-
const result = yield* runHandoff(harness, {
476-
branch: "feature/continue-idle",
477-
continuationPrompt: "Keep going.",
478-
});
479-
expect(result.continuation).toEqual({ status: "scheduled", delivery: "started" });
480-
expect(harness.dispatch).toHaveBeenCalledTimes(1);
481-
expect(harness.sendToThread).not.toHaveBeenCalled();
482-
});
483-
});
484-
485471
it.effect("does not queue a continuation when the thread update fails", () => {
486472
const harness = makeHarness({ dispatchFails: true });
487473
return Effect.gen(function* () {

‎docs/user/thread-sidebar.md‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ your model and mode selections, unless the destination project has its own model
1212
Its branch and workspace mode come from your configured defaults. To continue in
1313
an existing worktree, use **New thread in this worktree** from the branch toolbar.
1414

15-
To move an existing thread into a new worktree, ask the agent to hand off to a
16-
worktree with a continuation prompt. Work resumes automatically there with the
17-
conversation preserved.
18-
1915
On mobile, **New thread** starts in the current thread's project, or else in the
2016
last project you opened or chose on that device. If neither is available, the
2117
project picker opens. Turn off **Settings → General → Use last project** to

0 commit comments

Comments
 (0)