Add app-server environment registry for exec-server routing

Expose app-server environment register/list RPCs, persist environment selection through thread lifecycle flows, and cover the new routing behavior with app-server tests.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-04-14 12:54:55 -07:00
parent f3cbe3d385
commit a2e6e19c1e
71 changed files with 1591 additions and 13 deletions

View File

@@ -524,6 +524,26 @@
],
"type": "object"
},
"EnvironmentListParams": {
"type": "object"
},
"EnvironmentRegisterParams": {
"properties": {
"environmentId": {
"type": "string"
},
"execServerUrl": {
"type": [
"string",
"null"
]
}
},
"required": [
"environmentId"
],
"type": "object"
},
"ExperimentalFeatureEnablementSetParams": {
"properties": {
"enablement": {
@@ -2663,6 +2683,13 @@
"null"
]
},
"environmentId": {
"description": "Override the execution environment used by the forked thread.",
"type": [
"string",
"null"
]
},
"ephemeral": {
"type": "boolean"
},
@@ -3026,6 +3053,13 @@
"null"
]
},
"environmentId": {
"description": "Override the execution environment used when resuming this thread.",
"type": [
"string",
"null"
]
},
"model": {
"description": "Configuration overrides for the resumed thread, if any.",
"type": [
@@ -3204,6 +3238,13 @@
"null"
]
},
"environmentId": {
"description": "Select a registered app-server execution environment for this thread.",
"type": [
"string",
"null"
]
},
"ephemeral": {
"type": [
"boolean",
@@ -4097,6 +4138,54 @@
"title": "App/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"environment/list"
],
"title": "Environment/listRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/EnvironmentListParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Environment/listRequest",
"type": "object"
},
{
"properties": {
"id": {
"$ref": "#/definitions/RequestId"
},
"method": {
"enum": [
"environment/register"
],
"title": "Environment/registerRequestMethod",
"type": "string"
},
"params": {
"$ref": "#/definitions/EnvironmentRegisterParams"
}
},
"required": [
"id",
"method",
"params"
],
"title": "Environment/registerRequest",
"type": "object"
},
{
"properties": {
"id": {