fix(cli): remove side-effect from agent:end state updater (#133) #147

Merged
jason.woltje merged 3 commits from fix/tui-agent-end-state into main 2026-03-15 19:09:14 +00:00

3 Commits

Author SHA1 Message Date
8820299301 style(gateway): fix prettier formatting in coord.controller
Some checks failed
ci/woodpecker/push/ci Pipeline failed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 14:08:27 -05:00
9a9bf9525f style(gateway): fix prettier formatting in agent.service and git-tools
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 14:08:01 -05:00
5a64b90910 fix(cli): remove side-effect from agent:end state updater (#133)
Use a ref to track current stream text so agent:end can commit the
final message without calling setMessages inside a setCurrentStreamText
updater function, which violates React's rule that state updaters must
be pure.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 14:06:19 -05:00