Opening a long session from the recent-activity list showed the transcript
ending at an old `edit` tool call. The plugin's snapshot carries the whole
transcript (`state.entries`), while the first REST page holds only the newest
entries; mergeEntries appended every unmatched live entry after the page, so
the older messages landed past the newest ones and scrolling to the bottom
stopped on a message from the middle of the session.
Unmatched live entries are now inserted where their live neighbours put them —
before the history entry of the next match — and appended only when they follow
every match, so both windows stay one chronologically ordered, deduped stream.
The regression test covers a live window that starts before the history page.
- 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.