Skip to content

feat(tools): mirror execute results to tool_output for headless UI#573

Open
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/tool-result-ui
Open

feat(tools): mirror execute results to tool_output for headless UI#573
JessicaMulein wants to merge 1 commit into
cecli-dev:mainfrom
Digital-Defiance:pr/tool-result-ui

Conversation

@JessicaMulein

Copy link
Copy Markdown

Summary

  • Add emit_execute_result_to_ui() so headless consumers (BrightVision tool cards) receive tool execute() return text via tool_output
  • Hook sync tools in BaseTool.process_response and async tools in AgentCoder
  • ls / Command opt out via SKIP_EXECUTE_RESULT_UI when they already stream output during execute
  • Remove Grep TUI-only summary path that hid match content

Test plan

  • pytest cecli/tests/tools/test_tool_result_ui.py cecli/tests/tools/test_grep.py -q

Emit tool return text via emit_execute_result_to_ui so BrightVision and other
headless consumers show Grep/ExploreCode output in tool cards. Sync and async
local tools hook through BaseTool and AgentCoder; ls/Command opt out when they
already stream output during execute.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant