fix(session-recovery): improve error detection and add continue prompt
- Enhance error type detection for thinking block order issues - Add continue prompt after successful session recovery - Improve error message matching logic
This commit is contained in:
@@ -70,7 +70,10 @@ function detectErrorType(error: unknown): RecoveryErrorType {
|
||||
return "tool_result_missing"
|
||||
}
|
||||
|
||||
if (message.includes("thinking") && message.includes("first block")) {
|
||||
if (
|
||||
message.includes("thinking") &&
|
||||
(message.includes("first block") || message.includes("must start with") || message.includes("preceeding"))
|
||||
) {
|
||||
return "thinking_block_order"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user