Skip to content

OPENCODE_CONFIG_DIR does not read custom config file. #4399

@nitg16

Description

@nitg16

Description

Config file opencode.json stored in OPENCODE_CONFIG_DIR does not work when doing this:

export OPENCODE_CONFIG_DIR=~/data/opencode

Config file opencode.json stored in OPENCODE_CONFIG_DIR works only when exporting both:

export OPENCODE_CONFIG_DIR=~/data/opencode
export OPENCODE_CONFIG=~/data/opencode/opencode.json

Ideally OPENCODE_CONFIG_DIR env var should be enough to load custom config from a custom config directory.

OpenCode version

v1.0.68

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Ubuntu Linux

Terminal

No response

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