Skip to content

feat(desktop): add per-thread agent activity map - #7499

Open
zrmarley wants to merge 3 commits into
mainfrom
zmarley/agent-activity-phase0
Open

feat(desktop): add per-thread agent activity map#7499
zrmarley wants to merge 3 commits into
mainfrom
zmarley/agent-activity-phase0

Conversation

@zrmarley

@zrmarley zrmarley commented Sep 8, 2026

Copy link
Copy Markdown

Summary

Adds an experimental, per-thread activity map for supervising agent file work in Buzz.

  • Places an Activity pill beside a thread's reply summary when one or more managed agents performed observable file work in that thread.
  • Opens a map scoped to the selected thread, merging each participating agent's reads and writes into one gap-compressed timeline.
  • Supports live following and DVR-style replay: play/pause, two-second scrubbing, playback speed, restart, and keyboard controls.
  • Shows per-agent riders and filters, with click-through to the corresponding agent session.
  • Highlights nearby writes to the same file by multiple agents as contention.
  • Hydrates retained observer events from the local archive and resolves each turn to its triggering thread without introducing a new relay event kind.
  • Keeps the feature behind the existing agentActivityPanel experimental flag.

The thread pill is intentionally the scope selector: there is no channel-wide aggregate or thread picker inside the popover, which keeps activity attached to the conversation that initiated it.

Screenshots

Per-thread entry points

![Activity pills beside two thread summaries](/Users/zmarley/goose artifacts/agent-activity-map/design-kit-2026-08-19/screenshots/A-pills-in-timeline.png)

Idle multi-agent map, including contention on store.rs

![Two agents' file activity with a contention flare](/Users/zmarley/goose artifacts/agent-activity-map/design-kit-2026-08-19/screenshots/B-popover-idle-multiagent.png)

Live activity at the leading edge

![Live thread activity with the active agent rider](/Users/zmarley/goose artifacts/agent-activity-map/design-kit-2026-08-19/screenshots/E-popover-live.png)

All names, messages, paths, and activity data shown above are synthetic.

Related issue

N/A — discussed and prototyped internally before implementation.

Testing

  • pnpm check
  • pnpm test — 6,561 tests passed after rebasing onto current main
  • pnpm build:e2e
  • pnpm exec playwright test tests/e2e/agent-activity-panel-screenshots.spec.ts --project=smoke — 5 tests passed
  • Pre-push hooks passed: file-size check, desktop check, desktop typecheck, and desktop tests
  • Manually exercised with multiple live agents in one channel

Deferred follow-ups

  • Add an accessible text representation of canvas file/event data.
  • Add an explicit keyboard-operable session-navigation affordance beyond rider clicks and chip double-click.
  • Consider bounded same-mount retry/backoff for transient thread-event lookup failures; rejected lookups already evict so later mounts can retry.
  • Stabilize a filtered agent's color index across filtered and unfiltered scenes.

A-pills-in-timeline

B-popover-idle-multiagent

E-popover-live

Adds the activity scene compiler and canvas panel, mounts the draft preview behind the agentActivityPanel flag, and exposes the final per-thread activity pill entry point.

Includes screenshot/design-kit coverage and slop cleanup from the phase-0 branch.

Co-authored-by: Zach Marley <zmarley@squareup.com>

Signed-off-by: Zach Marley <zmarley@squareup.com>
Co-authored-by: Zach Marley <zmarley@squareup.com>

Signed-off-by: Zach Marley <zmarley@squareup.com>
Co-authored-by: Zach Marley <zmarley@squareup.com>

Signed-off-by: Zach Marley <zmarley@squareup.com>
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is c045321a7fb3ca8939f28519ce7a555a6f597728...1ed08b183a3d3c39be8482f532ad355e55a995e2.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 1ed08b183a3d3c39be8482f532ad355e55a995e2 to authorize a new review.
Any previous review applies only to its recorded range.

@zrmarley
zrmarley marked this pull request as ready for review September 9, 2026 02:19
@zrmarley
zrmarley requested a review from a team as a code owner September 9, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant