# fix\(server\): Claude sessions survive slow SessionStart hooks · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/7b6753972c700b3e4145716a88f134889a696f08)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 7b6753972c700b3e4145716a88f134889a696f08

Requested commit: 7b6753972c700b3e4145716a88f134889a696f08

Commit: 7b6753972c700b3e4145716a88f134889a696f08

Tree: 3ebbf6c519a007d533151b14965f0ba4745c9f6c

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(server): Claude sessions survive slow SessionStart hooks

Claude Code reads mcp_set_servers only after its SessionStart hooks finish.
A hook can run up to the CLI's default 10 minute hook timeout, for example
a cold worktree setup script, so the 90 s registration deadline failed the
open while the CLI was healthy. The deadline now covers that hook budget
plus the per-server connect time. The SDK still rejects the request if the
CLI exits, and interrupting the open still closes the query.

Fixes #23151

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [8528e5a93d3bd36b66fec19c52cd280951ed0677](https://git.cafe/pingdotgg/t3code/commit/8528e5a93d3bd36b66fec19c52cd280951ed0677?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/7b6753972c700b3e4145716a88f134889a696f08?format=markdown)
