Skip to content

fix(tui): implement send_tool_start in TuiChannel (#1931)#1935

Merged
bug-ops merged 2 commits intomainfrom
1931-tui-send-tool-start
Mar 16, 2026
Merged

fix(tui): implement send_tool_start in TuiChannel (#1931)#1935
bug-ops merged 2 commits intomainfrom
1931-tui-send-tool-start

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 16, 2026

Summary

  • Add send_tool_start() override to TuiChannel in crates/zeph-tui/src/channel.rs — extracts a human-readable command string from tool params (command/path/url keys, falling back to tool_name) and emits AgentEvent::ToolStart so the TUI shows tool name + spinner immediately on invocation
  • Update handle_tool_output_event() in crates/zeph-tui/src/app.rs — append output content to the existing streaming ToolStart message before finalizing it; retain legacy fallback branch for any edge cases where no prior ToolStart exists

Closes #1931.

Test plan

  • cargo +nightly fmt --check — PASS
  • cargo clippy --workspace --features full -- -D warnings — PASS
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins — 6100 passed
  • Two new unit tests in channel.rs covering param extraction and tool_name fallback

- Add send_tool_start() to TuiChannel: extracts command from params
  (command/path/url keys) with tool_name as fallback, emits AgentEvent::ToolStart
- handle_tool_output_event: append output content when finalizing a
  streaming tool message so native tool calls show their output in TUI
- Add two unit tests for send_tool_start in channel.rs
@bug-ops bug-ops enabled auto-merge (squash) March 16, 2026 22:08
@github-actions github-actions bot added bug Something isn't working size/M Medium PR (51-200 lines) documentation Improvements or additions to documentation rust Rust code changes and removed bug Something isn't working size/M Medium PR (51-200 lines) labels Mar 16, 2026
Resolve CHANGELOG.md conflict — both fix entries retained.
@github-actions github-actions bot added bug Something isn't working size/M Medium PR (51-200 lines) labels Mar 16, 2026
@bug-ops bug-ops merged commit e116604 into main Mar 16, 2026
20 checks passed
@bug-ops bug-ops deleted the 1931-tui-send-tool-start branch March 16, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tui): native tool calls not visible — TuiChannel missing send_tool_start implementation

1 participant