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:
1 parent
5572ac0d84
commit
0ef019f58d
57 files changed
+3549
-684
No files matched your search
@@ -26,6 +26,14 @@ export function setSessionMeta(
|
||||
sessionMeta.set(sessionId, { ...sessionMeta.get(sessionId), ...meta });
|
||||
}
|
||||
|
||||
/** Carry the paging metadata over to the migrated session id. */
|
||||
export function remapSessionMeta(from: string, to: string): void {
|
||||
if (!from || !to || from === to) return;
|
||||
const meta = sessionMeta.get(from);
|
||||
sessionMeta.delete(from);
|
||||
if (meta) sessionMeta.set(to, { ...sessionMeta.get(to), ...meta });
|
||||
}
|
||||
|
||||
/** `GET /api/v1/sessions/:sid/entries?before=&limit=&workspaceId=&sessionFile=` → raw pi entries + cursor. */
|
||||
export async function fetchEntriesPage(
|
||||
sessionId: string,
|
||||
|
||||
Reference in new issue
Block a user