Fixed OPENCODE_CONFIG_DIR to load config files. (#4400)


			
			
				pull/4401/head
			
			
		
opencode-agent[bot] 2025-11-16 23:48:36 -06:00 committed by GitHub
parent 2535f9febf
commit 3c6dcad2af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ export namespace Config {
for (const dir of directories) {
await assertValid(dir)
if (dir.endsWith(".opencode")) {
if (dir.endsWith(".opencode") || dir === Flag.OPENCODE_CONFIG_DIR) {
for (const file of ["opencode.jsonc", "opencode.json"]) {
log.debug(`loading config from ${path.join(dir, file)}`)
result = mergeDeep(result, await loadFile(path.join(dir, file)))