From bd8c3cd0f1e30f5ed1cbf222415cef136edd14a9 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Wed, 18 Jun 2025 22:59:42 -0400 Subject: BREAKING CONFIG CHANGE We have changed the config format yet again - but this should be the final time. You can see the readme for more details but the summary is - got rid of global providers config - got rid of global toml - global config is now in `~/.config/opencode/config.json` - it will be merged with any project level config --- packages/tui/pkg/client/gen/openapi.json | 104 ++++++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 7 deletions(-) (limited to 'packages/tui/pkg/client/gen') diff --git a/packages/tui/pkg/client/gen/openapi.json b/packages/tui/pkg/client/gen/openapi.json index ea055a64f..862a84d7d 100644 --- a/packages/tui/pkg/client/gen/openapi.json +++ b/packages/tui/pkg/client/gen/openapi.json @@ -1397,22 +1397,26 @@ "type": "string" }, "keybinds": { - "type": "object", - "additionalProperties": { - "type": "string" - } + "$ref": "#/components/schemas/Config.Keybinds" }, "autoshare": { - "type": "boolean" + "type": "boolean", + "description": "Share newly created sessions automatically" }, "autoupdate": { - "type": "boolean" + "type": "boolean", + "description": "Automatically update to the latest version" }, "disabled_providers": { "type": "array", "items": { "type": "string" - } + }, + "description": "Disable providers that are loaded automatically" + }, + "model": { + "type": "string", + "description": "Model to use in the format of provider/model, eg anthropic/claude-2" }, "provider": { "type": "object", @@ -1528,6 +1532,92 @@ } } }, + "Config.Keybinds": { + "type": "object", + "properties": { + "leader": { + "type": "string" + }, + "help": { + "type": "string" + }, + "editor_open": { + "type": "string" + }, + "session_new": { + "type": "string" + }, + "session_list": { + "type": "string" + }, + "session_share": { + "type": "string" + }, + "session_interrupt": { + "type": "string" + }, + "session_compact": { + "type": "string" + }, + "tool_details": { + "type": "string" + }, + "model_list": { + "type": "string" + }, + "theme_list": { + "type": "string" + }, + "project_init": { + "type": "string" + }, + "input_clear": { + "type": "string" + }, + "input_paste": { + "type": "string" + }, + "input_submit": { + "type": "string" + }, + "input_newline": { + "type": "string" + }, + "history_previous": { + "type": "string" + }, + "history_next": { + "type": "string" + }, + "messages_page_up": { + "type": "string" + }, + "messages_page_down": { + "type": "string" + }, + "messages_half_page_up": { + "type": "string" + }, + "messages_half_page_down": { + "type": "string" + }, + "messages_previous": { + "type": "string" + }, + "messages_next": { + "type": "string" + }, + "messages_first": { + "type": "string" + }, + "messages_last": { + "type": "string" + }, + "app_exit": { + "type": "string" + } + } + }, "Provider.Info": { "type": "object", "properties": { -- cgit v1.2.3