You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature] Online: resume shared DMs from a replay cursor #235
The terminal polls /agent/managed/{id}/messages?limit=100 and remembers only IDs seen in this process. After more than 100 messages arrive during a disconnect or while the CLI is closed, older unseen messages cannot be recovered through that endpoint. Cloud already has a conversation event replay cursor, but the terminal adapter and client do not use it.
Expose the existing owner/agent-bound replay cursor to the CLI through a verified terminal adapter or an explicitly supported direct route. Page until caught up with bounded batches; persist the last acknowledged cursor per account and conversation.
Bootstrap a new terminal with recent history and an explicit older-history action. Resume after disconnect or restart without missing or duplicating messages, edits, or admission changes.
Detect invalid, reset, or out-of-range cursors and show a gap/recovery state. Do not silently declare synced after a partial window.
Bound network work and memory; a busy DM must not freeze the composer or produce an unbounded replay loop.
Acceptance
Inject over 500 ordered events while the terminal is offline, then reconnect and verify every event is rendered once in order. Test restart, concurrent web activity, edited message, admission update, cursor reset, wrong owner/agent, and account switch. The CLI must never display another account's cached transcript.
Scope / dependency
Read/replay reliability for the shared Online DM. Use Cloud's canonical conversation and cursor; do not create a terminal-specific inbox. This is a prerequisite for resolving uncertain sends by read-back.
Activity