Skip to content

Config autoupdate only respected at global path #6984

@scottrbaxter

Description

@scottrbaxter

Description

Config file includes "autoupdate": false,, but v1.1.1 ignores this and updates to v1.1.2 on startup.

This occurs whether using ~/.config/opencode/opencode.json, a local path ./opencode.json and referencing the env var
OPENCODE_CONFIG to declare a specific config.

This did not occur on v1.0.223 or earlier.

Autoupdate also occurs automatically if "autoupdate": "notify" is specified.

Plugins

N/A

OpenCode version

v1.1.1

Steps to reproduce

  1. echo '{"$schema": "https://opencode.ai/config.json","autoupdate": false,}' > opencode-autodate.json
  2. npm -g i opencode-ai@1.1.1
  3. OPENCODE_CONFIG=opencode-autodate.json opencode --version # confirms 1.1.1
  4. OPENCODE_CONFIG=opencode-autodate.json opencode # notification states autodate to 1.1.2
  5. <ctrl-c> quit
  6. OPENCODE_CONFIG=opencode-autodate.json opencode --version # confirms 1.1.2

Screenshot and/or share link

Image

Operating System

macOS Sequoia

Terminal

iTerm2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions