Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): respawn Claude after an expired login #11048

Closedrobertnisipeanu(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/11048/headopened View on GitHub

Showing 4 changed files with 156 additions and 2 deletions (loading 1).

x
0 of 4 viewed, 4 left
1 addition and 1 deletionapps/server/src/provider/Drivers/ClaudeHome.test.tsModified
View file
@@ -73,7 +73,7 @@
const message = claudeSignedOutMessage({ configDir, cwd: "/synthetic/project" });
expect(message).toContain(`CLAUDE_CONFIG_DIR set to "${configDir}"`);
expect(message).not.toContain("CLAUDE_CONFIG_DIR=");
- expect(message).toContain("then start a new thread");
+ expect(message).toContain("then send the message again");
});
​
it.effect("separates capability probes by cwd", () =>
1 addition and 1 deletionapps/server/src/provider/Drivers/ClaudeHome.tsModified
View file
@@ -86,5 +86,5 @@
input.configDir !== undefined
? ` from ${quotePath(input.cwd)}, with CLAUDE_CONFIG_DIR set to ${quotePath(input.configDir)}`
: "";
- return `Claude could not authenticate. For subscription login, run \`claude auth login\` on this environment's machine${configuration}, then start a new thread. For API-key authentication, check this instance's configured credentials.`;
+ return `Claude could not authenticate. For subscription login, run \`claude auth login\` on this environment's machine${configuration}, then send the message again. For API-key authentication, check this instance's configured credentials.`;
};
154 additions and 0 deletionsapps/server/src/provider/Layers/ClaudeAdapter.test.tsModified
View file
@@ -4076,6 +4076,160 @@
+ it.effect("stops the session after an authentication failure so the next turn respawns", () => {
+ const harness = makeHarness();
+ return Effect.gen(function* () {