inline global config load

This commit is contained in:
Kit Langton
2026-03-25 14:46:17 -04:00
parent 6ce3347e44
commit caae1d9902
+1 -2
View File
@@ -79,7 +79,6 @@ export namespace Config {
}
async function loadState(ctx: InstanceInfo) {
const cfg = global()
const auth = await Auth.all()
// Config loading order (low -> high precedence): https://opencode.ai/docs/config#precedence-order
@@ -116,7 +115,7 @@ export namespace Config {
}
// Global user config overrides remote config.
result = mergeConfigConcatArrays(result, await cfg)
result = mergeConfigConcatArrays(result, await global())
// Custom config path overrides global config.
if (Flag.OPENCODE_CONFIG) {