Skip to content

fix(tui): inherit elevated tool theme - #38224

Merged
jlongster merged 1 commit into
v2from
elevate-tool-theme
Jul 22, 2026
Merged

fix(tui): inherit elevated tool theme#38224
jlongster merged 1 commit into
v2from
elevate-tool-theme

Conversation

@jlongster

Copy link
Copy Markdown
Contributor

Summary

  • add a scoped theme context provider for nested component surfaces
  • render block tool content and status badges with the elevated theme context
  • preserve the parent surface color for the block border

Testing

  • bun typecheck in packages/tui
  • bun test test/cli/tui/inline-tool-wrap-snapshot.test.tsx in packages/tui
  • OpenCode Drive snapshot of a background shell block

@jlongster

Copy link
Copy Markdown
Contributor Author

Before and after

Before After
Background shell block before Background shell block after

The elevated theme now reaches nested block content, including the Background status badge, while the left border retains the parent surface color.

@jlongster
jlongster merged commit 6b9136e into v2 Jul 22, 2026
10 checks passed
@jlongster
jlongster deleted the elevate-tool-theme branch July 22, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant