Skip to content

feat(chat): fold long prompts and reflow subagent messages - #2606

Merged
Tioit-Wang merged 1 commit into
mainfrom
fix/subagent-panel-message-width
Nov 26, 2026
Merged

Tioit-Wang merged 1 commit into
mainfrom
fix/subagent-panel-message-width

Conversation

@Tioit-Wang

@Tioit-Wang Tioit-Wang commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Use the right work panel's available width for subagent replies and long Task prompts, without changing MainChat's width limits. Short Task prompts remain compact.
  • Show a six-line preview for rendered user messages and Task prompts that exceed that height. A fade and centered text-and-chevron button indicate collapsed content. The expansion choice stays in renderer memory and search reveals matches. Copying and editing continue to use the full message.

Closes #2605. Follow-up to #2587.

UI reference: the Electron renderer scenario exercises a 244–980 px panel, short and long prompts, six and seven rendered lines, expand/collapse, and search reveal. No screenshots attached.

Verification

  • Candidate 439779170bc3 on 720bbe15de8d: isolated Windows Electron scenario and PR base gate passed.
  • 89 other targeted renderer and projection regression tests passed. Biome lint, architecture, and whitespace checks passed.
  • Local full desktop typecheck could not pass because the reused workspace package builds expose stale declarations (including agent-host, host-runtime, plugin-sdk, and shared). No diagnostic pointed at the changed files. The PR CI uses a clean build.

The subagent transcript should use its own panel width instead of
retaining the main conversation's fixed pixel caps.

Keep long prompts readable in both surfaces by offering a six-line
preview with a transient reveal, without changing the original text.

closes #2605
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4397791
Status: ✅  Deploy successful!
Preview URL: https://5c6319c5.pi-desktop.pages.dev
Branch Preview URL: https://fix-subagent-panel-message-w.pi-desktop.pages.dev

View logs

@Tioit-Wang
Tioit-Wang merged commit 71c637b into main Nov 26, 2026
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] Reflow subagent transcripts and fold long user messages

1 participant