flaxodotdev committed a month ago · 3 changed files
Render a borderless spinner banner for slash-command subtasks (e.g.
/review), styled like the OpenCode sub-agent node, that finalizes to
✓/✗ on completion. The sub-agent's tool calls now stream through the
same markdown/tool-bar pipeline as the main agent instead of compact
one-line status rows; only the subtask's own compaction events are
dropped.
- Add AgentEvent::SubtaskFinished { is_error }, sent by the runner just
before Finished, so the drain swaps the spinner for the final marker.
- Guarantee the banner is finalized even on early return (db open
failure) or panic by hoisting the success flag out of the closure.
- Handle transcript reset/compaction while a subtask runs by no-op'ing
when the banner's lines are gone.