Skip to content

fix(claude): keep permission waits alive across long approvals - #22

Merged
oldsj merged 1 commit into
mainloop-substrate-0-4from
hitl-permission-timeout
Oct 9, 2026
Merged

oldsj merged 1 commit into
mainloop-substrate-0-4from
hitl-permission-timeout

Conversation

@oldsj

@oldsj oldsj commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Claude Code aborts an MCP call after 5 minutes without progress. The
harness's kagent_hitl approve RPC stays silent until the owner decides,
and actor suspension counts toward that window, so a slow approval
errored the original call and Claude retried with a new one.

Give only the private kagent_hitl server an explicit 100000000 ms
timeout, which raises its idle floor, request and overall limits.
Ordinary MCP servers keep their configured or default timeouts.

Signed-off-by: James Olds 12104969+oldsj@users.noreply.github.com

Tests: config/adapter serialization, driver regressions for approval after simulated suspension, and a sanitized fixture of the observed idle-abort then retry sequence. go test, go vet and go test -race pass for the touched packages.

Claude Code aborts an MCP call after 5 minutes without progress. The
harness's kagent_hitl approve RPC stays silent until the owner decides,
and actor suspension counts toward that window, so a slow approval
errored the original call and Claude retried with a new one.

Give only the private kagent_hitl server an explicit 100000000 ms
timeout, which raises its idle floor, request and overall limits.
Ordinary MCP servers keep their configured or default timeouts.

Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com>
@github-actions github-actions Bot added the bug Something isn't working label Oct 9, 2026
@oldsj
oldsj merged commit 9c0c373 into mainloop-substrate-0-4 Oct 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant