fix(app-server): add will_retry to ErrorNotification (#7611)

VSCE renders `codex/event/stream_error` (automatically retried, e.g.
`"Reconnecting... 1/n"`) and `codex/event/error` (terminal errors)
differently, so add `will_retry` on ErrorNotification to indicate this.
This commit is contained in:
Owen Lin
2025-12-04 13:48:37 -08:00
committed by GitHub
parent 342c084cc3
commit e8f6d65899
2 changed files with 5 additions and 0 deletions

View File

@@ -942,6 +942,9 @@ pub struct TurnError {
#[ts(export_to = "v2/")]
pub struct ErrorNotification {
pub error: TurnError,
// Set to true if the error is transient and the app-server process will automatically retry.
// If true, this will not interrupt a turn.
pub will_retry: bool,
pub thread_id: String,
pub turn_id: String,
}