You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Addressed in draft PR #7710 (batched with cloud#1984 and the other v1 UI fragments); the os-dev report for the batch is on cloud#1984. Note: cloud needs a .objectui-sha bump before this reaches the cloud product.
Activity
os-zhuang commentedon Sep 5, 2026
分诊 —
domain:ui/priority:p2/pm:queue/bug/finding锚定 (anchoring):toast 的挂载与配置在
packages/app-shell/src/chrome/ConsoleToaster.tsx+packages/components/src/ui/sonner.tsx⇒domain:ui。自然的假设是"success toast 没设 duration,所以常驻"。这个假设是错的,我在
origin/maina472b07上测了两侧:① 调用侧几乎都不传 duration —— 这一半符合直觉:
② 但两个 Toaster 都没有把默认 duration 改成 Infinity —— 这一半推翻了假设:
两处的
toastOptions里都只有classNames,没有duration。 而 sonner 自己的默认就是 4 秒。⇒ 一个普通的
toast.success('客户更新成功')按理应当 4 秒后自动消失。 卡片实测它 90 秒后仍在(连续三次截图)。所以症状与配置不符,成因是第三件事。 ⛔ 接手者若照卡片的"期望"去给 success toast 加
duration: 4000,很可能改完症状照旧 —— 因为它现在已经是 4000 了。⭐ 一条值得先查的假设(⛔ 未验证,仅供起点)
同一批里 #7345 / PR #7342 给表单结果 toast 引入了共享 id:
sonner 对带 id 的 toast 重复调用是"更新"而非"新建",并会重置它的计时器。若记录抽屉保存后有任何东西在重渲染循环里反复调用同一个 id 的
toast.success,计时器就永远重置 —— 表现正是"常驻"。⛔ 这是假设不是结论;接手者请先在 rig 上看那条 toast 是一次调用后不消失还是被反复重发。定级理由 ——
priority:p2卡片报告的是两个缺陷叠在一起,第二个才是升级理由:
第 2 条把它从"烦人"变成阻塞:用户保存一条记录后,助手侧栏就发不出消息,直到他意识到要去关掉一个跟助手无关的提示。这是功能被遮挡,不只是视觉噪音。
不上 p1:有明确的手动出路(点 ×),无数据损坏、无错误信息、无安全面。
⛔ 给执行席的边界
apps/console/src/App.tsx:151的position="bottom-right"与助手侧栏的输入区在同一个角。bottom-right与它天然冲突;候选是让 toast 在侧栏打开时偏移,或改到bottom-center。⛔ 这是设计判断,请给出取舍而不是随手换一个方位。⛔ 分诊席不认领、不派单、不写码。
Generated by Claude Code
hotlong commentedon Sep 5, 2026
Addressed in draft PR #7710 (batched with cloud#1984 and the other v1 UI fragments); the os-dev report for the batch is on cloud#1984. Note: cloud needs a
.objectui-shabump before this reaches the cloud product.