MCPcopy Create free account
hub / github.com/codehamr/codehamr / SetActive

Method SetActive

internal/config/config.go:355–366  ·  view source on GitHub ↗

SetActive switches the active profile and persists. Fails on an unknown name, no silent coercion. On Save failure it reverts in-memory Active so the live model and config.yaml stay in lockstep; otherwise the switch would stick this session but vanish on the next Bootstrap.

(name string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

cmdModelMethod · 0.80
activateHamrpassMethod · 0.80
TestSetActivePersistsFunction · 0.80

Calls 1

SaveMethod · 0.95

Tested by 3

TestSetActivePersistsFunction · 0.64