Skip to content

Parallelize TUI bootstrap requests - #34355

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/69a866e6d2fd4798b914dd000456194f49fcfef6
Jul 20, 2026
Merged

Parallelize TUI bootstrap requests#34355
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/69a866e6d2fd4798b914dd000456194f49fcfef6

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Parallelize TUI bootstrap requests

Why

During TUI startup, hooks/list holds the global config queue while an
uncached model/list request may also take time. Waiting for
configRequirements/read before submitting the model request prevents these
operations from overlapping.

What changed

Submit model/list and configRequirements/read together during bootstrap so
the model fetch can overlap the config requests. Preserve the request-specific
error context and update the session state after both requests succeed.

## Why

During TUI startup, `hooks/list` holds the global config queue while an
uncached `model/list` request may also take time. Waiting for
`configRequirements/read` before submitting the model request prevents these
operations from overlapping.

## What changed

Submit `model/list` and `configRequirements/read` together during bootstrap so
the model fetch can overlap the config requests. Preserve the request-specific
error context and update the session state after both requests succeed.

GitOrigin-RevId: 69a866e6d2fd4798b914dd000456194f49fcfef6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/69a866e6d2fd4798b914dd000456194f49fcfef6 branch from 2bc22ec to 2661d85 Compare July 20, 2026 14:24
@copyberry
copyberry Bot merged commit 2661d85 into main Jul 20, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/69a866e6d2fd4798b914dd000456194f49fcfef6 branch July 20, 2026 14:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants