fix(tui): align child conversation presentation with main - #682
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Refs #681. Opening a child conversation bypasses the bound Session's public tool renderer chain, so Code Mode expands raw scripts/results while the main conversation shows OpenPI's compact call summaries. Child messages also ignore thinking visibility and Markdown presentation settings.
Value
Direct and Workflow child pages use the same compact tool presentation and native message components as the main conversation. Ctrl+O retains native evidence, including errors and streamed results.
Approach
Resolve child tool presentation through the Session's public renderer chain. Register ordinary activity-card presentation independently of execution on newer Pi hosts; reuse the same projection locally on Pi 0.99.1. Pass child thinking, output padding, code indentation and extension Markdown transformers to native message components, with settings-aware caching.
Investigation and acceptance boundaries:
docs/research/CHILD_RENDER_PARITY_2026-10-05.md.Validation
bun run check: passed; documentation contract separately rechecked after adding the investigation.bun run test: passed, Node 2295 passed / 9 skipped in 142.51s; UI 1158 passed in 24.52s. Final independent review passed; all 17 exact-head CI jobs passed, including required Node 22.19.0 / Node 24 / Background terminals (Windows) checks.Impact