qwen-code/packages/webui/src
jinye 34cc1c3ede
feat(web-shell): support text file attachments in the composer (#9180)
* feat(web-shell): support text file attachments in the composer

* fix(web-shell): thread file attachments through the retry lineage and reset paths

Review feedback on #9180: the turn-error retry lineage (CancelledRetryState,
failedTurnErrorRetryRef, stash/restore sites) and the session-owner /
identity-mismatch resets managed text/images/inputAnnotations but not files,
which both dropped attachments on restored retries and could leak another
session's attachment into a retry. Also fixes stale enqueuePrompt arity in
the midTurnReconcile tests, chip a11y/truncation, and strips bidi/zero-width
characters from attachment names.

* fix(web-shell): win extension allowlist over conflicting OS MIME bindings

Round-2 review on #9180: .ts/.mts report as video/mp2t (IANA binding) and
.csv/.tsv as application/vnd.ms-excel on Windows+Office, so the non-empty
MIME early-return made the extension allowlist unreachable for flagship
source files. Extension and well-known-name (Dockerfile/Makefile/LICENSE/...)
fallbacks now apply even when a conflicting MIME is present; the downstream
NUL sniff still rejects actually-binary content. Also adds the failed-prompt
retry variant with files, the full-shape file assertion, and the
cancelled-retry no-resubmit pin from the round-2 test suggestions.
2026-08-15 16:34:20 +00:00
..
adapters fix(core): separate hook context from transcript display (#7948) 2026-08-08 02:03:20 +00:00
components fix(core): separate hook context from transcript display (#7948) 2026-08-08 02:03:20 +00:00
constants feat(acp): dedicated agent permission dialog via _meta.toolName (follow-up to #5085) (#5105) 2026-06-14 23:27:38 +08:00
context feat(webui): add webview container and isolate styles for VSCode integration 2026-01-17 10:53:32 +08:00
daemon feat(web-shell): support text file attachments in the composer (#9180) 2026-08-15 16:34:20 +00:00
hooks fix(webui): route useLocalStorage functional updates through prev state (#6905) 2026-07-15 05:03:04 +00:00
styles feat(cli, webui): add follow-up suggestions feature (#2525) 2026-04-03 20:07:23 +08:00
types feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00
utils fix(vscode-companion): slash command completion not triggering after message submit (#3609) 2026-04-26 22:27:54 +08:00
daemon-react-sdk.ts feat(web-shell): support text file attachments in the composer (#9180) 2026-08-15 16:34:20 +00:00
index.ts feat(daemon): merge daemon-mode feature batch into main (#4490) 2026-06-12 00:34:49 +08:00