Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): fail turns when Claude Code is logged out #8869

Closednone23(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/8869/headopened View on GitHub

Showing 6 changed files with 139 additions and 1 deletion (loading 3).

x
0 of 6 viewed, 6 left
113 additions and 0 deletionsapps/server/src/provider/Layers/ClaudeAdapter.test.tsModified
View file
@@ -2071,6 +2071,119 @@
+ it.effect.each([
+ {
+ name: "success without a terminal reason",
+ result: { subtype: "success", is_error: true, errors: [] },
+ expectedState: "failed",
+ expectsLoginHint: true,
+ },
+ {
+ name: "success with an API-error terminal reason",
+ result: { subtype: "success", is_error: true, terminal_reason: "api_error", errors: [] },
+ expectedState: "failed",
+ expectsLoginHint: true,
+ },
+ {
+ name: "interrupted",
+ result: {
+ subtype: "error_during_execution",
+ is_error: true,
+ terminal_reason: "aborted_tools",
+ errors: [],
+ },
+ expectedState: "interrupted",
+ expectsLoginHint: false,
+ },
+ {
+ name: "cancelled",