[PR #8179] fix(TUI): make tui work when OPENCODE_SERVER_PASSWORD is set #12648

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

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

State: closed
Merged: Yes


What does this PR do?

When setting the OPENCODE_SERVER_PASSWORD env variable the regular TUI app would no longer work. See the issue this PR fixes for details, please.

How did you verify your code works?

Run OPENCODE_SERVER_PASSWORD='secure-password' bun dev . after applying fix and sending a test-prompt.
Furthermore, checked that when I return undefined for my new "getAuthorizationHeader" helper and run the same comment the previous issue persists, so this isn't due to the bundled CLI tool behaving different from bun dev . in this regard.

Fixes #8173

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8179 **State:** closed **Merged:** Yes --- ### What does this PR do? When setting the OPENCODE_SERVER_PASSWORD env variable the regular TUI app would no longer work. See the issue this PR fixes for details, please. ### How did you verify your code works? Run `OPENCODE_SERVER_PASSWORD='secure-password' bun dev .` after applying fix and sending a test-prompt. Furthermore, checked that when I return undefined for my new "getAuthorizationHeader" helper and run the same comment the previous issue persists, so this isn't due to the bundled CLI tool behaving different from `bun dev .` in this regard. Fixes #8173
yindo added the pull-request label 2026-02-16 18:17:32 -05:00
yindo closed this issue 2026-02-16 18:17:32 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12648