GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: troubleshooting.mdx says the desktop app uses OPENCODE_PORT for its local server — nothing reads it · Issue #117 · developing-today-forks/opencode

docs: troubleshooting.mdx says the desktop app uses OPENCODE_PORT for its local server — nothing reads it #117

New issue
Copy link
New issue
Copy link
Closed
#336
Closed
docs: troubleshooting.mdx says the desktop app uses OPENCODE_PORT for its local server — nothing reads it#117
#336
Copy link
Labels
documentationImprovements or additions to documentationkind/docsDocumentation improvement or addition

Description

@dezren39
dezren39
opened on Oct 19, 2026
Issue body actions

Problem

The English troubleshooting guide tells users debugging a desktop "Connection Failed" dialog to check OPENCODE_PORT:

  • packages/web/src/content/docs/troubleshooting.mdx:132 — "If you have OPENCODE_PORT set in your environment, the desktop app will try to use that port for the local server."
  • :134 — "Unset OPENCODE_PORT (or pick a free port) and restart."

Nothing in this repo reads OPENCODE_PORT. A user who follows this section will unset (or change) a variable that has no effect, while the actual port sources — the server.port config covered in the section directly above (:126-128), or the desktop sidecar's own choice — go unexamined for the case the guide attributes to the env var.

Evidence (verified this run, main 0bb248b075)

  • git grep OPENCODE_PORT over the full tree returns hits only in the docs (the English page above and its translations). No reader in packages/desktop, packages/cli, packages/server, or anywhere else; no setter either.
  • How the desktop's local server port is actually chosen in v2: packages/desktop/src/main/service/background-service.ts:51-57 — the sidecar is spawned with an explicit --port (a fixed 0x0c0c in the isolated case, with a comment explaining a fixed port makes a second contender fail to bind); the CLI/server path takes its port from the server config section, which is exactly what the troubleshooting section above this one tells users to remove.
  • Dedup: this variable is not part of the cli.mdx env tables, so the audits in docs: OPENCODE_SERVER_USERNAME is promised but never read — basic-auth username is hardcoded to 'opencode' #103/docs: OPENCODE_ENABLE_EXA / OPENCODE_ENABLE_PARALLEL / OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS / OPENCODE_EXPERIMENTAL_LSP_TOOL are promised but read nowhere #105/docs: eleven more OPENCODE_* variables in the cli.mdx env table are read nowhere — DISABLE_PRUNE, DISABLE_AUTOCOMPACT, PERMISSION, TUI_CONFIG and seven others #114 (scoped to cli.mdx/tools.mdx) never covered it; issue searches for OPENCODE_PORT return no existing issue.

Why it matters

Troubleshooting docs are read by users who are already stuck. A step that cannot change anything burns the one restart cycle the user is willing to try, and misattributes the cause: a port clash from a stale OPENCODE_PORT is presented as a live possibility in v2 when the variable is v1 residue.

Acceptance criteria

Pick one direction and apply it consistently:

  1. Align the docs with v2: remove the OPENCODE_PORT passage from troubleshooting.mdx (English source; translations follow the usual docs-locale-sync flow), keeping the working advice (the server.port/server.hostname config section above it). Or:
  2. Implement it: make the desktop read OPENCODE_PORT when choosing its local server port, with a test showing the spawned server binds the requested port.

Filed-only: implement-vs-remove needs a maintainer decision (mirroring #103/#105), so no fix is attempted here. Single-repo: the guide and the desktop app live only in this repo.

Activity

  1. dezren39
    closed this as completedin #336on Oct 23, 2026
  2. dezren39
    added a commit that references this issue on Oct 23, 2026

    Merge pull request #338 from developing-today/creator/337-roadmap-don…

    c61f5ac
  3. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    Author
    More actions

    AUDIT-7 Lane 2 slice 3 — closing evidence. Verified against the issue body and merged implementation PR(s):

    • PR #336 — docs: remove OPENCODE_PORT passage from troubleshooting guide (merged 2026-10-23)

    The issue had zero comments in the fresh pre-action read; this comment records the missing close evidence.

  4. dezren39
    added
    kind/docsDocumentation improvement or addition
    documentationImprovements or additions to documentation
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationkind/docsDocumentation improvement or addition

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.