Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(workflows): stop leaking run progress into the parent transcript

2 months ago

48061c9
Authored
mweinbach7/26/2026, 4:33:36 PM
Every `phase()` and `log()` call wrote a `tool> workflow {...}` line via
ctx.log. The desktop reverse-parses the `tool>` prefix into a tool card
(legacyToolLogs.ts), so a run with dozens of agents sprayed the main thread with
fake tool cards for work that belongs in the run panel.

Those lines were the M1 progress mechanism, added before workflow_progress and
the panel existed. The event now carries the same data, so they are pure
duplication. Genuine failures still reach ctx.log.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk98XjGKJrKp5ynbiNFMFu

Parent54165fa

1 file changed
  • src/workflows/WorkflowRunner.ts+6−2