Skip to content

feat: add Task component for agent progress - #2015

Open
kimteayon wants to merge 1 commit into
codex/feature-x-sdk-agent-interactionfrom
codex/feature-agent-task
Open

feat: add Task component for agent progress#2015
kimteayon wants to merge 1 commit into
codex/feature-x-sdk-agent-interactionfrom
codex/feature-agent-task

Conversation

@kimteayon

Copy link
Copy Markdown
Collaborator

This is a ...

  • New feature
  • Bug fix
  • Site / documentation improvement
  • Demo improvement
  • Component style improvement
  • TypeScript definition improvement
  • Bundle size optimization
  • Performance optimization
  • Feature enhancement
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Accessibility improvement
  • Other

Related Issues

N/A

Background and Solution

Add a Task component for representing a single long-running Agent task.

  • Support pending, running, completed, failed, and cancelled states.
  • Render progress, results, errors, and cancellation reasons.
  • Support controlled expansion, custom status/progress/result/error rendering, semantic styles, locale, RTL, theme tokens, and XProvider configuration.
  • Replace the temporary task row in the Agent Interaction demo with Task.
  • Keep Task scoped to one task entity; ThoughtChain owns planning and AgentTimeline can compose multiple tasks.
  • Follow the Agent protocol's 0-1 progress ratio and map directly from AgentTaskState.progress.

Testing

  • npm run tsc --workspace packages/x
  • Biome checks for the changed files

Jest is currently blocked before test discovery by an incomplete local @ant-design/cssinjs installation (./useStreaming is missing).

Change Log

Language Changelog
English Add Task for displaying Agent task status, progress, results, and errors.
Chinese 新增 Task 组件,用于展示 Agent 任务状态、进度、结果和错误信息。

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

coderabbitai Bot commented Aug 6, 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: b8939766-7e86-4ed7-8f0c-be6b4083c236

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 6, 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% 🗑️

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/x/dist/antdx.min.js 512.25 KB (+1.77 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

@kimteayon
kimteayon force-pushed the codex/feature-x-sdk-agent-interaction branch from c5e59cb to b50a732 Compare August 9, 2026 17:57
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