refactor(chat): remove unused send box draft hooks#1958
refactor(chat): remove unused send box draft hooks#1958piorpua merged 1 commit intoiOfficeAI:mainfrom
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Code Review:refactor(chat): remove unused send box draft hooks (#1958)变更概述本 PR 从 方案评估结论:✅ 方案合理 全局搜索确认 问题清单✅ 未发现明显问题,代码质量良好,建议批准合并。 汇总无问题。 结论
本报告由本地 CONCLUSION: APPROVED |
|
✅ 已自动 review,无阻塞性问题,正在触发自动合并。 |
Pull Request
Description
This PR addresses stale draft-hook code in the chat send-box draft module.
What changed
useHasDraftanduseDeleteDrafthad no business-layer usages.useHasDraftuseDeleteDraftuseSWRMutationimport.Why
These hooks looked like dead code and created confusion about expected runtime behavior.
Removing them keeps the draft API surface focused on actually used capabilities and reduces maintenance overhead.
Related Issues
Type of Change
Testing
Validation commands run
bunx tsc --noEmitbun run i18n:typesnode scripts/check-i18n.jsbun run testScreenshots
N/A (no UI changes)
Additional Context
This PR is intentionally scoped to cleanup only: no behavior was added, and no existing business feature path depended on the removed hooks.