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
fix(console): approval timeline attachment chip shows its name and opens (#2820) (#2821)
A decision attachment in the approval inbox timeline rendered a nameless "附件"
chip that did nothing on click. Three bugs:
- No filename: the chip resolved its label from `/data/sys_file/{id}` — a system
object a regular approver cannot read — and silently fell back to a generic
label. The name now comes from the attachment descriptor the server returns
(framework #3504), so the real filename shows for every approver.
- Dead click: `openAttachment` called `window.open` after an `await`, so it was
no longer a user gesture and the popup was blocked. It now opens the tab
synchronously up front, then points it at the signed URL.
- Wrong origin: the local adapter's signed URL is server-relative; it is now
resolved against the API origin instead of the console origin.
- Open failures were swallowed silently; the user now gets a toast. New
`approvalsInbox.attachmentOpenFailed` string across all 10 locales.
Verified end-to-end against app-showcase. Refs framework #3504.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments