Skip to content

fix: raise the proxy idle timeout above Bun's 10s default - #9

Open
pocharlies wants to merge 1 commit into
otto-assistant:mainfrom
pocharlies:fix/proxy-idle-timeout
Open

fix: raise the proxy idle timeout above Bun's 10s default#9
pocharlies wants to merge 1 commit into
otto-assistant:mainfrom
pocharlies:fix/proxy-idle-timeout

Conversation

@pocharlies

Copy link
Copy Markdown

Bun.serve defaults to a 10-second idle timeout. Claude Agent SDK turns
routinely take longer than that — a cold start alone can exceed it between
spawning the CLI and the model's first token — so the connection is dropped
mid-turn.

The failure is quiet from the host's side: the request ends without an error
the caller can attribute to a timeout, so it reads as the turn simply dying.
That made it hard to spot; I only found it after patching the installed
dist/ by hand and watching long turns stop failing.

255s is Bun's maximum for this option.

Three lines, no behaviour change other than the timeout. bun test passes and
tsc is clean on this branch.

Bun.serve defaults to a 10-second idle timeout. Claude Agent SDK turns
routinely take longer than that — a cold start alone can spend more, between
spawning the CLI and the model's first token — so the connection is dropped
mid-turn.

The failure is quiet from the host's side: the request ends without an error
the caller can attribute to a timeout, which makes it look like the turn simply
died.

255s is Bun's maximum for this option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant