Skip to content

fix: handle malformed custom themes#18578

Open
KrishavRajSingh wants to merge 2 commits intoanomalyco:devfrom
KrishavRajSingh:fix/theme
Open

fix: handle malformed custom themes#18578
KrishavRajSingh wants to merge 2 commits intoanomalyco:devfrom
KrishavRajSingh:fix/theme

Conversation

@KrishavRajSingh
Copy link

@KrishavRajSingh KrishavRajSingh commented Mar 22, 2026

Issue for this PR

Closes #18517 #12903 #4763

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes the tui crash when the custom theme is malformed. It skips invalid custom theme files instead of crashing, logs the warning and fallbacks to opencode built-in theme.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screen.Recording.2026-03-22.at.6.55.50.AM.mov

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions
Copy link
Contributor

Hey! Your PR title handle malformed custom themes doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@KrishavRajSingh KrishavRajSingh changed the title handle malformed custom themes fix: handle malformed custom themes Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opentui: fatal: Object.entries requires that input parameter not be null or undefined

1 participant