Commit Graph
14 Commits
Author SHA1 Message Date
Federico Jaramillo Martinez 115d74e79a feat(sessions): persist shared unread state 2026-07-20 19:36:16 +02:00
Federico Jaramillo Martinez 6e09df8329 feat(sessions): add daemon notification inbox protocol 2026-07-19 01:28:45 +02:00
Federico Jaramillo Martinez 65350fd1b5 fix(realtime): terminate failed sockets 2026-07-18 08:33:51 +02:00
Federico Jaramillo Martinez 1f13bab58a fix(realtime): isolate notification failures 2026-07-17 23:58:56 +02:00
Federico Jaramillo Martinez 2b17145291 feat(sessions): stream in-flight partial when joining a mid-turn session
Seed the in-flight partial assistant message (text, thinking, and
in-progress tool calls) when opening or reconnecting to a session that is
mid-stream, then continue streaming live deltas on top of it. Replaces the
blocking "Catching up..." placeholder and the end-of-turn transcript reload.

Server stamps every per-session UI event with a monotonic seq at the
SessionEventHub publish choke point and exposes
GET /sessions/:sessionId/stream-snapshot returning { seq, partial }. The
client fetches the snapshot on join, seeds the normalized partial into the
in-memory transcript (never the history cache), and applies buffered/live
events using the seq watermark for exactly-once delivery.

The snapshot is a progressive enhancement: a 404 from an older remote
pi-web or a not-yet-restarted session daemon falls back to an empty seed
(seq 0, drops nothing), so sessions still open and stream normally. The
stream-snapshot route is registered in the federation allowlist for
remote-machine proxying.
2026-07-17 14:49:56 +02:00
Federico Jaramillo Martinez 338faf4b81 perf: speed up chat loading and resume 2026-07-12 09:22:19 +02:00
Federico Jaramillo Martinez c5c45195d7 Remove test type assertion suppressions 2026-05-17 08:58:46 +02:00
Federico Jaramillo Martinez 80cf879e0f Add realtime terminal tab badges 2026-05-11 10:45:56 +02:00
Federico Jaramillo Martinez 63ef03f8f6 Improve queued message handling 2026-05-10 00:46:47 +02:00
Federico Jaramillo Martinez afb475a21f test: cover session events and commands 2026-05-08 08:48:26 +02:00
Federico Jaramillo Martinez 91957b0fe0 refactor: type session event protocol 2026-05-07 23:51:26 +02:00
Federico Jaramillo Martinez eb59f1eb00 Add paged chat history loading 2026-05-07 15:46:08 +02:00
Federico Jaramillo Martinez ad05497319 Improve session reconnect behavior 2026-05-07 13:00:10 +02:00
Federico Jaramillo Martinez adf9087e84 Add pi web POC 2026-05-07 11:12:23 +02:00