Skip to content

Conversation

@adamdotdevin
Copy link
Contributor

GPT 5.2 xhigh:

That message is coming from the desktop app’s startup path: it spawns the bundled sidecar (opencode-cli … serve …) and then waits up to 30s for GET /global/health to succeed. If that never goes healthy, packages/desktop/src-tauri/src/lib.rs throws Failed to spawn OpenCode Server….

Why reports often show empty “Logs:” today

  • The desktop only buffers sidecar stdout/stderr, but the CLI writes most diagnostics to its own log file unless run with --print-logs.
  • We also weren’t recording early process termination, so a sidecar that exits immediately (or never prints) looks like a generic 30s timeout.

I patched the desktop backend to make these reports actionable:

  • Start the sidecar with --print-logs --log-level WARN so real errors land in the buffered logs.
  • Record CommandEvent::Error and CommandEvent::Terminated (exit code/signal) into the buffered logs.
  • Fail fast if the sidecar terminates before becoming healthy (instead of always waiting for the 30s timeout).
  • Add a [SPAWN] … line so even “silent” failures show what we tried to run.

Changes are in:

  • packages/desktop/src-tauri/src/cli.rs
  • packages/desktop/src-tauri/src/server.rs
  • packages/desktop/src-tauri/src/lib.rs

If you ship a build with this, the next batch of reports should include exit code/signal + stderr, which usually immediately points to the root cause (missing libs/GLIBC, illegal instruction on older CPUs, shell/env issues, etc.).

@Brendonovich Brendonovich enabled auto-merge (squash) February 11, 2026 09:28
@Brendonovich Brendonovich enabled auto-merge (squash) February 11, 2026 09:30
@Brendonovich Brendonovich merged commit 7e1247c into dev Feb 11, 2026
10 of 14 checks passed
@Brendonovich Brendonovich deleted the opencode/gentle-knight branch February 11, 2026 09:44
sellys-537 pushed a commit to sellys-537/opencode that referenced this pull request Feb 11, 2026
* fix(app): workspace reset issues

* fix(app): new session in workspace choosing wrong workspace

* chore: fix some norwegian i18n issues (anomalyco#12935)

* fix: use absolute paths for sidebar session navigation (anomalyco#12898)

* chore: fix typos and GitHub capitalization (anomalyco#12852)

* chore: fix test

* fix(docs): locale translations

* chore: fix e2e tests

* chore: generate

* test(e2e): redo & undo test (anomalyco#12974)

* fix(app): persist defensiveness (anomalyco#12973)

* refactor: clean up dialog-model.tsx per code review (anomalyco#12983)

* fix(app): use agent configured variant (anomalyco#12993)

* fix(app): terminal replay (anomalyco#12991)

* fix(app): regressions

* chore: translator agent

* fix(app): don't dispose instance after reset workspace

* fix(app): memory leak with event fetch

* fix(app): no changes in review pane

* wip: zen

* fix(app): global event default fetch

* zen: retry on 429

* fix(app): include basic auth

* fix(app): back to platform fetch for now

* release: v1.1.54

* fix: show helpful message when free usage limit is exceeded (anomalyco#13005)

* fix(app): disable terminal transparency

* fix(app): memory leak with platform fetch for events

* core: increase test timeout to 30s to prevent failures during package installation

* release: v1.1.55

* fix(docs): locale translations

* fix(app): don't scroll code search input

* chore: generate

* fix(app): don't close sidebar on session change (anomalyco#13013)

* zen: log error

* fix(desktop): open apps with executables on Windows (anomalyco#13022)

* fix(docs): invalid markdown

* fix(app): task tool rendering

* release: v1.1.56

* chore: update website stats

* wip: zen

* fix(docs): locale translations

* wip: zen

* wip: zen

* wip: zen

* wip: zen

* wip: zen

* Update VOUCHED list

anomalyco#12841 (comment)

* fix(tui): improve amazon-bedrock check to include container credentials (anomalyco#13037)

* fix(tui): default session sidebar to auto (anomalyco#13046)

* tweak: /review prompt to look for behavior changes more explicitly (anomalyco#13049)

* fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact (anomalyco#12924)

Co-authored-by: James Lal <james@littlebearlabs.io>

* chore: generate

* docs: remove 'Migrating to 1.0' documentation section (anomalyco#13076)

* wip: zen

* fix: add additional context overflow cases, remove overcorrecting ones (anomalyco#13077)

* feat(desktop): add WSL backend mode (anomalyco#12914)

* fix(desktop): read wayland preference from store (anomalyco#13081)

* fix(desktop): server spawn resilience (anomalyco#13028)

Co-authored-by: Brendan Allan <git@brendonovich.dev>

* fix(docs): avoid footer language selector truncation (anomalyco#13124)

* docs(ko): improve translations for intro, cli, and commands (anomalyco#13094)

* chore: generate

* feat(desktop): enhance Windows app resolution and UI loading states (anomalyco#13084)

* fix: encode non-ASCII directory paths in v1 SDK HTTP headers (anomalyco#13131)

* desktop: use tracing for logging (anomalyco#13135)

* fix(web): prevent language select label truncation (anomalyco#13100)

* fix(app): copy path button styles

* fix(app): terminal copy/paste

* release: v1.1.57

* fix(tui): prevent home wordmark corruption in height-constrained terminals (anomalyco#13069)

* feat(prompt): mode-specific input placeholders (anomalyco#12388)

* fix(tui): keep /share available to copy existing link (anomalyco#12532)

* fix(tui): dismiss dialogs with ctrl+c (anomalyco#12884)

* Initial plan

---------

Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
Co-authored-by: Ole-Martin Bratteng <1681525+omBratteng@users.noreply.github.com>
Co-authored-by: Paul <139470135+riftzen-bit@users.noreply.github.com>
Co-authored-by: Peter Dave Hello <3691490+PeterDaveHello@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Filip <34747899+neriousy@users.noreply.github.com>
Co-authored-by: Dax <mail@thdxr.com>
Co-authored-by: Frank <frank@anoma.ly>
Co-authored-by: opencode <opencode@sst.dev>
Co-authored-by: Dax Raad <d@ironbay.co>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: OpeOginni <107570612+OpeOginni@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: James Lal <james@littlebearlabs.io>
Co-authored-by: Ariane Emory <97994360+ariane-emory@users.noreply.github.com>
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Co-authored-by: webwww123 <1876948535@qq.com>
Co-authored-by: Jun <87404676+Seungjun0906@users.noreply.github.com>
Co-authored-by: Jack <740172898@qq.com>
Co-authored-by: Shintaro Jokagi <61367823+taroj1205@users.noreply.github.com>
Co-authored-by: Kit Langton <kit.langton@gmail.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
keakon pushed a commit to keakon/opencode that referenced this pull request Feb 11, 2026
Co-authored-by: Brendan Allan <git@brendonovich.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants