Skip to content

feat(x-sdk): add agent interaction commands - #2011

Merged
kimteayon merged 5 commits into
featurefrom
codex/feature-x-sdk-agent-interaction
Aug 5, 2026
Merged

feat(x-sdk): add agent interaction commands#2011
kimteayon merged 5 commits into
featurefrom
codex/feature-x-sdk-agent-interaction

Conversation

@kimteayon

Copy link
Copy Markdown
Collaborator

Summary

  • add the versioned AgentCommand 0.1 protocol with validation, command factories, action keys, and idempotency keys
  • support approval.resolve, tool.retry, and run.cancel through AgentProvider and useXChat agentActions
  • serialize commands per Run, prevent duplicate actions, track command submission state, and clean up terminal Run transports
  • expose UI-independent Run, ToolCall, Approval, and AgentTimeline selectors
  • extend ToolCall retry metadata and Approval edit, expiry, and version metadata

Validation

  • npm run tsc --workspace packages/x-sdk
  • npm run lint:script --workspace packages/x-sdk
  • npm test --workspace packages/x-sdk -- --runInBand (15 suites, 154 tests)
  • npm run compile --workspace packages/x-sdk
  • git diff --check

RFC

@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 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: 7a106af4-11b5-4d9b-9b0b-186286a27c21

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.87MB (-34.95%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
antdx-array-push 2.11MB -1.87MB (-46.96%) ⬇️

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.11MB 2.11MB 100.0% 🚀
antdx.js (Deleted) -3.98MB 0 bytes -100.0% 🗑️

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.34%. Comparing base (c83c28e) to head (5b1b695).
⚠️ Report is 6 commits behind head on feature.

Additional details and impacted files
@@             Coverage Diff             @@
##           feature    #2011      +/-   ##
===========================================
+ Coverage    97.17%   97.34%   +0.16%     
===========================================
  Files          168      174       +6     
  Lines         6344     6710     +366     
  Branches      1964     2098     +134     
===========================================
+ Hits          6165     6532     +367     
+ Misses         177      176       -1     
  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.

@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 510.49 KB
packages/x-sdk/dist/x-sdk.min.js 62.48 KB (+2.58 KB 🔺)
packages/x-markdown/dist/x-markdown.min.js 34.42 KB
packages/x-markdown/dist/plugins/latex.min.js 61.91 KB

@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: 5b1b695
Status: ✅  Deploy successful!
Preview URL: https://917af90c.ant-design-x.pages.dev
Branch Preview URL: https://codex-feature-x-sdk-agent-in.ant-design-x.pages.dev

View logs

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 5, 2026
@kimteayon
kimteayon merged commit 7080d8d into feature Aug 5, 2026
12 checks passed
@kimteayon
kimteayon deleted the codex/feature-x-sdk-agent-interaction branch August 5, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update Javascript code lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants