Skip to content

docs(plan): define Studio minimap, side panels, and session inspection - #1939

Closed
samuv wants to merge 4 commits into
mainfrom
plan/studio-session-inspection-panels
Closed

samuv wants to merge 4 commits into
mainfrom
plan/studio-session-inspection-panels

Conversation

@samuv

@samuv samuv commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Tracking: #1850

Stage

Plan / Interface for a Bounded, Split change. This PR proposes six scenarios and 17 acceptance criteria for the message minimap, reusable resizable side-panel frame, reply threads, local previews and Markdown canvas, and capability-gated session inspection. It changes only the acceptance plan and its index. Human review and merge establish the approved implementation baseline.

The current proposed plan commit is 5068018c2c8d585cb5ade93253bb1abd42eceddc, rebased on origin/main at cd71c52701509e10f2782a0acfc885f2f7bd8c21. The latest commit corrects AC2.3's proof citation without changing its behavior or interfaces. The early implementation stack does not make this plan approved.

The decision record is None. ADR 0351 already defines Studio's authenticated browser/BFF boundary and published-SDK dependency. ADR 0291 already defines server-owned placement and source-session-scoped opaque worktree selectors. This plan introduces no new trust or placement rule; any such rule would require Architectural classification and a separate decision record.

Interface and behavior decisions

  • Add GET /api/v1/soul as a connection-scoped projection of the published SDK's resolved soul snapshot. It takes no session ID. Add GET /api/v1/sessions/{sessionId}/worktrees as an owned-source-session projection of eligible display metadata and ephemeral selectors. Both use the existing BFF authentication and per-request SDK credential context, no-store responses, generated OpenAPI/browser contracts, capability gating, and uniform 404s for unknown or foreign session IDs. BFF-generated data contains no credential, physical placement path, or private environment reference.
  • Extend existing BFF session inventory/detail projections with kind, capability reasons, and safe display metadata. Put inspect_only_kind rows in a separate read-only session-list group with details and available transcript, without composer or run controls. A diagnostic chat remains distinct from its read-only target.
  • Pass a selected worktree's opaque selector through the existing Fork or Clear successor operation for the same source; the active session keeps its placement. A stale selector fails closed without retrying on inherited placement.
  • Keep reply threads as forked sessions. Each Fork copies the source's current full history; the selected message is its UI anchor. Version the account-scoped local thread association by recorded message occurrence so equal text cannot silently share a thread. Ambiguous legacy associations require explicit relinking.
  • Keep local file/tool previews and Markdown canvas browser-owned. The shared frame preserves selection, width, focus, and scroll through stream updates; the minimap scrolls its own transcript even near the start of a long history. Keyboard and 320/500 px mobile behavior, disabled capabilities, and BFF authorization have explicit acceptance proofs.

Adjacent work

#1880 and its #1886 chat implementation are merged. The merged #1848 Plan / Interface PR #1888 owns Escape priority; merged #1909 supplies authorization review content and exact control prerequisites, while its PR explicitly leaves layered Escape browser work pending. #1849's Plan / Interface PR #1885 and implementation #1907 are now merged; #1849 owns delegated-activity content. #1907 and #1909 both edited content-preview-panel.tsx, and #1907 added an activity-local Escape handler. #1850 owns extraction of the shared frame and preserves #1848's pending-ask-before-panel order. The directing human authorized an early stacked implementation PR against this proposed plan; final acceptance still requires the remaining #1848 browser work and human review of this plan.

Review and verification

  • Acceptance-plan checker passed: 17 criteria have non-empty verification lines, all seven interface categories are populated, and human decisions are resolved.
  • Acceptance-plan regression fixture suite passed.
  • CGO_ENABLED=0 task docs passed after rebasing onto origin/main at cd71c52701509e10f2782a0acfc885f2f7bd8c21, including strict link validation. Plain task docs hit this host's macOS CGO linker error before the Go checks completed.
  • git diff --check passed. Advisory devil's-advocate, security-boundary, and keyboard/mobile checks led to explicit source-scoped selector handling, inert arbitrary content, and mobile panel Escape priority.

Implementation, runtime tests, browser screenshots, and merge remain separate from this Plan / Interface PR.

@samuv
samuv force-pushed the plan/studio-session-inspection-panels branch from d816d0e to 089c750 Compare September 25, 2026 14:26
@samuv samuv self-assigned this Sep 25, 2026
@samuv
samuv force-pushed the plan/studio-session-inspection-panels branch 2 times, most recently from 5cb523a to 9c0824c Compare September 25, 2026 16:17
@samuv
samuv added this pull request to stack #1943 September 25, 2026 16:18
@samuv
samuv force-pushed the plan/studio-session-inspection-panels branch from 9c0824c to fd79128 Compare September 25, 2026 16:23
samuv and others added 4 commits September 29, 2026 09:34
Record that #1909 supplied authorization prerequisites while #1848 layered Escape browser work is still pending. Keep the #1850 acceptance contract proposed and its frame ownership unchanged.

Co-Authored-By: OpenAI Codex <[email protected]>

Signed-off-by: Samuele Verzi <[email protected]>
Record #1885 and #1907 as merged while keeping #1848 browser Escape work provisional.

Co-Authored-By: OpenAI Codex <[email protected]>
Signed-off-by: Samuele Verzi <[email protected]>
AC2.3 names the existing chat successor route test that verifies explicit opaque selector forwarding. The behavior and interface contract remain unchanged.

Signed-off-by: Samuele Verzi <[email protected]>

Co-Authored-By: OpenAI Codex <[email protected]>
@samuv
samuv force-pushed the plan/studio-session-inspection-panels branch from 5068018 to 3d8f39b Compare September 29, 2026 07:34
@kantord kantord closed this Oct 7, 2026
@kantord
kantord removed this pull request from stack #1943 October 7, 2026 15:28
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.

2 participants