Repository navigation
Conversation
…ch content
Adds a session.tool_details setting (default "show") that collapses the
write, edit, and patch tool blocks to a clickable header by default, hiding
the file content and diffs from the transcript. Clicking the header expands
or collapses the content again.
- Config: new session.tool_details field ("show" | "collapse") in the V2
TUI config schema
- Settings: new "Tool details" entry in the /settings dialog
- Rendering: Write, Edit, and ApplyPatch wrap their content in a Show block
and toggle expansion through BlockTool's onClick, matching the existing
Shell and GenericTool collapse pattern
- Tests: schema validation and settings default coverage
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Scope: new TUI setting
|
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #19074
Type of change
What does this PR do?
Adds a
session.tool_detailsTUI setting (default"show") with a second value,"collapse". When collapsed, thewrite,edit, andpatchtool blocks render as their existing clickable headers only — the file content and diff hunks stay out of the transcript until you click the header to expand them. Clicking again collapses. This mirrors thesession.thinkingsetting and reuses the click-to-toggle patternShellandGenericToolalready use, so there is no new UI surface, just a config field, a/settingsentry, andShow-wrapped content in the three renderers.How did you verify your code works?
bun run typecheckinpackages/tuipassesbun testinpackages/tuipasses: 698 pass, 0 failtest/config-v2.test.tsxcovering schema validation of the new field and its settings defaultScreenshots / recordings
If this is a UI change, please include a screenshot or recording.
None attached yet — I couldn't capture a clean TUI frame from this environment. The behavior is identical to the existing collapsed
Shell/GenericToolblocks (header + click to expand); happy to add a recording if helpful.Checklist