[PR #10905] fix(tui): Ensure version check is skipped when autoupdate is disabled #13600

Open
opened 2026-02-16 18:18:26 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


What does this PR do?

It reorders upgrade() to prevent launching the code path to determine version information in case the user configured autoupdate: false. The information is not used anyway.

Main reason is, that launching the version check code causes issues with Ctrl-C not clearing the input on Windows afterwards, but instead crashing the whole app. The user is left on terminal, mouse movements produce strange ansi characters, until the user closes the terminal session and opens a new one. This PR allows users to set autoupdate: false as a workaround on Windows, to prevent the crashes.

How did you verify your code works?

  • bun run dev and use it with autoupdate: false on Windows, check that ctrl-c now indeed clears the input

Fixes #10538 for autoupdate: false (autoupdate: true still has the issue)

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10905 **State:** open **Merged:** No --- ### What does this PR do? It reorders upgrade() to prevent launching the code path to determine version information in case the user configured `autoupdate: false`. The information is not used anyway. Main reason is, that launching the version check code causes issues with Ctrl-C not clearing the input on Windows afterwards, but instead crashing the whole app. The user is left on terminal, mouse movements produce strange ansi characters, until the user closes the terminal session and opens a new one. This PR allows users to set `autoupdate: false` as a workaround on Windows, to prevent the crashes. ### How did you verify your code works? - `bun run dev` and use it with `autoupdate: false` on Windows, check that ctrl-c now indeed clears the input Fixes #10538 for `autoupdate: false` (`autoupdate: true` still has the issue)
yindo added the pull-request label 2026-02-16 18:18:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13600