[codex] Thread backend-selected near-limit prompt state through client models

This commit is contained in:
James Chu
2026-05-03 23:33:48 -04:00
parent ff27d01676
commit 53dbdbfa9d
28 changed files with 558 additions and 3 deletions
@@ -2425,6 +2425,16 @@
}
]
},
"currentUsageLimitNudge": {
"anyOf": [
{
"$ref": "#/definitions/UsageLimitNudge"
},
{
"type": "null"
}
]
},
"limitId": {
"type": [
"string",
@@ -4373,6 +4383,30 @@
],
"type": "string"
},
"UsageLimitNudge": {
"properties": {
"action": {
"$ref": "#/definitions/UsageLimitNudgeAction"
},
"threshold": {
"format": "uint8",
"minimum": 0.0,
"type": "integer"
}
},
"required": [
"action",
"threshold"
],
"type": "object"
},
"UsageLimitNudgeAction": {
"enum": [
"add_credits",
"upgrade"
],
"type": "string"
},
"UserInput": {
"oneOf": [
{