Skip to content

Reuse the TUI startup account response during bootstrap - #38649

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8da1b9104b9e7f048c4254399b126116798d641a
Aug 14, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8da1b9104b9e7f048c4254399b126116798d641a

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

Reuse the TUI startup account response during bootstrap

Why

The TUI reads the account to determine login status, then bootstrap reads the
same account again during startup.

What changed

  • Preserve the login-status account response and pass it to app-server
    bootstrap, avoiding the second account request.
  • Discard the prefetched response when onboarding or a resume-directory prompt
    allows authentication to change, when a picker replaces the app-server
    session, or when the model provider changes.

Testing

  • Verify bootstrap reuses a prefetched account without issuing another account
    request and retains its account metadata.
  • Verify normal bootstrap still reads the account when none was prefetched.
  • Verify matching resume directories skip the interactive prompt.

## Why

The TUI reads the account to determine login status, then bootstrap reads the
same account again during startup.

## What changed

- Preserve the login-status account response and pass it to app-server
  bootstrap, avoiding the second account request.
- Discard the prefetched response when onboarding or a resume-directory prompt
  allows authentication to change, when a picker replaces the app-server
  session, or when the model provider changes.

## Testing

- Verify bootstrap reuses a prefetched account without issuing another account
  request and retains its account metadata.
- Verify normal bootstrap still reads the account when none was prefetched.
- Verify matching resume directories skip the interactive prompt.

GitOrigin-RevId: 8da1b9104b9e7f048c4254399b126116798d641a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/8da1b9104b9e7f048c4254399b126116798d641a branch from 26dc514 to aa1b81e Compare August 14, 2026 21:00
@copyberry
copyberry Bot merged commit aa1b81e into main Aug 14, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/8da1b9104b9e7f048c4254399b126116798d641a branch August 14, 2026 21:01
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 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.

1 participant