Skip to content

fix(tui): align wrapped inline tool rows#28664

Open
kitlangton wants to merge 2 commits into
anomalyco:devfrom
kitlangton:kit/inline-tool-wrap-snapshot
Open

fix(tui): align wrapped inline tool rows#28664
kitlangton wants to merge 2 commits into
anomalyco:devfrom
kitlangton:kit/inline-tool-wrap-snapshot

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Render completed inline tool rows with a fixed icon column so wrapped grep/glob/read summaries hang under the tool text instead of the icon.
  • Preserve pending inline tool rendering and denied styling.
  • Add a beta snapshot fixture comparing current, stable wrap, hanging indent, detail rows, and compact layouts at a narrow terminal width.

Beta

  • Marked with the beta label for UI feedback on the new wrapping behavior.

Testing

  • bun run test -- test/cli/tui/inline-tool-wrap-snapshot.test.tsx
  • bunx oxlint packages/opencode/src/cli/cmd/tui/routes/session/index.tsx packages/opencode/test/cli/tui/inline-tool-wrap-snapshot.test.tsx (existing warnings in session/index.tsx)
  • bun typecheck
  • push hook: bun turbo typecheck

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