fix(web): make the web console work end-to-end

- Pair through the public POST /api/v1/pair and persist the device scopes;
  keep the allow-listed next deep link. Rename the manual field to pairing code.
- Authenticate the WebSocket with the raw device token (strip Bearer) and
  recover from a 401 by clearing the connection once.
- Fix chat payloads: setModel/setThinking, attention/diff responses, subagent
  dispatch items, queue ids/mode, task output and WS resume since.
- Render exactly one assistant message per turn: one-to-one snapshot/history
  merge plus a stale-delta guard after message_end (fixes PONGONG).
- Fix dialogs (content above the overlay), unknown-session deep links
  (error + retry, no silent fallback), device list/revoke, status identity and
  live pairing code, reconnect banner and Playwright selectors.
This commit is contained in:
yuez committed 2026-10-21 20:42:19 +08:00
1 parent 5572ac0d84
commit 0ef019f58d
57 files changed
+3549 -684

No files matched your search

@@ -80,7 +80,7 @@ export function WorkspaceRow({ workspace }: WorkspaceRowProps) {
const count = Math.max(workspace.liveCount || 0, workspace.sessionCount || 0);
return (
<div className="list-row" data-workspace-id={workspace.workspaceId}>
<div className="list-row" data-workspace-id={workspace.workspaceId} data-testid="workspace-row">
<span className="ico list-row__icon">
<Icon name="folder" />
</span>
@@ -95,6 +95,7 @@ export function WorkspaceRow({ workspace }: WorkspaceRowProps) {
<StatusDot status={dot.status} title={t(dot.labelKey)} />
<a
className="btn btn--sm btn--primary list-row__go"
data-testid="workspace-enter"
href={`/chat?workspace=${encodeURIComponent(workspace.workspaceId)}`}
>
{t("workspaces.enter")}