Commit Graph
2 Commits
Author SHA1 Message Date
Rohit Prasad 6daa7816d0 Subagents keep a full record, plus observability fixes (#852)
* subagents: durable child transcripts and audit rows

Each child's full message log persists beside the run record (last 50,
purged with the session, served on demand); child tool calls land in the
session audit log stamped with the task id.

* observability: fixes from the review of the recorder feature

Live-step batches retry a failed flush and stay bounded; the Issues checks
run outside the recorder lock and only the ended turn is re-sequenced;
same-millisecond ordering is causal (two flaky tests fixed at the root);
remote automations load their routing before resolving an unknown id.
2026-11-07 14:26:17 -08:00
Rohit Prasad cf035e2d1d Background subagents and a smarter side panel (#850)
* engine: report window occupancy as a context snapshot

Estimated system/tools/conversation split + resolved window, on ready and
each assistant_message; provider-reported prompt total wins when present.

* gui: right rail glance layer — environment, context meter, header summaries

Environment block (machine/folder/sandbox) atop the rail; Context section with
proportional breakdown and compaction note; collapsed headers carry muted
summary values (amber only for attention); header actions show on hover.

* engine: async subagents — spawn_agent family, human-only approvals, expiry note

Background children (read_only/inherit) with parent-stream approvals and a
fail-closed spawn-time deadline whose tool result says the ask expired;
reports steer or wake the parent; child tokens fold via the agent_task notice.

* gui: Subagents section in the right rail

Active + done runs with seeded icon chips and ages, amber while one waits on
approval; fed by agent_task events + the sessions/tasks endpoint.

* engine: persist subagent runs in a supplemental store

agent_tasks.json beside the wake store, written on transitions: last 50
finished per session, 8KB report cap, live-at-restart runs marked lost.
Also fixes report delivery through call_soon_threadsafe (kwargs crash).

* gui: animal identity glyphs for subagents

Ten one-color silhouettes with punched-out eyes, eight color families per
theme; header chips on the collapsed section; done history compresses to a
glyph grid past ten runs.

* e2e: unshadow the compaction flow; align team/machine specs with the new rail

One compact-the-context handler (signal, divider, context stamp); team header
asserts the attention summary; machine-group locator scoped past the env block.
2026-11-07 10:27:00 -08:00