Skip to content

feat(chat): align subagent tabs with the conversation display - #2587

Merged
Tioit-Wang merged 1 commit into
mainfrom
feat/subagent-conversation-parity
Nov 25, 2026
Merged

Tioit-Wang merged 1 commit into
mainfrom
feat/subagent-conversation-parity

Conversation

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

Summary

  • Reuse the main conversation's turn grouping and rendering for subagent work-panel tabs. The three display layouts and thinking/folding preferences apply immediately to both surfaces. Search reveals the matching process, group, and tool; manual choices are isolated by session and delegation.
  • Reuse the main composer shell without mounting an editor, pickers, send actions, attachments, or composer slots. Show the latest Task's recorded model and reasoning level. Stop still targets just the current live delegation.
  • Keep the main transcript's reply actions, permission handling, plugin contracts, and delegation entry styles unchanged.

Requirement

Closes #2586

Before After
Delegate turn Prompt, then a flat list of reasoning, tools, and text Prompt, then Process → activity group → tool/reasoning details, with the final answer outside the process
Footer Disabled textarea and disabled model dropdown Shared composer shell, read-only notice, passive model/reasoning, and a scoped Stop when available

UI reference: E2E-248 and subagent-conversation-user-path.test.mjs exercise the actual renderer on a narrow panel. Before/after screenshots are not attached.

Verification

  • Candidate 9d25b7a991d7, base eaabecf249a8: PR-base gate and the isolated Windows Electron renderer user path passed (fixture messages and mocked preload IPC; no real provider).
  • 155 targeted transcript, composer, and renderer regression tests passed; desktop typecheck, Biome lint, architecture and whitespace checks passed during local validation.
  • The separate folding-settings boundary suite and full runtime build were blocked by the local cached pi-ai dependency missing the repository's hosted-search patch. The new Electron test exercised both folding settings successfully.

A delegation tab was bypassing the main transcript's turn projection
and folding controls. Share the turn body and keep disclosure state
scoped to each delegation, without importing parent reply actions.

Use the composer shell without mounting an editor or pickers. Keep
stopping scoped to the latest live Task in the chain.

closes #2586
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9d25b7a
Status: ✅  Deploy successful!
Preview URL: https://17cf9c00.pi-desktop.pages.dev
Branch Preview URL: https://feat-subagent-conversation-p.pi-desktop.pages.dev

View logs

@Tioit-Wang
Tioit-Wang merged commit 97a251c into main Nov 25, 2026
6 of 7 checks passed
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.

[Feature] Match subagent work-panel transcripts to the main conversation

1 participant