Skip to content

Commit 27dd35b

Browse files
committed
Serialize configured agent resolution
1 parent c98debc commit 27dd35b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/config/loader.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,9 @@ func ResolveRoleAgentName(role, townRoot, rigPath string) (agentName string, isR
17031703
// flows like hooks sync and doctor checks that need the intended provider and
17041704
// template even before the runtime is installed locally.
17051705
func ResolveRoleConfiguredAgentConfig(role, townRoot, rigPath string) *RuntimeConfig {
1706+
resolveConfigMu.Lock()
1707+
defer resolveConfigMu.Unlock()
1708+
17061709
var rigSettings *RigSettings
17071710
if rigPath != "" {
17081711
var err error

0 commit comments

Comments
 (0)