Skip to content

feat(client): 复用对话选区、草稿与本地全屏 / reuse chat selection, drafts and page fullscreen in the browser - #13

Draft
Facetomyself wants to merge 8 commits into
feat/web-workbench-task-inspectionfrom
feat/web-workbench-client-interactions
Draft

Facetomyself wants to merge 8 commits into
feat/web-workbench-task-inspectionfrom
feat/web-workbench-client-interactions

Conversation

@Facetomyself

@Facetomyself Facetomyself commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #12. Refs sqfcyily#67. Web uses the actual desktop message menu and composer quote bar, with local browser interactions rather than clipboard or window-control commands to a server.

  • Copy explicitly selected, visible text in one message (also in read-only history). Rich text and code render as before; code-header and delivery-name copies report success only after a native clipboard write. Native Paste accepts plain text into the current Lexical selection; file paste remains a distinct attachment workflow. No async clipboard read, clipboard polling or host clipboard API. The page declares a narrow Permissions-Policy.
  • Quote keeps existing body/attachments in a SID-scoped, in-memory draft. Removing a quote leaves the body alone. It is combined with the body using the desktop Markdown semantics only at explicit Send. Confirmed acknowledgements, retries, concurrent draft edits and logout do not discard another draft or disclose it to another conversation.
  • The original icon rail provides page fullscreen and the correct client modifier for the chat list shortcut. It uses the live document fullscreen element and its events, not browser dimensions or server OS. Shortcuts leave editors, modals, menus and IME alone. The authenticated settings view separately labels the actual server platform.
  • Includes focused tests and independent hosted gates: real native Chrome gestures with a synthetic provider and strict explicit-Send counts; real Chrome interacting with the actual non-root linux/amd64 product CLI on a single host-loopback publication. The optional second, server-side browser (feat(browser): 隔离人工网页接管与工作台身份 / isolate manual browser handoff from workbench credentials #7) is not involved in these client operations and is still an independent unfinished gate. Hosted receipts are below.

Verified at 37f4462

  • Node 22 and real sandboxed Chrome: 136/136 workbench checks and 337/337 headless checks. Ten ordinary Chrome business flows passed. Real pointer selection and right click, Shift+F10/ArrowDown/Enter Quote, Unicode Copy/Ctrl+V, SID-specific drafts and manual quote removal, Ctrl+B scope/restore and true page fullscreen all passed. Exactly three explicit Send gestures produced exactly three checked local upstream requests; the quoted final user message had the expected Markdown and original body. The older optional server-side browser handoff remains a separate failing job/step; the combined workflow is not all-green.
  • Independent Chrome → actual production linux/amd64 Docker CLI: image config sha256:67face70478a1e1bf788f24ef6fd26565c7e446878491148d5456202bdbb2f9f. Verified compiled HTML, manifest-declared JavaScript, origin and page permissions from the served image. Runtime uid/gid 1000, root filesystem read-only, all capabilities dropped, NNP/seccomp; one host IPv4-loopback publication on the default bridge, not a network-none service. Actual Chrome login/logout, one genuine enter and exit fullscreen, Ctrl+B, selected text pasted into a fresh unsent chat and a literal code-block string including its terminal newline pasted into the rail search. The original native file was byte-identical afterwards; no provider was called and cleanup completed. No server command endpoint, host clipboard mount or new target-host deployment.
  • Final synthetic screenshots show the fully rendered original selection menu and quote draft, without stale clipboard status covering the next action. node scripts/workbench/check-parity.mjs --coverage reports 41 implemented / 31 partial / 110 without a recorded implementation scope / 4 desktop-only; the separate server platform value is implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant