fix: write auth profiles to multi-agent path during onboarding
- Onboarding now writes auth profiles under ~/.clawdbot/agents/main/agent so the gateway sees credentials on first start. - Hardened onboarding test to ignore legacy env vars. Thanks @minghinmatthewlam!
This commit is contained in:
committed by
GitHub
parent
c7ffa28980
commit
2dd6b3aeb2
@@ -53,3 +53,12 @@ export function resolveAgentDir(cfg: ClawdbotConfig, agentId: string) {
|
||||
const root = resolveStateDir(process.env, os.homedir);
|
||||
return path.join(root, "agents", id, "agent");
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve the agent directory for the default agent without requiring config.
|
||||
* Used by onboarding when writing auth profiles before config is fully set up.
|
||||
*/
|
||||
export function resolveDefaultAgentDir(): string {
|
||||
const root = resolveStateDir(process.env, os.homedir);
|
||||
return path.join(root, "agents", DEFAULT_AGENT_ID, "agent");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user