mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Make user input blocking behavior explicit (#36410)
## Why Clients need to know whether a `request_user_input` request must wait for an explicit response or may auto-resolve. Using `autoResolutionMs` as that signal conflated the blocking decision with timeout policy. ## What changed - Add required `isBlocking` fields to user input protocol and app-server request payloads. Plan-mode requests are blocking, while requests from other enabled modes are non-blocking. - Drive the TUI's auto-resolution behavior from `isBlocking` and remove `autoResolutionMs` from the model-facing tool schema. - Deprecate `autoResolutionMs` while retaining it for compatibility, and treat legacy payloads without `isBlocking` as blocking. ## Testing - Cover mode-derived blocking behavior, legacy deserialization, app-server forwarding, delegated requests, and TUI auto-resolution. GitOrigin-RevId: 29aade657ef743065ec264376ba567a9b353d7d7
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
"properties": {
|
||||
"autoResolutionMs": {
|
||||
"default": null,
|
||||
"description": "@deprecated Use `isBlocking` to decide whether the request should block.",
|
||||
"format": "uint64",
|
||||
"minimum": 0.0,
|
||||
"type": [
|
||||
@@ -66,6 +67,9 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"isBlocking": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"itemId": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -83,6 +87,7 @@
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"isBlocking",
|
||||
"itemId",
|
||||
"questions",
|
||||
"threadId",
|
||||
|
||||
Reference in New Issue
Block a user