Repository navigation
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
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 #6087
Type of change
What does this PR do?
Adds a TUI config option for the session sidebar width:
{ "sidebar": { "width": 50 } }The default remains 42 columns. The session layout and sidebar component now use the same resolved width, and the value is clamped against the terminal width so a large configured value does not consume the full main area.
This also updates legacy TUI config migration so
tui.sidebar.widthfromopencode.jsonis preserved when moved intotui.json, and documents the option in English and Chinese config docs.How did you verify your code works?
cd packages/tui && bun run typecheckcd packages/opencode && bun run typecheckcd packages/opencode && bun test test/config/tui.test.ts --timeout 30000bunx prettier --check packages/opencode/src/config/tui-migrate.ts packages/opencode/test/config/tui.test.ts packages/tui/src/config/index.tsx packages/tui/src/routes/session/index.tsx packages/tui/src/routes/session/sidebar.tsx packages/web/src/content/docs/config.mdx packages/web/src/content/docs/zh-cn/config.mdxbun turbo typecheck: 29 packages successfulScreenshots / recordings
Not included. This is a config-driven layout change; no visible behavior changes unless
sidebar.widthis configured.Checklist