Skip to content

Open a web-manual lane when a paused or reopened manual task is resumed - #627

Merged
dev-bokdong merged 1 commit into
devfrom
autopilot/2228
Dec 4, 2026
Merged

dev-bokdong merged 1 commit into
devfrom
autopilot/2228

Conversation

@dev-bokdong

Copy link
Copy Markdown
Collaborator

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 called start_task directly 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 earlier lane: ref with the new lane's. Previously it overwrote every ref (for example sticky:) 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 through startManualLane unless the task has an autopilot lane ref (hasAutopilotLane).
  • Tests: a paused task is staged and started in a lane; a resume keeps 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 typecheck
  • bun test server/src/http/lane-terminal.test.ts (15 pass)
  • npx vitest run src/App.task-status.test.tsx (24 pass)

@dev-bokdong
dev-bokdong merged commit e12ddfc into dev Dec 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant