feat: configurable shell selection + desktop settings UI (#20602)

This commit is contained in:
Luke Parker 2026-04-27 10:54:55 +10:00 committed by GitHub
commit 141f33d24b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 721 additions and 157 deletions

View file

@ -1032,6 +1032,62 @@
]
}
},
"/pty/shells": {
"get": {
"operationId": "pty.shells",
"parameters": [
{
"in": "query",
"name": "directory",
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "workspace",
"schema": {
"type": "string"
}
}
],
"summary": "List available shells",
"description": "Get a list of available shells on the system.",
"responses": {
"200": {
"description": "List of shells",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"name": {
"type": "string"
},
"acceptable": {
"type": "boolean"
}
},
"required": ["path", "name", "acceptable"]
}
}
}
}
}
},
"x-codeSamples": [
{
"lang": "js",
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.pty.shells({\n ...\n})"
}
]
}
},
"/pty": {
"get": {
"operationId": "pty.list",
@ -11454,6 +11510,10 @@
"description": "JSON schema reference for configuration validation",
"type": "string"
},
"shell": {
"description": "Default shell to use for terminal and bash tool",
"type": "string"
},
"logLevel": {
"$ref": "#/components/schemas/LogLevel"
},