feat: persist GooseMode per-session via session DB (#7854)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Adrian Cole
2026-03-16 19:37:21 +08:00
committed by GitHub
parent 2631095f20
commit 94fdcdd07a
42 changed files with 953 additions and 147 deletions
+56
View File
@@ -663,6 +663,35 @@
}
}
},
"/agent/update_session": {
"post": {
"tags": [
"super::routes::agent"
],
"operationId": "update_session",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateSessionRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Session updated"
},
"400": {
"description": "Invalid request"
},
"500": {
"description": "Internal error"
}
}
}
},
"/agent/update_working_dir": {
"post": {
"tags": [
@@ -5198,6 +5227,15 @@
}
]
},
"GooseMode": {
"type": "string",
"enum": [
"auto",
"approve",
"smart_approve",
"chat"
]
},
"HfGgufFile": {
"type": "object",
"description": "A single downloadable GGUF file (used internally and for downloads).",
@@ -7478,6 +7516,9 @@
"extension_data": {
"$ref": "#/components/schemas/ExtensionData"
},
"goose_mode": {
"$ref": "#/components/schemas/GooseMode"
},
"id": {
"type": "string"
},
@@ -8496,6 +8537,21 @@
}
}
},
"UpdateSessionRequest": {
"type": "object",
"required": [
"session_id"
],
"properties": {
"goose_mode": {
"type": "string",
"nullable": true
},
"session_id": {
"type": "string"
}
}
},
"UpdateSessionUserRecipeValuesRequest": {
"type": "object",
"required": [