feat(agents): add harness runtime prewarm hook#86930
Conversation
|
Codex review: found issues before merge. Reviewed May 26, 2026, 1:27 PM ET / 17:27 UTC. Summary PR surface: Source +121, Tests +115. Total +236 across 6 files. Reproducibility: yes. for the blocking SDK-baseline issue: source inspection shows new public SDK exports while the tracked baseline hash is unchanged. Runtime behavior still lacks real-environment proof. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance: Risk before merge
Maintainer options:
Next step before merge Security Review findings
Review detailsBest possible solution: Land the narrowed reusable hook only after the SDK baseline hash, public harness docs, focused tests, and redacted real Codex prewarm proof are in the same stack-ready state. Do we have a high-confidence way to reproduce the issue? Yes for the blocking SDK-baseline issue: source inspection shows new public SDK exports while the tracked baseline hash is unchanged. Runtime behavior still lacks real-environment proof. Is this the best way to solve the issue? Unclear: the narrowed reusable hook is a plausible owner-boundary shape, but it is not merge-ready until the public SDK contract artifacts/docs and Codex prewarm proof are added. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against a5eee8f1c678. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +121, Tests +115. Total +236 across 6 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
8ca2091 to
1d477df
Compare
1d477df to
1036441
Compare
1036441 to
961a0f6
Compare
|
Not a fan of yet another API seam |
Summary
AgentHarness.prewarmcontract plus plugin-sdk exports.prewarmAgentHarnessRuntime()to select and warm the active plugin harness without starting a turn.Verification
git diff --check origin/mainnode scripts/test-projects-serial.mjs src/agents/harness/prewarm.test.tsnode scripts/run-vitest.mjs run --config test/vitest/vitest.extension-codex.config.ts extensions/codex/index.test.tsScope
This PR is now only the reusable harness prewarm layer. The TUI startup behavior was split into a stacked draft PR so the review surface stays small.
What was deliberately removed from this PR: the
chat.prewarm_agent_runtimegateway RPC/protocol surface and gateway client tests.