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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Motivation
packages/client/ui-model-selection/src/client/ModelSelect.tsx:287-303的settleSelection:选模型失败时弹一个Toast(行 515-523),文案是error.action拼上${error.code}: ${error.message},但 Toast 走的是@deepseek-ai/dsh-client-ui-primitives/src/Toast.tsx的默认时长(HOLD_MS = 3000+FADE_MS = 1000= 4 秒)。实际场景:
minimax/MiniMax-M3不带 effort:error.code: 1210,文案「该模型始终思考,不支持关闭思考;请使用 low、high 或 max」error.code: <credentials error>,文案通常 30~60 个字符用户看到的:Toast 一闪就没,错误码还没看清就被 fade 走了;想重试要再点开 composer,循环反复。截图:toast 已经淡出,错误信息已经没了,但用户对"刚才那个 4214 到底什么意思"毫无头绪。
期望行为:
error.code去搜),或者Data plumbing(可选)
settleSelection返回的 result 里error.code和error.message已经在手(行 290-302),改 Toast 文案 + 加 actions 槽即可。packages/client/ui-primitives/src/Toast.tsx:65-83的actions槽支持「error.code / provider / model」三元组的复制按钮。All reactions