A local-first multi-agent app development platform, built on PenguinHarness
Sidebar lists page by last activity and only ever append
- Date: 2026-10-10
- Type: fix
- Scope:
web,server,ui-gallery,docs
This is ported from upstream PenguinHarness (#960, commit 929abb33).
In the sidebar's time grouping, "Load more chats" stopped moving rows from "Earlier" up into "Past day". The list was displayed by last activity but paged by creation time, and each Agent was paged on its own, so a later page could hold rows that belonged above rows already on screen. Every sidebar list was made to page in its display order, and a list merged from several streams to show only the rows all of them had reached. The same fix applied to the Agent and Workspace groupings and to the Subagents / Scheduled / Evaluations / Archived folders.
Details
GET /api/projects/:projectId/agents/:agentId/sessionsgainedorder=activity(lastActiveAtdescending, ties bysessionIddescending, both compared by code point) andbefore=<lastActiveAt>,<sessionId>, which returns the rows strictly below that key.beforerequiredorder=activityandlimitand could not be combined withoffset; a malformed value was answered with a 400. Withoutorderthe list kept its creation order and offset paging, andcounts=1totals still covered the whole list.- The Web App requested every sidebar page with
order=activityand continued each stream from the key of the last row read from it, recorded when the page arrived. A Workspace group's first page of its own continued from its Agent's cursor on that machine, and was skipped when that Agent's list was already exhausted. - Each list the sidebar drew — time mode before bucketing, each Agent and Workspace group, and each folder — was cut at its watermark: the most recent cursor among the streams (Agents, machines) that still had more. Rows below it stayed in memory until a later page lowered the watermark, so "Show N more chats" and "Load more chats" only added rows below the ones shown. Rows were drawn in the same code-point order, ties included, so a revealed row that shared a stamp with a shown one also landed below it. The open conversation always showed, and a search still covered every loaded row. The folders were ordered by last activity instead of creation time.
- The
session_stateuser-channel event gainedprojectId. A Session of the current Project that the list did not hold was fetched once from the machine that announced it and shown at the top, with the newest state applied; flips of one run shared one lookup; organization rows and Sessions found missing were not asked about again, and Sessions deleted in the tab were not asked about at all. - The gallery's mock list route was given the same
orderandbeforehandling.