Skip to content

feat: add ToolCall component - #2013

Open
kimteayon wants to merge 8 commits into
featurefrom
codex/feature-tool-call
Open

feat: add ToolCall component#2013
kimteayon wants to merge 8 commits into
featurefrom
codex/feature-tool-call

Conversation

@kimteayon

@kimteayon kimteayon commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add the ToolCall component with pending, streaming, running, completed, failed, and cancelled states
  • add controlled/uncontrolled tool approval with async actions, risk presentation, decision receipts, and a headless approvalRender extension point
  • add live/frozen duration display, controlled duration formatting, execution cancellation, retry, copy, RTL, locale, semantic styles, and design tokens
  • add five responsive demos, including a production deployment approval workflow, plus Chinese and English documentation
  • add unit, accessibility, demo snapshots, and update the public export snapshot

The approval API was checked against the interaction patterns used by Vercel AI SDK, assistant-ui, CopilotKit, and OpenAI Agents SDK. Runtime concerns such as policy signing, batch approval, and persisted resume remain outside this presentational component.

Validation

  • TypeScript passed
  • Biome passed
  • Remark passed
  • CSS-in-JS rules passed
  • git diff --check passed
  • unit and accessibility tests passed: 23/23
  • demo tests passed: 7/7, snapshots 5/5
  • documentation site compiled and the ToolCall page returns HTTP 200

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@dosubot dosubot Bot added documentation Improvements or additions to documentation enhancement New feature or request javascript Pull requests that update Javascript code labels Aug 4, 2026
@coderabbitai

coderabbitai Bot commented Aug 4, 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: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7c3497a1-9ec8-44d5-9770-04cce9caf947

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.

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Bundle Report

Changes will decrease total bundle size by 1.85MB (-34.61%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
antdx-array-push 2.13MB -1.85MB (-46.5%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: antdx-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
antdx.min.js (New) 2.13MB 2.13MB 100.0% 🚀
antdx.js (Deleted) -3.98MB 0 bytes -100.0% 🗑️

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploying ant-design-x with  Cloudflare Pages  Cloudflare Pages

Latest commit: ddce9e8
Status: ✅  Deploy successful!
Preview URL: https://60048878.ant-design-x.pages.dev
Branch Preview URL: https://codex-feature-tool-call.ant-design-x.pages.dev

View logs

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/x/dist/antdx.min.js 514.34 KB (+3.85 KB 🔺)
packages/x-sdk/dist/x-sdk.min.js 62.47 KB
packages/x-markdown/dist/x-markdown.min.js 34.42 KB
packages/x-markdown/dist/plugins/latex.min.js 61.91 KB

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.99197% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.20%. Comparing base (c83c28e) to head (9516a22).
⚠️ Report is 6 commits behind head on feature.

Files with missing lines Patch % Lines
packages/x/components/tool-call/ToolCall.tsx 97.93% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           feature    #2013      +/-   ##
===========================================
+ Coverage    97.17%   97.20%   +0.03%     
===========================================
  Files          168      170       +2     
  Lines         6344     6593     +249     
  Branches      1964     2134     +170     
===========================================
+ Hits          6165     6409     +244     
- Misses         177      182       +5     
  Partials         2        2              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant