Skip to content

Use construction deadline when restoring provider sessions - #5082

Merged
SawyerHood merged 1 commit into
mainfrom
slopcop/issue-5080
Oct 7, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
slopcop/issue-5080

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

Provider session restoration omitted the runtime's existing construction deadline when sending its JSON-RPC request. It therefore used the transport's 30-second fallback instead of the two-minute construction default and ignored configured construction limits. Reproduced on trusted origin/main in two separate clean checkouts: verified report.

What changed

Forward the existing construction timeout on the resume request, matching start and fork. Extend the existing lifecycle regression with default-deadline and short-configured-deadline restoration cases. No provider, public protocol, schema, daemon wire contract, dependency, generated file, migration, stored data, CLI surface, or packaging change.

How you verified

  • Added the regression before changing production. Both clean baseline runs failed the two restoration cases for the intended deadline mismatch; the start-session control passed.
  • After the one-line repair, all three focused cases pass: pnpm exec turbo run test --filter=@bb/agent-runtime -- src/runtime.lifecycle.test.ts -t 'uses the construction deadline'.
  • pnpm exec turbo run test lint typecheck --filter=@bb/agent-runtime passes: 309 tests across 23 files, plus lint and typecheck.
  • Both trusted base checkouts completed pnpm install --frozen-lockfile --prefer-offline and pnpm exec turbo run build successfully.
  • Formatting and git diff --check pass; no binary changes. Changed-line count from git diff --numstat origin/main: 127 total across two files (one production addition; 82 test additions and 44 test deletions).
  • No private session or live pi account was accessed. The behavioral test loads the repository's actual bridge worker and scripted provider, with a delayed child response and simulated runtime time.

Fixes #5080

AGENT GENERATED

@SawyerHood
SawyerHood merged commit 04c6371 into main Oct 7, 2026
30 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-5080 branch October 7, 2026 15:59
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.

thread/resume inherits the 30s JSON-RPC default and fails large pi sessions

1 participant