mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Set XDG_CONFIG_HOME to enable workspace AGENTS.md consumption
This commit is contained in:
1 parent
ef62be5dc1
commit
5cc1fbb9b5
1 file changed
+2
@@ -99,6 +99,7 @@ class OpenCodeServerManager {
|
||||
}
|
||||
|
||||
logger.info(`OpenCode server working directory: ${OPENCODE_SERVER_DIRECTORY}`)
|
||||
logger.info(`OpenCode XDG_CONFIG_HOME: ${path.join(OPENCODE_SERVER_DIRECTORY, '.config')}`)
|
||||
logger.info(`OpenCode will use ?directory= parameter for session isolation`)
|
||||
|
||||
|
||||
@@ -112,6 +113,7 @@ class OpenCodeServerManager {
|
||||
env: {
|
||||
...process.env,
|
||||
XDG_DATA_HOME: path.join(OPENCODE_SERVER_DIRECTORY, '.opencode/state'),
|
||||
XDG_CONFIG_HOME: path.join(OPENCODE_SERVER_DIRECTORY, '.config'),
|
||||
OPENCODE_CONFIG: OPENCODE_CONFIG_PATH,
|
||||
GITHUB_TOKEN: gitToken,
|
||||
GIT_ASKPASS: gitToken ? 'echo $GITHUB_TOKEN' : 'echo',
|
||||
|
||||
Reference in new issue
Block a user