Skip to content

Conversation

@kimteayon
Copy link
Collaborator

@kimteayon kimteayon commented Dec 31, 2025

中文版模板 / Chinese template

🤔 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 (about what?)

🔗 Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • For example: close #xxxx, fix #xxxx

💡 Background and Solution

  • The specific problem to be addressed.
  • List the final API implementation and usage if needed.
  • If there are UI/interaction changes, consider providing screenshots or GIFs.

📝 Change Log

Language Changelog
🇺🇸 English
🇨🇳 Chinese 新增 cardType 字段用于渲染卡片类型

Summary by CodeRabbit

发布说明

  • 新功能

    • 附件组件支持泛型化的文件项接口,允许更灵活的自定义文件数据结构与类型。
  • 改进

    • 文件卡片统一为枚举式类型处理,提升类型识别与渲染一致性。
    • 文件列表在构建卡片数据时调整了来源字段,确保卡片接收一致的类型信息。
    • 状态控制改为受控/合并状态处理以增强初始化与同步行为。
  • 文档

    • 更新了附件组件的 API 文档,新增类型定义说明。

✏️ Tip: You can customize this high-level summary in your review settings.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 31, 2025

Preview failed

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 31, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

📝 Walkthrough

Walkthrough

本次变更为附件组件引入泛型(Attachment、AttachmentsProps)、将文件列表状态从 useMergedState 改为 useControlledState、FileCard 内部类型处理改为 CARD_TYPE 枚举,并调整 FileList 中构造 FileCardProps 的字段来源(使用 item.cardType 作为 type)。

Changes

内聚体 / 文件(s) 变更摘要
类型与公开 API
packages/x/components/attachments/index.tsx, packages/x/components/attachments/index.zh-CN.md
新增泛型接口 Attachment<T>AttachmentsProps<T>(基于 UploadFile<T>),items 支持泛型 Attachment<T>[],导出并更新类型签名与文档。
核心状态管理
packages/x/components/attachments/index.tsx
useMergedState 替换为 useControlledState 用于 fileList 管理,初始化由泛型 items 参数驱动,onChange 保持触发流。
文件卡片类型处理
packages/x/components/file-card/FileCard.tsx
引入内部 CARD_TYPE 枚举(FILE/IMAGE/AUDIO/VIDEO);FileCardProps.type 改为 ${CARD_TYPE},内部类型检测与渲染分支改为使用枚举值。
文件列表示例渲染
packages/x/components/attachments/FileList/index.tsx
构造 FileCardProps 时从 item 展开但省略 typecardType,并显式以 item.cardType 赋值给 type(即将类型来源由 type 切换为 cardType)。
杂项 / 包元数据
packages/x/package.json
仅在文件末尾添加换行符,无功能性变更。

Sequence Diagram(s)

(本次改动未满足生成顺序图的条件:变更以类型、局部逻辑和内部常量为主,交互方不足以形成多组件顺序流程图。)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 分钟

🐰 我跳过类型草地轻唱,泛型叶片闪光,
枚举列队分明,卡片不再迷茫,
状态受控步稳,渲染悄悄改行,
小兔鼓掌庆祝,这次改动芬芳。

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR标题准确总结了主要变更:为FileCard组件引入cardType字段,与代码中引入CARD_TYPE枚举、更新FileCardProps.type类型签名、新增Attachment接口中的cardType属性等核心改动相符。
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-Attachments

📜 Recent review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 528b7e6 and 6ca4410.

📒 Files selected for processing (1)
  • packages/x/components/attachments/FileList/index.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/x/components/attachments/FileList/index.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: build preview
  • GitHub Check: size
  • GitHub Check: test
  • GitHub Check: test
  • GitHub Check: Cloudflare Pages

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 and usage tips.

@dosubot dosubot bot added the bug Something isn't working label Dec 31, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kimteayon, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on improving the type handling and flexibility of file attachments within the FileCard and Attachments components. By introducing a dedicated cardType property and an enum for file types, the changes enhance type safety, provide more explicit control over how different file types are rendered, and streamline state management for attachment lists. This ensures a more robust and maintainable system for handling various file types.

Highlights

  • Refactored FileCard Type Handling: Introduced a CARD_TYPE enum to define explicit file types (e.g., 'file', 'image', 'audio', 'video') and updated FileCardProps to use this enum for stricter type definition, enhancing type safety and clarity.
  • Explicit cardType Usage in FileList: The FileList component now explicitly uses an item.cardType property to determine the FileCard's type, allowing for more flexible and controlled type assignment for displayed files.
  • Updated Attachment Interface: The Attachment interface in the Attachments component was enhanced to include an optional cardType property and updated to use a generic type T, providing more flexibility and better type inference for attachment data.
  • State Management Improvement: Switched from useMergedState to useControlledState in the Attachments component for managing the fileList, which typically offers more robust control over component state when dealing with both internal and external state management.
  • Documentation Update: The Chinese documentation (index.zh-CN.md) for the Attachments component was updated to include the definition of the new Attachment interface, ensuring documentation reflects the latest API changes.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@socket-security
Copy link

socket-security bot commented Dec 31, 2025

@kimteayon kimteayon linked an issue Dec 31, 2025 that may be closed by this pull request
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively resolves a property name collision for type on attachment items by introducing cardType. The refactoring to use a CARD_TYPE enum in FileCard.tsx is a great improvement for maintainability, replacing magic strings with a more robust and type-safe approach. The update from useMergedState to useControlledState is also a welcome modernization. My review includes one comment to remove a leftover debugging statement.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 31, 2025

Deploying ant-design-x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6ca4410
Status: ✅  Deploy successful!
Preview URL: https://7bf67d78.ant-design-x.pages.dev
Branch Preview URL: https://fix-attachments-cvk4.ant-design-x.pages.dev

View logs

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
packages/x/components/file-card/FileCard.tsx (1)

28-33: 考虑导出 CARD_TYPE 枚举以提高类型安全性。

当前 CARD_TYPE 枚举仅在文件内部使用,但 FileCardProps.type 的类型定义为 `${CARD_TYPE}`。考虑导出此枚举,以便外部调用方可以使用类型安全的常量而不是字符串字面量。

🔎 建议的改进
-enum CARD_TYPE {
+export enum CARD_TYPE {
   FILE = 'file',
   IMAGE = 'image',
   AUDIO = 'audio',
   VIDEO = 'video',
 }
📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5d4d89 and 480fd04.

📒 Files selected for processing (5)
  • packages/x/components/attachments/FileList/index.tsx
  • packages/x/components/attachments/index.tsx
  • packages/x/components/attachments/index.zh-CN.md
  • packages/x/components/file-card/FileCard.tsx
  • packages/x/package.json
🧰 Additional context used
🧬 Code graph analysis (1)
packages/x/components/file-card/FileCard.tsx (1)
packages/x/components/file-card/utils.ts (1)
  • matchExt (14-16)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: build preview
  • GitHub Check: size
  • GitHub Check: test
  • GitHub Check: test
🔇 Additional comments (6)
packages/x/components/attachments/index.zh-CN.md (1)

55-60: 文档更新准确。

新增的 Attachment 接口文档清晰地说明了 cardType 属性的用途,与代码实现保持一致。

packages/x/components/file-card/FileCard.tsx (2)

248-257: 代码重构提升了一致性。

使用 CARD_TYPE 枚举值替代字符串字面量,增强了代码的可维护性和类型安全性。


70-70: 类型定义更改未发现破坏性变更。

在整个代码库中,FileCardtype 属性的所有用法都仅使用标准枚举值('file''image''audio''video'),没有发现任何自定义或非标准的类型值。所有现有代码与新的严格类型定义 `${CARD_TYPE}` 完全兼容。此改动实际上是一个改进,它在编译时强制执行类型检查,确保了更强的类型安全性。

Likely an incorrect or invalid review comment.

packages/x/components/attachments/index.tsx (3)

1-3: 验证 useControlledState 替换 useMergedState 的行为一致性。

代码从 useMergedState 切换到 useControlledState。请确认两者在受控/非受控模式下的行为一致,特别是初始值处理和更新逻辑。


21-26: 泛型接口设计合理。

新增的 Attachment<T> 接口扩展了 UploadFile<T> 并添加了 cardType 属性,提供了良好的类型安全性和灵活性。cardType 作为可选属性,允许向后兼容。


28-54: 泛型 AttachmentsProps 提升了类型安全。

AttachmentsProps 改为泛型类型,配合 Attachment<T>[],使得类型系统更加健壮,能够在编译时捕获更多类型错误。

@github-actions
Copy link
Contributor

github-actions bot commented Dec 31, 2025

size-limit report 📦

Path Size
packages/x/dist/antdx.min.js 441.22 KB (-13 B 🔽)
packages/x-sdk/dist/x-sdk.min.js 7.58 KB
packages/x-markdown/dist/x-markdown.min.js 28.78 KB
packages/x-markdown/dist/plugins/latex.min.js 61.95 KB

@codecov
Copy link

codecov bot commented Dec 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.95%. Comparing base (a5d4d89) to head (6ca4410).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1610   +/-   ##
=======================================
  Coverage   94.95%   94.95%           
=======================================
  Files         140      140           
  Lines        4263     4263           
  Branches     1200     1203    +3     
=======================================
  Hits         4048     4048           
  Misses        213      213           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 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.

@codecov
Copy link

codecov bot commented Dec 31, 2025

Bundle Report

Changes will increase total bundle size by 1.51MB (80.72%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
x-markdown-array-push 1.61MB 1.51MB (1413.46%) ⬆️⚠️
antdx-array-push 1.76MB 130 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: antdx-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
antdx.min.js 130 bytes 1.76MB 0.01%
view changes for bundle: x-markdown-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
latex.js (New) 513.04kB 513.04kB 100.0% 🚀
static/KaTeX_AMS-Regular.*.ttf (New) 63.63kB 63.63kB 100.0% 🚀
static/KaTeX_Main-Regular.*.ttf (New) 53.58kB 53.58kB 100.0% 🚀
static/KaTeX_Main-Bold.*.ttf (New) 51.34kB 51.34kB 100.0% 🚀
static/KaTeX_Main-Italic.*.ttf (New) 33.58kB 33.58kB 100.0% 🚀
static/KaTeX_AMS-Regular.*.woff (New) 33.52kB 33.52kB 100.0% 🚀
static/KaTeX_Main-BoldItalic.*.ttf (New) 32.97kB 32.97kB 100.0% 🚀
static/KaTeX_Math-Italic.*.ttf (New) 31.31kB 31.31kB 100.0% 🚀
static/KaTeX_Math-BoldItalic.*.ttf (New) 31.2kB 31.2kB 100.0% 🚀
static/KaTeX_Main-Regular.*.woff (New) 30.77kB 30.77kB 100.0% 🚀
static/KaTeX_Main-Bold.*.woff (New) 29.91kB 29.91kB 100.0% 🚀
static/KaTeX_AMS-Regular.*.woff2 (New) 28.08kB 28.08kB 100.0% 🚀
static/KaTeX_Typewriter-Regular.*.ttf (New) 27.56kB 27.56kB 100.0% 🚀
static/KaTeX_Main-Regular.*.woff2 (New) 26.27kB 26.27kB 100.0% 🚀
static/KaTeX_Main-Bold.*.woff2 (New) 25.32kB 25.32kB 100.0% 🚀
static/KaTeX_SansSerif-Bold.*.ttf (New) 24.5kB 24.5kB 100.0% 🚀
latex.css (New) 24.32kB 24.32kB 100.0% 🚀
static/KaTeX_SansSerif-Italic.*.ttf (New) 22.36kB 22.36kB 100.0% 🚀
static/KaTeX_Main-Italic.*.woff (New) 19.68kB 19.68kB 100.0% 🚀
static/KaTeX_Fraktur-Bold.*.ttf (New) 19.58kB 19.58kB 100.0% 🚀
static/KaTeX_Fraktur-Regular.*.ttf (New) 19.57kB 19.57kB 100.0% 🚀
static/KaTeX_SansSerif-Regular.*.ttf (New) 19.44kB 19.44kB 100.0% 🚀
static/KaTeX_Main-BoldItalic.*.woff (New) 19.41kB 19.41kB 100.0% 🚀
static/KaTeX_Math-Italic.*.woff (New) 18.75kB 18.75kB 100.0% 🚀
static/KaTeX_Math-BoldItalic.*.woff (New) 18.67kB 18.67kB 100.0% 🚀
static/KaTeX_Main-Italic.*.woff2 (New) 16.99kB 16.99kB 100.0% 🚀
static/KaTeX_Main-BoldItalic.*.woff2 (New) 16.78kB 16.78kB 100.0% 🚀
static/KaTeX_Script-Regular.*.ttf (New) 16.65kB 16.65kB 100.0% 🚀
static/KaTeX_Math-Italic.*.woff2 (New) 16.44kB 16.44kB 100.0% 🚀
static/KaTeX_Math-BoldItalic.*.woff2 (New) 16.4kB 16.4kB 100.0% 🚀
static/KaTeX_Typewriter-Regular.*.woff (New) 16.03kB 16.03kB 100.0% 🚀
static/KaTeX_SansSerif-Bold.*.woff (New) 14.41kB 14.41kB 100.0% 🚀
static/KaTeX_SansSerif-Italic.*.woff (New) 14.11kB 14.11kB 100.0% 🚀
static/KaTeX_Typewriter-Regular.*.woff2 (New) 13.57kB 13.57kB 100.0% 🚀
static/KaTeX_Fraktur-Bold.*.woff (New) 13.3kB 13.3kB 100.0% 🚀
static/KaTeX_Fraktur-Regular.*.woff (New) 13.21kB 13.21kB 100.0% 🚀
static/KaTeX_Caligraphic-Bold.*.ttf (New) 12.37kB 12.37kB 100.0% 🚀
static/KaTeX_Caligraphic-Regular.*.ttf (New) 12.34kB 12.34kB 100.0% 🚀
static/KaTeX_SansSerif-Regular.*.woff (New) 12.32kB 12.32kB 100.0% 🚀
static/KaTeX_Size1-Regular.*.ttf (New) 12.23kB 12.23kB 100.0% 🚀
static/KaTeX_SansSerif-Bold.*.woff2 (New) 12.22kB 12.22kB 100.0% 🚀
static/KaTeX_SansSerif-Italic.*.woff2 (New) 12.03kB 12.03kB 100.0% 🚀
static/KaTeX_Size2-Regular.*.ttf (New) 11.51kB 11.51kB 100.0% 🚀
static/KaTeX_Fraktur-Bold.*.woff2 (New) 11.35kB 11.35kB 100.0% 🚀
static/KaTeX_Fraktur-Regular.*.woff2 (New) 11.32kB 11.32kB 100.0% 🚀
static/KaTeX_Script-Regular.*.woff (New) 10.59kB 10.59kB 100.0% 🚀
static/KaTeX_Size4-Regular.*.ttf (New) 10.36kB 10.36kB 100.0% 🚀
static/KaTeX_SansSerif-Regular.*.woff2 (New) 10.34kB 10.34kB 100.0% 🚀
static/KaTeX_Script-Regular.*.woff2 (New) 9.64kB 9.64kB 100.0% 🚀
static/KaTeX_Caligraphic-Bold.*.woff (New) 7.72kB 7.72kB 100.0% 🚀
static/KaTeX_Caligraphic-Regular.*.woff (New) 7.66kB 7.66kB 100.0% 🚀
static/KaTeX_Size3-Regular.*.ttf (New) 7.59kB 7.59kB 100.0% 🚀
static/KaTeX_Caligraphic-Bold.*.woff2 (New) 6.91kB 6.91kB 100.0% 🚀
static/KaTeX_Caligraphic-Regular.*.woff2 (New) 6.91kB 6.91kB 100.0% 🚀
static/KaTeX_Size1-Regular.*.woff (New) 6.5kB 6.5kB 100.0% 🚀
static/KaTeX_Size2-Regular.*.woff (New) 6.19kB 6.19kB 100.0% 🚀
static/KaTeX_Size4-Regular.*.woff (New) 5.98kB 5.98kB 100.0% 🚀
static/KaTeX_Size1-Regular.*.woff2 (New) 5.47kB 5.47kB 100.0% 🚀
static/KaTeX_Size2-Regular.*.woff2 (New) 5.21kB 5.21kB 100.0% 🚀
static/KaTeX_Size4-Regular.*.woff2 (New) 4.93kB 4.93kB 100.0% 🚀
static/KaTeX_Size3-Regular.*.woff (New) 4.42kB 4.42kB 100.0% 🚀
static/KaTeX_Size3-Regular.*.woff2 (New) 3.62kB 3.62kB 100.0% 🚀
x-markdown.min.js (Deleted) -103.89kB 0 bytes -100.0% 🗑️
x-markdown.min.css (Deleted) -2.75kB 0 bytes -100.0% 🗑️

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 5, 2026
@kimteayon kimteayon merged commit 6c8d9c6 into main Jan 5, 2026
16 checks passed
@kimteayon kimteayon deleted the fix-Attachments branch January 5, 2026 03:44
kimteayon added a commit that referenced this pull request Jan 7, 2026
* chore: changelog of 2.1.2 (#1603)

* chore: changelog of 2.1.2

* chore: changelog of 2.1.2

* chore: actions docs (#1605)

* feat: test

* feat: x-sdk default messages

* feat: x-sdk default messages

* feat: x-sdk default messages

* test: x-sdk

* feat: x-sdk default messages

* feat: x-sdk default messages

* feat: x-sdk default messages

* feat: x-sdk default messages

* test: x-sdk

* test: x-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* test: x-sdk

* test: x-sdk

* test: x-sdk

* test: x-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat: push

* fix: geshi

* fix: geshi

* fix: classnames => clsx and add noUndeclaredDependencies config (#1608)

* chore: changelog of 2.1.3 (#1614)

* chore: changelog of 2.1.3

* chore: changelog of 2.1.3

* chore: changelog of 2.1.3

* chore(deps-dev): bump inquirer from 12.11.1 to 13.1.0 (#1536)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump openai from 5.23.2 to 6.14.0 (#1538)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Modified the error in writing the extension budget symbol in markdown (#1615)

* fix(attachments):  add cardType for FileCard (#1610)

* fix: attachments

* fix: attachments

* feat: browseeruse

* test: snap

* test: snap

* test: file card

* test: file card

* test: file card

* feat: test

* feat: test

* fix: attachments

* fix: attachments

* fix: attachments

* fix(Sender): inster container & position & update slot test (#1612)

* fix: inster container

* feat: cursor

* feat: cursor

* feat: cursor

* feat: slot test

* test: custom slot

* feat: test of sender

* feat: test of sender

* test: sender

* test: sender

* feat: hook cursor

* feat: hook cursor

* feat: hook cursor

---------

Co-authored-by: Mickey <951203214@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bbimasheep <75004889+Yx0201@users.noreply.github.com>
kimteayon added a commit that referenced this pull request Jan 8, 2026
* feat(XSdk): XRequest support retry

* chore: changelog of 2.1.2 (#1603)

* chore: changelog of 2.1.2

* chore: changelog of 2.1.2

* chore: actions docs (#1605)

* feat: test

* feat: x-sdk default messages

* feat: x-sdk default messages

* feat: x-sdk default messages

* test: x-sdk

* feat: x-sdk default messages

* feat: x-sdk default messages

* feat: x-sdk default messages

* feat: x-sdk default messages

* test: x-sdk

* test: x-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* test: x-sdk

* test: x-sdk

* test: x-sdk

* test: x-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat:s-sdk

* feat: push

* fix: geshi

* fix: geshi

* fix: classnames => clsx and add noUndeclaredDependencies config (#1608)

* chore: changelog of 2.1.3 (#1614)

* chore: changelog of 2.1.3

* chore: changelog of 2.1.3

* chore: changelog of 2.1.3

* chore(deps-dev): bump inquirer from 12.11.1 to 13.1.0 (#1536)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump openai from 5.23.2 to 6.14.0 (#1538)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Modified the error in writing the extension budget symbol in markdown (#1615)

* fix(attachments):  add cardType for FileCard (#1610)

* fix: attachments

* fix: attachments

* feat: browseeruse

* test: snap

* test: snap

* test: file card

* test: file card

* test: file card

* feat: test

* feat: test

* fix: attachments

* fix: attachments

* fix: attachments

* fix(Sender): inster container & position & update slot test (#1612)

* fix: inster container

* feat: cursor

* feat: cursor

* feat: cursor

* feat: slot test

* test: custom slot

* feat: test of sender

* feat: test of sender

* test: sender

* test: sender

* feat: hook cursor

* feat: hook cursor

* feat: hook cursor

* feat: optimize retry

* refactor: optimize retry

---------

Co-authored-by: Mickey <951203214@qq.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bbimasheep <75004889+Yx0201@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attachment 支持自定义文件渲染类型

3 participants