withAgentConfigLock
View as Markdownfunction withAgentConfigLock<T>(home, fn): Promise<T>;Defined in: agent/src/config.ts:202
Serializes read-modify-write of agent.yaml across processes (the CLI and the running agent):
an exclusive agent.yaml.lock file, broken when older than 10 s.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
home |
string |
fn |
() => Promise<T> |
Returns
Section titled “Returns”Promise<T>