Repository navigation
v2.4 — session selection + real provider grouping
Fixes
Picking an old session no longer snaps back to the running one.
This was the main complaint driving this release. Two real causes: the store tracked
the live session in a field it wrote but never read, so nothing stopped a live event
from landing on top of what you had just opened; and run_log frames carried no
session_id, so the app could not tell a delta for the run you were watching from one
for the session you had picked. Live and viewed are now separate, and only a tap in the
history list can move the viewed one.
Scrolling up no longer re-downloads the whole transcript.
"Load more" used to raise the limit and re-fetch the entire tail each time, and every
row was given a fresh UUID — so each poll rebuilt the whole list and lost your scroll
position. The bridge now pages backwards with a before cursor, the engine returns
stable message ids, and older pages are prepended without refetching what is already
on screen. Verified on a 67-message session: 13 pages, zero overlap, zero duplicates.
The engine honours limit on /session/{id}/message.
It ignored the parameter and returned the whole transcript every time, with no way to
tell the client how many rows exist. It now pages and reports the session total in
x-total-messages. Requests without query parameters return exactly what they did
before, so existing callers are unaffected.
The model menu is grouped by real provider.
139 models were all labelled opencode-zen and listed in one flat run. They now group
by actual provider — OpenCode first, then alphabetical — with a separator between each.
Stars mark only the OpenCode group, which is what they were always meant to mean.
Smaller things
- Session lists are cached for 3 seconds behind an ETag; a repeat fetch returns
304. - SSE replay is capped at 500 frames and yields to the event loop instead of blocking it.
- Log JSON is decoded off the main actor — a 200-message page no longer stalls the UI.
- Opening a session in the Run popup actually loads it. The row only closed the menu.
Verification
- EliaTopBar: 33/33, including new coverage for the live/viewed split.
- Engine: 39/39, including 7 new paging tests plus a round-trip check that walking
backwards reconstructs the transcript exactly. - Bridge: 42/42.
- Paging checked against a live 67-message session:
limit=5returns 5 (was 67),
13 pages walked, 0 overlap, 0 duplicates, conditional GET returns 304. - Model menu checked in the running app: 153 items, OpenCode first, separators intact.
Not verified
The log panel's selection and paging behaviour was not clicked through by hand — the
popover is not exposed to accessibility automation. It is covered by the automated
tests and the live API checks above, but not by a human clicking it.