GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(provider-acp): bound ACP initialize with a timeout by yqecea · Pull Request #40872 · pingdotgg/t3code

Conversation

@yqecea

@yqecea yqecea commented Nov 22, 2026

Copy link
Copy Markdown

Problem

When an ACP agent never responds to initialize, AcpSessionRuntime waits forever. The thread stays stuck on initialize, no error is surfaced, and the stuck agent process keeps running. This reproduces with a Devin ACP thread on T3 0.1.11: the provider event log recorded initialize started with no terminal event for 20+ minutes.

Change

  • Add initializeTimeout to AcpSessionRuntimeOptions (default 90s, same ballpark as session load timeout).
  • Wrap acp.agent.initialize(...) with Effect.timeoutOption(initializeTimeout).
  • On timeout, terminate the process group and fail with an AcpTransportError that includes the timeout detail, so the runtime can recover instead of hanging.
  • Add a mock-agent T3_ACP_INITIALIZE_NEVER_REPLIES hook and a focused runtime test for the timeout case.

Scope

Bug fix for #40871. The change is scoped to ACP session runtime initialization; it does not change prompt/session-load behavior beyond the new initialize bound.

Verification

  • vp test run apps/server/src/provider/acp/AcpJsonRpcConnection.test.ts -t "fails initialize when the agent never responds" — passed (1 passed, 44 skipped).
  • vp test run apps/server/src/provider/acp/AcpJsonRpcConnection.test.ts — passed (45 passed).

I did not run repo-wide checks.

Made with OpenCode (gpt-5.4).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@yqecea
fix(provider-acp): bound ACP initialize with a timeout
c3fcfe7
A hung ACP agent could leave initialize pending forever, stranding the thread and leaking the stuck process. Apply a configurable initialize timeout (90s default), terminate the process group on timeout, and surface a transport error so the session can recover.

Fixes pingdotgg#40871
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 22, 2026
@juliusmarminge

juliusmarminge commented Nov 22, 2026

Copy link
Copy Markdown
Member

Thanks for this. #40864 makes the same change and is the one being kept.

#40864 bounds the same initialize handshake and also covers unanswered session/new and session/resume requests. That closes the adjacent startup waits that would otherwise leave the thread stuck in the same way.

Your Devin report confirms this shared ACP failure, and the focused timeout-error assertion is useful regression coverage. We’ll consolidate the fix in the broader startup change.

Closing as a duplicate.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@yqecea @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.