Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

3.1 KB
Raw Blame

Company mode's Sessions stay out of the development list

  • Date: 2026-09-16
  • Type: fix
  • Scope: server, web, docs
  • PR: #751

中文版

While an organization was working, its Sessions could surface in development mode's Session list. Once an employee held more Sessions than the list loads per page, the server's totals still counted the desk and ticket sessions the list had not loaded, so the list drew their Workspace as a group — placed at the top by the Session that had just opened — with a reveal row that revealed nothing; and a sub-session an employee spawned carried no organization mark at all, so it listed under the Subagents folder like any other conversation. The list now asks the server for the user's own rows only, and a sub-session inherits its parent's stamp.

Details

  • GET /api/projects/:projectId/agents/:agentId/sessions accepts excludeOrg=1: the rows an organization owns — its desk and ticket sessions and the sub-sessions they spawned, by the durable client: "org" stamp or by the organization caches — leave the page, the counts=1 totals, the per-Workspace breakdown and the Workspace stamps together, and paging walks the filtered stream. Without the flag the route keeps serving every row, whichever client created it. The Server API reference documents the flag in both languages.
  • A sub-session registered under a Session stamped client: "org" is inserted with the same stamp; one registered under any other Session keeps the blank marker it always had.
  • The Web App's session list store passes excludeOrg on every fetch and no longer corrects the server's totals on its side; a row that still enters through the chat page's deep-link self-heal is dropped at render, leaves the totals alone and is kept across list reloads, so the desk or ticket session open in the chat page keeps its approval-mode, thinking-level, title and status updates.
  • The store remembers every run status the user channel reports (session_state), whether or not a loaded page holds the row, and company mode's desk rows, org chart and overview read those — so a desk past the first page of an employee's stream shows its run ending too. A resync_required clears them, and company mode re-reads its sessions route, organization list and open chart, so a desk whose run ended among the lost events does not stay running.
  • GET /api/projects/:projectId/organizations/:orgId/sessions marks a desk whose Session has an enabled messaging binding with messagingChannel, read as the Session's own row reads it. The company sidebar's desk rows draw their messaging mark from it — every bound desk, where the mark used to come from whichever desks the development list happened to hold — and a bind or unbind from a desk's row menu updates the row at once.
  • Both marks go through one channel check covering Feishu, Telegram, QQ and WeChat, keyed by MessagingChannel, so a channel left out of it fails typecheck.