Skip to content

Use the Codex RPC budget for initialization - #591

Merged
SaladDay merged 1 commit into
aos/cutoverfrom
aos/codex-initialize-rpc-budget
Oct 8, 2026
Merged

SaladDay merged 1 commit into
aos/cutoverfrom
aos/codex-initialize-rpc-budget

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Codex initialization had a separate 10-second deadline while ordinary JSON-RPC responses use a 60-second default. Valid metadata probes during self-hosted initialization can exhaust that shorter window before execution begins. Use the existing request budget for initialize, retaining configured request timeouts, parent cancellation, response timing after writes and native child cleanup. No new setting, timer, cache or native behavior is introduced.

A bounded real startup trace recorded 12 slow native metadata calls totaling 9.040 seconds with overlap and another probe still pending at termination; the same pinned binary initialized locally in 172.75 ms without a model. This does not explain the earlier 18.100 seconds before launcher execution, isolate tracing/network overhead or establish successful self-hosted qualification after the change. Original failure evidence is preserved; live qualification remains pending.

Validation: full Codex and clirunner packages; focused RPC initialization/write/reaping tests under race; names/docs/CI hygiene; diff check. Real child-process tests cover an 11-second initialize using the default budget, a configured 100 ms timeout, owner cancellation and cancellation during a blocked initialization write, including child reaping. The 11-second test fails against original cdf03 source through a Go overlay at the original 10-second deadline, and passes with this change.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@SaladDay
SaladDay merged commit 8b3fb65 into aos/cutover Oct 8, 2026
20 checks passed
@SaladDay
SaladDay deleted the aos/codex-initialize-rpc-budget branch October 8, 2026 18:22
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