Repository navigation
Open a web-manual lane when a paused or reopened manual task is resumed - #627
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Resuming a paused or reopened manual task from the web app now opens a web-manual lane, the same way a first Start does. A paused task that carries an autopilot lane's ref still resumes directly, and its lane picks the work up again.
Why
Only a never-started task went through
POST /api/tasks/:id/manual-start. A task that was started once and later paused or reopened showed Resume, which calledstart_taskdirectly and opened no lane, and the server also refused a manual start for any task that had started before. Such a task therefore never got a lane, and a task already in progress without one had no way to get one.Changes
server/src/http/lane-terminal.ts: a manual start accepts a paused planned task unless it carries a non-manual (autopilot)lane:ref. The commit keeps the task's other refs and replaces an earlierlane:ref with the new lane's. Previously it overwrote every ref (for examplesticky:) with the lane ref alone. Dori already reuses a web-manual lane of the same task that is still open.src/lib/queries.ts,src/components/task-row.tsx,src/lib/task-chats.ts: Resume goes throughstartManualLaneunless the task has an autopilot lane ref (hasAutopilotLane).sticky:refs and swaps the old manual lane ref; a paused task with an autopilot lane is refused and left alone; the web app resumes through manual-start, or directly for an autopilot lane.A task that is in progress without a lane (started before manual lanes existed) gets one by pausing it and then resuming it.
Checks
npm run typecheckbun test server/src/http/lane-terminal.test.ts(15 pass)npx vitest run src/App.task-status.test.tsx(24 pass)