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:
gsxdsm
2026-04-02 13:24:22 -07:00
parent 1abf3fc384
commit 192387d3ff

View File

@@ -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;