inline global config load
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user