[PR #4083] fix(theme): filter out null values from theme palette #10865

Closed
opened 2026-02-16 18:15:37 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4083

State: closed
Merged: Yes


Issue

When opening opencode in zellij we see the following error:

null is not an object (evaluating 'hex3.replace')

This is because opencode requests 16 colors from the terminal but only 10 are returned when requesting those colors from zellij.

This doesn't seem to break much in opencode, but the big red error log is quite annoying.

Solution

Because zellij usually returns 10 colors and looking at the implementation here in opencode only 8 colors are required, we can safely filter out the null values.

Fixes #4017

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4083 **State:** closed **Merged:** Yes --- **Issue** When opening opencode in zellij we see the following error: ``` null is not an object (evaluating 'hex3.replace') ``` This is because opencode requests 16 colors from the terminal but only 10 are returned when requesting those colors from zellij. This doesn't seem to break much in opencode, but the big red error log is quite annoying. **Solution** Because zellij usually returns 10 colors and looking at the implementation here in opencode only 8 colors are required, we can safely filter out the null values. Fixes #4017
yindo added the pull-request label 2026-02-16 18:15:37 -05:00
yindo closed this issue 2026-02-16 18:15:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10865