Skip to content

OPENCODE_SERVER_PASSWORD in env prevents user from working in TUI #8173

@LeonMueller-OneAndOnly

Description

@LeonMueller-OneAndOnly

Description

When setting the OPENCODE_SERVER_PASSWORD variable in the env file, the TUI cannot be used anymore.

This is the cli output:

➜  git:(master) opencode
Unauthorized

➜  git:(master) opencode --hostname 127.0.0.1 --port 4096
^[[?2027;0$y^[[?2031;0$y^[[?1004;2$y^[[?2004;2$y^[[?2026;0$yUnauthorized
^[[?2027;0$y^[[?2031;0$y^[[?1004;2$y^[[?2004;2$y^[[?2026;0$y^[[1;1R%

It would be desirable to be able to start opencode in the tui and also keep the web gui open (for notification sounds, checking in from other devices when networking is set up, personal preferences about using tui and web-gui concurrently, ...)

Plugins

No response

OpenCode version

1.1.16

Steps to reproduce

  1. Run OPENCODE_SERVER_PASSWORD='secure-password' opencode

Screenshot and/or share link

No response

Operating System

macOS Sequoia

Terminal

Cursor / VSCode

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions