mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
Surface model provider authentication recovery progress (#41239)
## What changed - Emit turn-scoped authentication recovery started and completed events when a model provider refreshes expired credentials. - Add stable `modelProvider/authRecoveryStarted` and `modelProvider/authRecoveryCompleted` app-server notifications with the thread, turn, provider, and user-facing message. - Show recovery progress in the TUI and `codex exec`, including Amazon Bedrock session reauthentication. ## Testing - Cover provider recovery success and failure events, app-server routing, client rendering, and Amazon Bedrock credential refresh. GitOrigin-RevId: 3010c38d0676f18bced27761cf86dd38344d09f9
This commit is contained in:
1 parent
f1bb4c168d
commit
41d3dc56a0
33 files changed
+611
-11
No files matched your search
@@ -1422,11 +1422,12 @@ impl Session {
|
||||
config.http_client_factory(),
|
||||
)
|
||||
.with_free_guardian_enabled(config.free_guardian_enabled())
|
||||
.with_prompt_cache_key_override(
|
||||
.with_session_context(
|
||||
crate::guardian::prompt_cache_key_override_for_review_session(
|
||||
&session_configuration.session_source,
|
||||
session_configuration.parent_thread_id,
|
||||
),
|
||||
tx_event.clone(),
|
||||
),
|
||||
executed_tool_calls: executed_tool_calls.clone(),
|
||||
code_mode_service: crate::tools::code_mode::CodeModeService::new(
|
||||
|
||||
@@ -1797,6 +1797,8 @@ pub(super) fn realtime_text_for_event(msg: &EventMsg) -> Option<(String, Option<
|
||||
}
|
||||
EventMsg::Error(_)
|
||||
| EventMsg::Warning(_)
|
||||
| EventMsg::AuthRecoveryStarted(_)
|
||||
| EventMsg::AuthRecoveryCompleted(_)
|
||||
| EventMsg::GuardianWarning(_)
|
||||
| EventMsg::RealtimeConversationStarted(_)
|
||||
| EventMsg::RealtimeConversationSdp(_)
|
||||
|
||||
Reference in new issue
Block a user