web: open Agent at recent history and load older pages on demand
This commit is contained in:
@@ -337,6 +337,18 @@ The proxy closes upstream sockets when browsers leave or Sybil shuts down.
|
||||
History remains durable in Sybil Agent. Shared read position is separate from delivery:
|
||||
update `GET`/`PUT /v1/agent/read-state` only when messages have actually been viewed.
|
||||
|
||||
The web client first accepts source-bound read state and one recent REST history
|
||||
window, then authenticates this socket with that window's `cursor`. Initial
|
||||
`hasMore` refers to older history and does not trigger a forward replay from zero.
|
||||
Older pages load on demand using a separate `beforeCursor`; delayed older pages
|
||||
preserve live edits and never change the socket replay position. Reconnects and
|
||||
foreground catch-up use the last accepted live cursor as before. Incoming output
|
||||
follows the viewport only while it is pinned to the newest end; older prepends and
|
||||
dynamic heights preserve the reader's keyed row. Only a focused, visible, settled
|
||||
latest view acknowledges the rendered cursor, marking the conversation read
|
||||
through that point. See [web history windows and unread counts](rest.md#get-v1agentmessages)
|
||||
for unloaded-history count semantics and rendering limits.
|
||||
|
||||
### Agent attachment history, queued activity and replay
|
||||
|
||||
Uploads and attached sends use REST, as specified in [rest.md](./rest.md#agent-attachments-v1). WebSocket authentication, event types, stable message IDs, cursor semantics and raw tool rows are unchanged. Capability discovery is optional `GET /v1/agent` → `capabilities.attachments.version: 1`; absence disables new attachment sends. Upgrade/authenticate the native runtime and backend before advertising it.
|
||||
|
||||
Reference in New Issue
Block a user