fix(agents): stabilize cli creds cache + bash cwd

This commit is contained in:
Peter Steinberger
2026-01-10 18:02:21 +01:00
parent 843ff5f2d4
commit ef08c3f038
4 changed files with 37 additions and 12 deletions

View File

@@ -136,10 +136,12 @@ describe("cli credentials", () => {
const first = readClaudeCliCredentialsCached({
allowKeychainPrompt: true,
ttlMs: 15 * 60 * 1000,
platform: "darwin",
});
const second = readClaudeCliCredentialsCached({
allowKeychainPrompt: false,
ttlMs: 15 * 60 * 1000,
platform: "darwin",
});
expect(first).toBeTruthy();
@@ -167,6 +169,7 @@ describe("cli credentials", () => {
const first = readClaudeCliCredentialsCached({
allowKeychainPrompt: true,
ttlMs: 15 * 60 * 1000,
platform: "darwin",
});
vi.advanceTimersByTime(15 * 60 * 1000 + 1);
@@ -174,6 +177,7 @@ describe("cli credentials", () => {
const second = readClaudeCliCredentialsCached({
allowKeychainPrompt: true,
ttlMs: 15 * 60 * 1000,
platform: "darwin",
});
expect(first).toBeTruthy();