Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ export const CLAUDE_DEFAULT_INSTANCE_ID = defaultInstanceIdForDriver(CLAUDE_PROV
const CLAUDE_SCRIPT_EXTENSIONS = [".js", ".mjs", ".tsx", ".ts", ".jsx"];
// The SDK has no control-request deadline; the CLI waits up to 30 s per MCP server.
const CLAUDE_MCP_REGISTRATION_TIMEOUT = "90 seconds";
const CLAUDE_BOOT_TIMEOUT = "5 minutes";
// Boot includes SessionStart hooks, which Claude Code runs to its 10 minute hook
// timeout before it answers initialize.
const CLAUDE_BOOT_TIMEOUT = "11 minutes";
// Claude can consume a subagent result before the launching turn ends, leaving
// its notification with no native wake turn to answer the continuation.
const CLAUDE_WAKE_TURN_START_DEADLINE = "2 minutes";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ it.effect("does not reuse a fresh session ID after MCP registration times out",

it.effect.each([
["opens after a slow CLI boot", "120 seconds", true],
["times out a CLI that never boots", "5 minutes", false],
["opens after SessionStart hooks run near their 10 minute timeout", "10 minutes", true],
["times out a CLI that never boots", "11 minutes", false],
] as const)("%s", ([, bootWait, boots]) =>
Effect.gen(function* () {
const waiting = Promise.withResolvers<void>();
Expand Down
Loading