Skip to content

Feature Request: Auto-Upgrade Option for opencode CLI  #149

@theepicsaxguy

Description

@theepicsaxguy

Summary:
I’d like to propose an auto-upgrade feature for the opencode CLI, allowing the tool to update itself without requiring manual confirmation. However, this option should be off by default and only enabled if the user turns it on in the settings.

Details and Considerations:

  • Upgrade Frequency: The CLI could check for updates at a regular interval (e.g., once per hour), or this interval could be user-customizable.
  • Session Awareness: Auto-upgrade should only proceed if there are no active sessions (no running CLI instances or open opencode projects). If a session is running, it should defer the upgrade and retry later.
  • User Control: This feature could be opt-in—users must enable it explicitly in the settings.
  • Notification: Consider informing the user after a successful upgrade, and clearly log or alert if an error occurs (or if an upgrade couldn’t be completed).
  • Error Handling: If the auto-upgrade fails (e.g., due to network or permissions issues), it should retry at the next interval and/or provide a fallback notification.
  • Platform Support: Ensure the feature is compatible across all supported OS/platforms.

UI/Config:

  • Settings entry: “Enable automatic upgrades? (default: off)”

Why:
This feature would improve convenience and help keep users on the latest version, while respecting those who prefer to manage upgrades manually.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions