mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Reuse the TUI startup account response during bootstrap (#38649)
## 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
This commit is contained in:
1 parent
b8aa9e9a01
commit
aa1b81e46f
4 files changed
+154
-25
No files matched your search
@@ -976,7 +976,8 @@ impl App {
|
||||
));
|
||||
return Ok(AppRunControl::Continue);
|
||||
}
|
||||
Ok(crate::session_resume::ResolveCwdOutcome::Continue(Some(cwd))) => cwd,
|
||||
Ok(crate::session_resume::ResolveCwdOutcome::Continue(Some(cwd)))
|
||||
| Ok(crate::session_resume::ResolveCwdOutcome::ContinueAfterPrompt(cwd)) => cwd,
|
||||
Ok(crate::session_resume::ResolveCwdOutcome::Continue(None)) => current_cwd.clone(),
|
||||
Ok(crate::session_resume::ResolveCwdOutcome::Exit) => {
|
||||
return Ok(AppRunControl::Exit(ExitReason::UserRequested));
|
||||
|
||||
Reference in new issue
Block a user