Files
semif-agent/semif_agent
gabby c010cdb44e dashboard: drain the run queue so a multi-step chain completes
A `continue` assessment re-dispatches the next step onto the queue rather than
running it inline, so a multi-step request only finishes when a front end drains
`Scheduler.run_queue()` -- as the CLI and gateway already do. The dashboard ran
only the first step and left the child stranded in the queue, so a compound
request looked finished when it was not.

- `DashboardHandler._complete` runs the returned reply through `_drain_chain`
  and returns the last reply (intermediate steps are hidden at `result`
  verbosity); `/api/submit` and `/api/answer` use it.
- `/api/answer` now also returns `request_id` (`SchedulerReply.run_id`) so a
  front end can cross-link the resumed run.
- `test_submit_completes_a_multi_step_chain` drives a deterministic two-step
  chain and asserts both steps ran, the reply is the final step, nothing is left
  in the queue, and the runs are linked.
2026-10-11 09:32:44 +00:00
..
2026-10-05 23:07:57 +00:00