fix(FN-704): increase Claude CLI timeout to 60 seconds
- Increase Claude CLI usage fetch timeout from 30s to 60s - Improve timeout error message with actionable context
This commit is contained in:
@@ -440,9 +440,9 @@ async function fetchClaudeUsageViaCli(): Promise<ProviderUsage> {
|
||||
if (clean.includes("Current session") || clean.includes("% left") || clean.includes("% used")) {
|
||||
resolve(buf);
|
||||
} else {
|
||||
reject(new Error("Claude CLI timed out"));
|
||||
reject(new Error("Claude CLI timed out after 60 seconds. The Claude CLI may be slow to start or authenticate."));
|
||||
}
|
||||
}, 30000);
|
||||
}, 60000);
|
||||
|
||||
ptyProcess.onData((data: string) => {
|
||||
if (settled) return;
|
||||
|
||||
Reference in New Issue
Block a user