Skip to content

Commit d69e733

Browse files
committed
Add model_cycle_favorite keybinds to config and regenerate SDK types
1 parent 088be14 commit d69e733

File tree

4 files changed

+95
-4
lines changed

4 files changed

+95
-4
lines changed

packages/opencode/src/config/config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,12 @@ export namespace Config {
456456
.default("<leader>h")
457457
.describe("Toggle code block concealment in messages"),
458458
tool_details: z.string().optional().default("none").describe("Toggle tool details visibility"),
459-
model_list: z.string().optional().default("<leader>m").describe("List available models"),
460-
model_cycle_recent: z.string().optional().default("f2").describe("Next recently used model"),
461-
model_cycle_recent_reverse: z.string().optional().default("shift+f2").describe("Previous recently used model"),
462-
command_list: z.string().optional().default("ctrl+p").describe("List available commands"),
459+
model_list: z.string().optional().default("<leader>m").describe("List available models"),
460+
model_cycle_recent: z.string().optional().default("f2").describe("Next recently used model"),
461+
model_cycle_recent_reverse: z.string().optional().default("shift+f2").describe("Previous recently used model"),
462+
model_cycle_favorite: z.string().optional().default("none").describe("Next favorite model"),
463+
model_cycle_favorite_reverse: z.string().optional().default("none").describe("Previous favorite model"),
464+
command_list: z.string().optional().default("ctrl+p").describe("List available commands"),
463465
agent_list: z.string().optional().default("<leader>a").describe("List agents"),
464466
agent_cycle: z.string().optional().default("tab").describe("Next agent"),
465467
agent_cycle_reverse: z.string().optional().default("shift+tab").describe("Previous agent"),

packages/sdk/js/openapi.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7636,6 +7636,16 @@
76367636
"default": "shift+f2",
76377637
"type": "string"
76387638
},
7639+
"model_cycle_favorite": {
7640+
"description": "Next favorite model",
7641+
"default": "none",
7642+
"type": "string"
7643+
},
7644+
"model_cycle_favorite_reverse": {
7645+
"description": "Previous favorite model",
7646+
"default": "none",
7647+
"type": "string"
7648+
},
76397649
"command_list": {
76407650
"description": "List available commands",
76417651
"default": "ctrl+p",

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,14 @@ export type KeybindsConfig = {
896896
* Previous recently used model
897897
*/
898898
model_cycle_recent_reverse?: string
899+
/**
900+
* Next favorite model
901+
*/
902+
model_cycle_favorite?: string
903+
/**
904+
* Previous favorite model
905+
*/
906+
model_cycle_favorite_reverse?: string
899907
/**
900908
* List available commands
901909
*/

packages/sdk/openapi.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,6 +2514,67 @@
25142514
]
25152515
}
25162516
},
2517+
"/session/{sessionID}/continue": {
2518+
"post": {
2519+
"operationId": "session.continue",
2520+
"parameters": [
2521+
{
2522+
"in": "query",
2523+
"name": "directory",
2524+
"schema": {
2525+
"type": "string"
2526+
}
2527+
},
2528+
{
2529+
"in": "path",
2530+
"name": "sessionID",
2531+
"schema": {
2532+
"type": "string"
2533+
},
2534+
"required": true
2535+
}
2536+
],
2537+
"description": "Continue interrupted conversation",
2538+
"responses": {
2539+
"200": {
2540+
"description": "Conversation continued",
2541+
"content": {
2542+
"application/json": {
2543+
"schema": {
2544+
"type": "boolean"
2545+
}
2546+
}
2547+
}
2548+
},
2549+
"400": {
2550+
"description": "Bad request",
2551+
"content": {
2552+
"application/json": {
2553+
"schema": {
2554+
"$ref": "#/components/schemas/BadRequestError"
2555+
}
2556+
}
2557+
}
2558+
},
2559+
"404": {
2560+
"description": "Not found",
2561+
"content": {
2562+
"application/json": {
2563+
"schema": {
2564+
"$ref": "#/components/schemas/NotFoundError"
2565+
}
2566+
}
2567+
}
2568+
}
2569+
},
2570+
"x-codeSamples": [
2571+
{
2572+
"lang": "js",
2573+
"source": "import { createOpencodeClient } from \"@opencode-ai/sdk\n\nconst client = createOpencodeClient()\nawait client.session.continue({\n ...\n})"
2574+
}
2575+
]
2576+
}
2577+
},
25172578
"/session/{sessionID}/permissions/{permissionID}": {
25182579
"post": {
25192580
"operationId": "permission.respond",
@@ -7575,6 +7636,16 @@
75757636
"default": "shift+f2",
75767637
"type": "string"
75777638
},
7639+
"model_cycle_favorite": {
7640+
"description": "Next favorite model",
7641+
"default": "none",
7642+
"type": "string"
7643+
},
7644+
"model_cycle_favorite_reverse": {
7645+
"description": "Previous favorite model",
7646+
"default": "none",
7647+
"type": "string"
7648+
},
75787649
"command_list": {
75797650
"description": "List available commands",
75807651
"default": "ctrl+p",

0 commit comments

Comments
 (0)