Skip to content

Studio alignment: chat UI from the prototype on Studio's chat logic #2207

Closed

Description

@peppescg

Parent: #2210. Run it after the foundation and #2201 work. MCP is tracked separately in #1851.

Outcome

Chat uses the prototype's UI (stack/03-chat-core and stack/04-chat-ext, prototypes #43 and #44) on top of Studio's chat logic. This is a three-way merge, not a replacement.

Keep from Studio (do not regress)

  • The chat-workspace.tsx orchestration, run-stream.ts, and use-chat-messages.ts.
  • verdict-ledger.ts: one phase per ask, and an "uncertain" verdict blocks retry.
  • Exact plan-ask control (plan-asks/{askId}, gated on exact_plan_ask_control) and plan-continuation.ts.
  • chat-escape.ts semantics, and chat-seed.ts sanitization.
  • The session-inspection logic: worktree selector rejection and inspect-only classification.
  • The integration suites, especially chat-workspace.integration.test.tsx, approval-interactions.test.tsx, and delegation-workspace.test.tsx. They are the regression gate.

Port from the prototype

  1. Approvals:
    • approval-panel, approval-detail-panel, approval-verdict-bar, driven by the verdict ledger;
    • args-diff, ask-args-view;
    • keyboard shortcuts from use-approval-shortcuts.ts (y/a/w/n/d, arrows, Esc, typing-aware).
    • Re-skin the plan card only.
  2. Composer:
    • the model picker, effort picker, and permission-mode badge pills;
    • queued-message-strip, clear-draft-button;
    • text-file attachment inlining (lib/attachment-inline.ts) and the persisted draft store.
    • Keep Studio's Enter, queue, and steer semantics.
  3. Transcript:
    • chat-view, message-bubble, tool-call-list / tool-call-panel, tool-diff, code-block;
    • transcript actions, text-selection toolbar, delivery-note card;
    • steer-trace line;
    • minimap alignment.
  4. Delegation: delegation-card, delegation-panel, and fleet-status-chip visuals, wired to Studio's fleet types.
  5. Session surfaces:
    • the prototype's details, soul, transcript, worktree picker, and debug dialogs, wrapping Studio's session-inspection logic;
    • session copy and row-action menus;
    • side-thread panel, file preview, and the canvas side panel;
    • the inspect-only session list.

Not ported

Open decision

Steer outcome: adopt the prototype's 200 response with steerRunResponseSchema, or keep the outcome derived from the stream.

Acceptance

  • Each step lands as its own PR, with before/after desktop and mobile screenshots.
  • The chat integration suites and the browser journeys stay green.

Activity

  1. added
    enhancement
    WebUI
    on Oct 8, 2026
  2. 280 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebUIenhancementux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions