Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes TUI custom theme discovery so malformed or unreadable files are skipped with warnings while valid themes remain available.
Changes:
- Added per-file read and parse error handling.
- Added tests for malformed themes and directory precedence.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Summary |
|---|---|
packages/tui/test/theme.test.ts |
Tests malformed theme handling and precedence. |
packages/tui/src/context/theme.tsx |
Skips failed custom theme reads and parses with warnings. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Issue author here - confirmed this resolves #44263. The per-file |
|
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. |
|
This PR was closed by the cleanup sweep, but it fixed issue #44263 ( Requesting a reopen. Happy to rebase on current |
Issue for this PR
Closes #44263
Type of change
What does this PR do?
Handles custom theme read and parse failures per file. A malformed theme is now skipped with a warning instead of rejecting the entire discovery pass, so valid themes remain available and directory precedence still applies.
How did you verify your code works?
bun test test/theme.test.tsinpackages/tui: 8 passbun run testinpackages/tui: 193 pass, 1 skipbun run typecheckinpackages/tuigit diff --checkScreenshots / recordings
Not applicable; this changes theme discovery error handling without changing UI layout.
Checklist