Skip to content

feat(agent-fold): render tool calls with the AI chat's component patterns - #5583

Open
ehayes2000 wants to merge 2 commits into
new-ai-agentsfrom
ehayes2000/agent-fold-tool-rendering
Open

feat(agent-fold): render tool calls with the AI chat's component patterns#5583
ehayes2000 wants to merge 2 commits into
new-ai-agentsfrom
ehayes2000/agent-fold-tool-rendering

Conversation

@ehayes2000

Copy link
Copy Markdown
Contributor

Replaces FoldedContent.tsx's icon+text-only tool rendering with a diff viewer, an ANSI-aware terminal renderer, a collapsible path list, and a generic output block — following the same Tool.* layout patterns and expand/collapse convention already used by the AI chat's tool cards.

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 21d39e22-dee2-4ebb-9084-749beaedcd7f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

@ehayes2000
ehayes2000 force-pushed the ehayes2000/agent-fold-tool-rendering branch from 12c2cf3 to 81ad93b Compare August 12, 2026 14:52
@ehayes2000
ehayes2000 force-pushed the ehayes2000/agent-fold-acp-tool-kinds-specta branch from 2514589 to 254b60f Compare August 12, 2026 14:52
@ehayes2000
ehayes2000 force-pushed the ehayes2000/agent-fold-tool-rendering branch from 81ad93b to d9004e6 Compare August 12, 2026 21:28
… specta

Extends ToolDetail to render all nine official ACP tool kinds (previously
only terminal/edit/read; delete/move/search/fetch/think fell into a generic
Other bucket with content silently dropped), and replaces the hand-maintained
apps/web agent-fold types.ts with a specta-generated file kept in sync via
'bun run gen-agent-fold-types' (crates/agent_fold's export_types binary,
piped through biome so the output matches this repo's formatting), moved
under service-clients/service-agent-fold/generated to match the codebase's
convention for generated client code.
@ehayes2000
ehayes2000 force-pushed the ehayes2000/agent-fold-acp-tool-kinds-specta branch from 254b60f to ca436cd Compare August 12, 2026 21:48
@ehayes2000
ehayes2000 force-pushed the ehayes2000/agent-fold-tool-rendering branch from d9004e6 to 2bc7b06 Compare August 12, 2026 21:48
Base automatically changed from ehayes2000/agent-fold-acp-tool-kinds-specta to new-ai-agents August 12, 2026 21:56
…erns

Replaces FoldedContent.tsx's icon+text-only tool rendering with real
components per ACP tool kind, following the layout patterns already
established by the AI chat's tool cards (Tool.Root/Row/ResultToggle/Response,
the same expand/collapse-behind-a-toggle convention as BashCodeExecution and
WebSearch): a diff viewer (add/remove/context lines, collapsed unchanged
runs), an ANSI-aware terminal output renderer, a collapsible path list, and a
generic output block.
@ehayes2000
ehayes2000 force-pushed the ehayes2000/agent-fold-tool-rendering branch from 2bc7b06 to ccc777d Compare August 13, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant