A local-first multi-agent app development platform, built on PenguinHarness
The Session list shows which conversations still have background tasks
- Date: 2026-09-02
- Type: feature
- Scope:
core,server,web,docs - PR: #585
A conversation that has started a dev server or a background subagent now says so in the
sidebar: its row carries a small activity trace beside the usual status glyph, the chat
header counts the same tasks in a small pill, and both follow the server live — the mark
appears when a command is promoted past its yield window or launched in the background,
and leaves the moment the last task ends, without a list refresh. The same mark sits on the
tool row of a call made with run_in_background, so the transcript and the conversation
list say the same thing about the same work.
Details
SessionInfogained an optionalbackgroundTasks: { processes, subagents }, read from the loaded runtime's in-memory registries — command sessions still running, and subagent sessions that hold asubagent_idand are mid-round. The field is present only while at least one count is non-zero; an unloaded Session and one with nothing running both omit it. List rows and the single-session GET carry the same field.- A new user-level event,
session_background, is published onGET /api/eventswhenever a Session's counts move (a promotion, an exit, a stop, a subagent round starting or settling, a release), carrying the counts as they now stand — zeros included — to the Project's owner and members, the same audience assession_state. - Core's
Environmentgained a single background-state listener (setBackgroundStateListener, forwarded bySession.onBackgroundState) fed by the background registries' membership changes, the exit of a registered command process, and the subagent run-state pings, so a host hears everything that changes "what is still running in the background" from one subscription. - The sidebar row draws the mark in the
busytone with its count in the tooltip and accessible name ("2 background tasks" / 「2 个后台任务」), beside the running / compacting / unread glyph rather than instead of it: an idle, read conversation whose dev server is still up keeps the mark. The chat header's former "running services" count became this pill; it now includes background subagents and reads the row's live figure instead of the process poll, and a count change also re-reads the process list at once. - A tool row whose call carries
run_in_background: truedraws the same mark right of its duration, where it names one call rather than a count ("Runs in the background" / 「在后台 运行」) — a backgrounded call returns at once, and its row otherwise looks like any settled step. - The mark is an activity trace — a flat line with one tall beat — rather than the layered stack first shipped in this branch, which read as "layers" instead of "still running" and whose two parallelograms merged into a smudge at the row's 12px.
- The Web App, server API and design docs describe the mark, the field and the event.