mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Expose resumable misalignment details through app server (#40952)
## Why App-server clients need the explanation and steering instruction returned with a misalignment policy violation to offer a user-confirmed continuation. Missing or incomplete details must continue to behave as a terminal block. ## What changed - Parse optional misalignment classification, explanation, and steering details from streamed and HTTP Responses errors and propagate them through core errors. - Include the details in live app-server `error` and `turn/completed` payloads and export the corresponding protocol schemas and TypeScript types. - Keep explanations and steering messages out of serialized rollout events and redact them from debug output. - Document how clients can resume with `turn/start` after user confirmation. ## Testing - Cover streamed, HTTP, and WebSocket-wrapped errors, including malformed and classification-only details. - Verify live app-server notifications expose resumable details without writing the explanation or steering message to the rollout. GitOrigin-RevId: 329258a444c2cd91d0c57ab1720830b33ddcfac5
This commit is contained in:
1 parent
0e9a2bae52
commit
7276d67081
63 files changed
+1604
-15
No files matched your search
@@ -246,6 +246,7 @@ async fn replayed_turn_completions_do_not_start_live_billing_refreshes() {
|
||||
(
|
||||
TurnStatus::Failed,
|
||||
Some(TurnError {
|
||||
misalignment: None,
|
||||
message: "the replayed turn failed".to_string(),
|
||||
codex_error_info: Some(CodexErrorInfo::ServerOverloaded),
|
||||
additional_details: None,
|
||||
@@ -323,6 +324,7 @@ async fn replayed_errors_do_not_start_live_billing_refreshes() {
|
||||
|
||||
let notification = ServerNotification::Error(ErrorNotification {
|
||||
error: TurnError {
|
||||
misalignment: None,
|
||||
message: "the replayed turn failed".to_string(),
|
||||
codex_error_info: Some(CodexErrorInfo::ServerOverloaded),
|
||||
additional_details: None,
|
||||
|
||||
Reference in new issue
Block a user