Repository navigation
Revert "fix(server): honor OPENCODE_SERVER_USERNAME for serve and --server" - #59444
Conversation
…erver (#…" This reverts commit 0749024.
There was a problem hiding this comment.
This cleanly reverts #59379. The changed files match their state before that commit, and I checked from source that opencode serve once again accepts only the opencode username: with OPENCODE_SERVER_USERNAME=alice, alice:pw gets 401 and opencode:pw gets 200. The auth and server-connection tests pass. I couldn't run the type checks here because the typecheck script needs bun check.
Public API: removes the optional username from ServerOptions, and OPENCODE_SERVER_USERNAME is ignored again by serve and --server (the Basic auth username is fixed to opencode). This is not backwards compatible for anyone who started relying on a custom username after #59379: they need to switch back to opencode.
The bug from #45856 (configured Basic Auth username ignored, so the server returns 401) comes back with this revert. A line in the description on why it's being reverted, and whether a replacement fix is planned, would help.
Reverts #59379
Added by the opencode bot (AI-generated).
Related: #45856, #36990
Public API: removes
usernamefrom ServerOptions and stops honouring OPENCODE_SERVER_USERNAME inserve/--server(not backwards compatible for custom usernames)