fix(web): honor XDG_CONFIG_HOME for OpenCode paths (#3305)
Closes #3304. Thanks for consolidating the global OpenCode paths. VS Code path parity and effective-path display follow-ups are maintainer-owned.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { createOpencodeClient } from '@opencode-ai/sdk/v2';
|
||||
import { buildDeferredRestartResponse } from './config-mutation-response.js';
|
||||
import { OPENCODE_CONFIG_DIR } from './shared.js';
|
||||
|
||||
/**
|
||||
* Matches how OpenCode reads its own boolean env flags: any value other than
|
||||
@@ -110,7 +111,7 @@ export const registerSkillRoutes = (app, dependencies) => {
|
||||
}
|
||||
|
||||
const userRoots = [
|
||||
path.join(home, '.config', 'opencode'),
|
||||
OPENCODE_CONFIG_DIR,
|
||||
path.join(home, '.opencode'),
|
||||
path.join(home, '.claude', 'skills'),
|
||||
path.join(home, '.agents', 'skills'),
|
||||
|
||||
Reference in New Issue
Block a user