HERMES-GIELIE/static
humayunak 32df5546b4 fix(webui): prevent approval and clarify cards stealing focus from composer textarea
When tool approval or clarification cards appear during streaming,
they unconditionally call focus() on their input elements via setTimeout,
stealing focus from the composer (#msg) if the user is actively typing.
This silently drops keystrokes mid-type.

Add a guard: only move focus to the card if the composer textarea does
not already have focus. The document.activeElement check matches the
pattern already used upstream in other focus-sensitive components.

Fixes: #
2026-05-24 15:52:00 +00:00
..
vendor chore: vendor streaming-markdown@0.2.15, remove CDN dependency 2026-04-24 01:05:20 +00:00
apple-touch-icon.png feature: add manifest and icons to enable app install on android 2026-05-02 19:06:39 +02:00
boot.js feat: add Hepburn skin (magenta-rose palette) 2026-05-24 03:03:32 +00:00
commands.js fix: honour skin value in theme command 2026-05-20 00:09:06 +00:00
favicon-32.png fix: add favicon (SVG + PNG + ICO), fix static MIME types (#613) 2026-04-16 20:11:02 -07:00
favicon-192.png feature: add manifest and icons to enable app install on android 2026-05-02 19:06:39 +02:00
favicon-512.png feature: add manifest and icons to enable app install on android 2026-05-02 19:06:39 +02:00
favicon-512.svg feature: add manifest and icons to enable app install on android 2026-05-02 19:06:39 +02:00
favicon.ico fix: add favicon (SVG + PNG + ICO), fix static MIME types (#613) 2026-04-16 20:11:02 -07:00
favicon.svg fix: add favicon (SVG + PNG + ICO), fix static MIME types (#613) 2026-04-16 20:11:02 -07:00
i18n.js feat(workspace): add Open in VS Code action for files and folders (#2735) 2026-05-24 04:26:46 +00:00
icons.js Stage 382: PR #2500 (with whitespace polish on panels.js + ARCHITECTURE.md) 2026-05-18 03:45:02 +00:00
index.html feat: add Hepburn skin (magenta-rose palette) 2026-05-24 03:03:32 +00:00
login.js Fix login health probe credentials 2026-05-12 20:09:54 +08:00
manifest.json feat: add browser offline recovery and PWA cache hardening 2026-05-08 21:16:17 +00:00
messages.js fix(webui): prevent approval and clarify cards stealing focus from composer textarea 2026-05-24 15:52:00 +00:00
onboarding.js docs: clarify Anthropic auth choices in onboarding 2026-05-06 06:26:43 +00:00
panels.js fix: kanban worker log URL double query param on non-default boards 2026-05-24 15:52:00 +00:00
sessions.js fix: clear stale inflight UI state (closes #2795, squashed from 5 commits) 2026-05-24 04:08:25 +00:00
style.css feat: add Hepburn skin (magenta-rose palette) 2026-05-24 03:03:32 +00:00
sw.js fix: reduce browser storage pressure 2026-05-16 08:44:04 -07:00
terminal.js fix: anchor active sessions per browser tab 2026-05-01 19:52:05 +08:00
ui.js feat(workspace): add Open in VS Code action for files and folders (#2735) 2026-05-24 04:26:46 +00:00
workspace.js fix: time out hung browser api requests 2026-05-20 02:41:00 +08:00