Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(server): Claude sessions survive slow SessionStart hooks
#23202
Send to my agent
Open
juliusmarminge
wants to merge 10 commits into
main
from
refs/pull/23202/head
·
opened
last month
View on GitHub
Conversation
9
Commits
10
Files changed
2
Impact
Showing
2 changed files
with
5 additions
and
2 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
3 additions and 1 deletion
+3
-1
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
View file
Expand up
Show all 349 lines
@@ -350,7 +350,9 @@
350
350
const
CLAUDE_SCRIPT_EXTENSIONS
= [
".js"
,
".mjs"
,
".tsx"
,
".ts"
,
".jsx"
];
351
351
// The SDK has no control-request deadline; the CLI waits up to 30 s per MCP server.
352
352
const
CLAUDE_MCP_REGISTRATION_TIMEOUT
=
"90 seconds"
;
353
-
const
CLAUDE_BOOT_TIMEOUT
=
"5 minutes"
;
353
+
// Boot includes SessionStart hooks, which Claude Code runs to its 10 minute hook
354
+
// timeout before it answers initialize.
355
+
const
CLAUDE_BOOT_TIMEOUT
=
"11 minutes"
;
354
356
// Claude can consume a subagent result before the launching turn ends, leaving
355
357
// its notification with no native wake turn to answer the continuation.
356
358
const
CLAUDE_WAKE_TURN_START_DEADLINE
=
"2 minutes"
;
Expand down
Show all lines
2 additions and 1 deletion
+2
-1
apps/server/src/orchestration-v2/Adapters/ClaudeAgentSdkQueryRunner.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/orchestration-v2/Adapters/ClaudeAgentSdkQueryRunner.test.ts
View file
Expand up
Show all 499 lines
@@ -500,7 +500,8 @@
500
500
501
501
it.
effect
.
each
([
502
502
[
"opens after a slow CLI boot"
,
"120 seconds"
,
true
],
503
-
[
"times out a CLI that never boots"
,
"5 minutes"
,
false
],
503
+
[
"opens after SessionStart hooks run near their 10 minute timeout"
,
"10 minutes"
,
true
],
504
+
[
"times out a CLI that never boots"
,
"11 minutes"
,
false
],
504
505
]
as
const
)(
"%s"
, ([, bootWait, boots]) =>
505
506
Effect
.
gen
(
function
* () {
506
507
const
waiting =
Promise
.
withResolvers
<
void
>();
Expand down
Show all lines
Home
Search
Explore
Menu