Skip to content

feat(studio): show session delegation activity - #1907

Merged
samuv merged 16 commits into
plan/studio-session-activityfrom
impl/studio-session-activity
Sep 25, 2026
Merged

samuv merged 16 commits into
plan/studio-session-activityfrom
impl/studio-session-activity

Conversation

@samuv

@samuv samuv commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Tracking: #1849

Stage and dependency

Implementation — draft PR, stacked on independent Plan / Interface PR #1885 (main → plan/studio-session-activity → impl/studio-session-activity). The proposed plan baseline is 0a0eabf940d5a6cbf04113e776ee460383f33799, based on origin/main at b09f573ac9fc64a2df79c0db52f13ba83dc26d56. #1885 is open and unapproved; this draft began early at the directing user's request and does not claim an approved baseline. This candidate is 287f7b3261371ae247155b3ec16578ba4b4b5193.

#1847's plan PR #1880 and implementation PR #1886 are merged into main. Activity cards attach to #1886's extracted ChatTranscript. The rebase also retains #1909's authorization review and exact-plan controls. #1850 owns the reusable side-panel shell; this PR mounts activity content in the existing preview host.

Change

  • Project subagent.*, parallel.*, and team.* events into separate, session-owned browser views. Durable (runId, seq) deduplication and bounded cursor reattachment keep replay stable; missing or truncated history leaves outcomes unknown.
  • Rehydrate activity when a settled chat reopens. An interrupted history read discloses incomplete activity without inventing unseen cards, and a live follow needs an observed terminal result before it can skip later replay. Reused parent call IDs attach to a transcript turn only when a present run-scoped anchor establishes ownership.
  • Show compact inline cards under the owning assistant turn and a read-only activity panel that opens on request. Cards focus their exact child, Parallel group, or Team member. The panel keeps current task and finding snapshots, terminal outcomes, and the most recent 12 trace entries per lane with an omission count.
  • Keep model-influenced text in React text nodes. Do not expose child cancellation or import SDK/daemon protocol types into browser code. Add responsive keyboard/browser proofs and public Studio guidance.
  • Resolve the new authorization/replay seam: settled delegation replay waits while a visible authorization is pending or uncertain, so its history read cannot compete with an explicit authorization refresh. Preserve the authorization cursor, continuation, and review controls while keeping delegation cards across interrupted replay.

Acceptance and verification

All 12 criteria, AC1.1–AC5.3, have named proofs; task ac-trace-strict reports zero failures for this candidate. The Studio browser suite passes in Chromium desktop and mobile at 320, 500, and 1280 px, including card, tab, roster, Escape, and focus restoration; long interleaved traces retain 12 entries with omission counts.

Passed after rebasing onto origin/main: task studio:check (567 web, 171 server tests), task studio:browser (42/42), task studio:build, task site:build, CGO_ENABLED=0 task lint, CGO_ENABLED=0 task test:race, CGO_ENABLED=0 task docs, CGO_ENABLED=0 task ac-trace-strict, and CGO_ENABLED=0 go run ./cmd/mecademo. The focused chat workspace and delegation suites pass together (56 tests). Go lint and race ran with 600-second bounds. CGO was disabled to avoid this macOS host's tapi error: unknown architecture linker failure.

Interfaces match the proposed #1885 contract: Yes. No BFF route, SSE/OpenAPI field, published SDK API, daemon protocol, storage key, or child-control contract changed. No implementation deviation required a plan amendment. The candidate marks its plan landed only in this PR diff; #1885 remains proposed until human approval and merge.

The prior four-axis panel review found and repaired settled-replay, activity placement, and browser-fixture defects. Its final Spec, Standards, Test adequacy, and Domain rechecks had no blocker or important finding; three low-priority reuse suggestions remained advisory: PANEL: ship_blockers=0 important=0 advisory=3 reviewer_failures=0. The post-rebase authorization conflict and tests were resolved and verified as reported above. This PR remains draft and will not be merged by the agent.

@samuv
samuv added this pull request to stack #1908 September 24, 2026 23:27
@samuv samuv changed the title impl/studio session activity feat(studio): show session delegation activity Sep 24, 2026
@samuv samuv mentioned this pull request Sep 24, 2026
1 of 3 tasks
@samuv samuv self-assigned this Sep 25, 2026
@samuv
samuv force-pushed the impl/studio-session-activity branch 2 times, most recently from 26be0a6 to e12d9a2 Compare September 25, 2026 13:37
@samuv
samuv force-pushed the impl/studio-session-activity branch from e12d9a2 to e8384e5 Compare September 25, 2026 14:38
@samuv
samuv force-pushed the impl/studio-session-activity branch from e8384e5 to 287f7b3 Compare September 25, 2026 15:31
@samuv
samuv marked this pull request as ready for review September 25, 2026 15:36
samuv and others added 16 commits September 25, 2026 18:14
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Co-Authored-By: OpenAI Codex <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
Pause settled delegation replay while a visible authorization is pending or uncertain, and give the checkpoint integration fixture its own durable read.

Co-Authored-By: Codex <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
@samuv
samuv merged commit cd71c52 into main Sep 25, 2026
33 checks passed
@samuv
samuv deleted the impl/studio-session-activity branch September 25, 2026 16:22
samuv added a commit that referenced this pull request Sep 25, 2026
Preserve delegated activity in the shared transcript and panel after #1907 merged. Restore opener focus through the central Escape path and update offline fixtures for capability-gated chats.

Co-Authored-By: OpenAI Codex <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
samuv added a commit that referenced this pull request Sep 25, 2026
Preserve delegated activity in the shared transcript and panel after #1907 merged. Restore opener focus through the central Escape path and update offline fixtures for capability-gated chats.

Co-Authored-By: OpenAI Codex <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
jbeda added a commit that referenced this pull request Sep 25, 2026
…mit-coauthor-guidance

* origin/main: (32 commits)
  docs: plan optional native Kubernetes execution provider (#1579)
  feat(mecatui): restore session status metrics (#1891)
  docs(plan): bound agent inventory viewport (#1946)
  docs: include user-docs in matlatl and use local documentation links (#1934)
  feat(mecatui): bound sessions inventory (#1944)
  feat(studio): show session delegation activity (#1907)
  docs(plan): define Studio session activity (#1885)
  Release TypeScript SDK v0.4.0 (#1940)
  Release v0.0.41 (#1941)
  docs(mecatui): plan bounded sessions inventory (#1906)
  feat(studio): add exact plan control and authorization review prerequisite (#1909)
  test(app): eliminate real ToolHive probe deadline wait (#1937)
  docs(plan): define Studio chat approvals and exact plan control (#1888)
  test(sdk): enforce SDK/TUI high-level parity (#1471) (#1917)
  docs(plan): propose SDK high-level parity coverage (#1471) (#1916)
  docs: improve gRPC schema table readability (#1842)
  test(app): eliminate real waits in durable learning tests (#1933)
  feat(studio): align chat transcript and composer (#1886)
  docs(plan): define Studio chat transcript and composer (#1880)
  feat: correlate provider requests with the root session (#1883)
  ...
samuv added a commit that referenced this pull request Sep 29, 2026
Preserve delegated activity in the shared transcript and panel after #1907 merged. Restore opener focus through the central Escape path and update offline fixtures for capability-gated chats.

Co-Authored-By: OpenAI Codex <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
This was referenced Sep 29, 2026
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