focus/crates
DaiChaoXiong 9a2d50ee58 fix(core): stream tool output live via ToolExecutionUpdate events
The agent passed None for on_update, so tools (e.g. shell) never forwarded
their incremental output — the UI only saw the final result. Now:

- EventSink: Send + Sync (the forwarding closure must satisfy ToolUpdateSink)
- ToolUpdateSink becomes lifetime-parameterized (bare trait-object aliases
  default to 'static, which forbade borrowing the caller's sink); all tool
  impls updated to &ToolUpdateSink<'_>
- Agent::execute_single forwards each tool update as a ToolExecutionUpdate
  event (Mutex provides interior mutability inside the Fn closure)
- TUI: running tools show the tail of the output live (newest lines), done
  tools show the head + remaining-line hint

regression test: a streaming tool's on_update texts appear as agent events in
order.
2026-08-09 22:55:16 +08:00
..
focus-core fix(core): stream tool output live via ToolExecutionUpdate events 2026-08-09 22:55:16 +08:00
focus-harness refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-json chore(workspace): sync manifests, docs and lockfile 2026-08-09 21:00:04 +08:00
focus-providers fix(core): stream tool output live via ToolExecutionUpdate events 2026-08-09 22:55:16 +08:00
focus-tools fix(core): stream tool output live via ToolExecutionUpdate events 2026-08-09 22:55:16 +08:00
focus-transport refactor(test): move all unit tests from src/ into tests/<module>_tests.rs 2026-08-09 21:09:01 +08:00
focus-tui fix(core): stream tool output live via ToolExecutionUpdate events 2026-08-09 22:55:16 +08:00