Force colored output in shell tool adding env variable FORCE_COLOR=1 #1168

Closed
opened 2026-02-16 17:29:50 -05:00 by yindo · 2 comments
Owner

Originally created by @remorses on GitHub (Aug 8, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Currently tools like Vitest do not show colored output in opencode because the terminal is detected as non tty. Adding env variables like FORCE_COLOR would force the output to be colored.

Originally created by @remorses on GitHub (Aug 8, 2025). Originally assigned to: @adamdotdevin on GitHub. Currently tools like Vitest do not show colored output in opencode because the terminal is detected as non tty. Adding env variables like `FORCE_COLOR` would force the output to be colored.
yindo closed this issue 2026-02-16 17:29:50 -05:00
Author
Owner

@remorses commented on GitHub (Aug 8, 2025):

FORCE_COLOR=1 did not work. I think this is a problem with opencode itself stripping ansi codes

https://github.com/sst/opencode/issues/258

@remorses commented on GitHub (Aug 8, 2025): FORCE_COLOR=1 did not work. I think this is a problem with opencode itself stripping ansi codes https://github.com/sst/opencode/issues/258
Author
Owner

@remorses commented on GitHub (Dec 22, 2025):

Colored output will be fixed by https://github.com/sst/opencode/pull/4791

@remorses commented on GitHub (Dec 22, 2025): Colored output will be fixed by https://github.com/sst/opencode/pull/4791
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1168