fix(tui): don't check for version upgrades if it's disabled by the user by rahuliyer95 · Pull Request #20089 · anomalyco/opencode · GitHub
Skip to content

fix(tui): don't check for version upgrades if it's disabled by the user#20089

Merged
rekram1-node merged 2 commits intoanomalyco:devfrom
rahuliyer95:fix/skip-version-check
Apr 21, 2026
Merged

fix(tui): don't check for version upgrades if it's disabled by the user#20089
rekram1-node merged 2 commits intoanomalyco:devfrom
rahuliyer95:fix/skip-version-check

Conversation

@rahuliyer95
Copy link
Copy Markdown
Contributor

@rahuliyer95 rahuliyer95 commented Mar 30, 2026

Issue for this PR

Closes #10484

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Currently, the TUI checks for version upgrades first and then decides whether to act upon it based on the user's setting for auto upgrades (either via environment variable or opencode.json). Moved the check before making an API call to Github to early exit if the user has disabled automatic version upgrades.

How did you verify your code works?

Built the project locally and ran with OPENCODE_DISABLE_AUTOUPDATE=true and "autoupdate": false in ~/.config/opencode/opencode.json. Confirmed by temporarily adding a log which printed

service=upgrade skipping upgrade check reason=autoupdate disabled

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Mar 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@rekram1-node
Copy link
Copy Markdown
Collaborator

/review

@github-actions
Copy link
Copy Markdown
Contributor

@rekram1-node rekram1-node merged commit cd6415f into anomalyco:dev Apr 21, 2026
8 checks passed
@rahuliyer95 rahuliyer95 deleted the fix/skip-version-check branch April 21, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenCode Attempts Package Installation on Startup Despite Auto-Update Being Disabled

2 participants