From 07bcd290c2884637c19e100d004dfd80816fcd3d Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Wed, 12 Aug 2026 02:06:08 +0000 Subject: [PATCH] chore: generate --- packages/protocol/openapi.json | 60 +++++++++++++++++++++++ packages/tui/src/routes/session/index.tsx | 3 +- packages/www/openapi.json | 60 +++++++++++++++++++++++ packages/www/public/openapi.json | 60 +++++++++++++++++++++++ 4 files changed, 181 insertions(+), 2 deletions(-) diff --git a/packages/protocol/openapi.json b/packages/protocol/openapi.json index ce4d388b43..457bb2d988 100644 --- a/packages/protocol/openapi.json +++ b/packages/protocol/openapi.json @@ -12795,6 +12795,63 @@ "required": ["id", "time", "type", "model"], "additionalProperties": false }, + "Session.Message.LocationSwitched": { + "type": "object", + "properties": { + "id": { + "type": "string", + "allOf": [ + { + "pattern": "^msg_" + } + ] + }, + "metadata": { + "type": "object" + }, + "time": { + "type": "object", + "properties": { + "created": { + "type": "number" + } + }, + "required": ["created"], + "additionalProperties": false + }, + "type": { + "type": "string", + "enum": ["location-switched"] + }, + "location": { + "$ref": "#/components/schemas/Location.Ref" + }, + "projectID": { + "type": "string" + }, + "subpath": { + "type": "string" + }, + "previous": { + "type": "object", + "properties": { + "location": { + "$ref": "#/components/schemas/Location.Ref" + }, + "projectID": { + "type": "string" + }, + "subpath": { + "type": "string" + } + }, + "required": ["location"], + "additionalProperties": false + } + }, + "required": ["id", "time", "type", "location"], + "additionalProperties": false + }, "Prompt.Base64": { "type": "string", "allOf": [ @@ -13719,6 +13776,9 @@ { "$ref": "#/components/schemas/Session.Message.ModelSelected" }, + { + "$ref": "#/components/schemas/Session.Message.LocationSwitched" + }, { "$ref": "#/components/schemas/Session.Message.User" }, diff --git a/packages/tui/src/routes/session/index.tsx b/packages/tui/src/routes/session/index.tsx index 1f3caa04ac..a299458518 100644 --- a/packages/tui/src/routes/session/index.tsx +++ b/packages/tui/src/routes/session/index.tsx @@ -1676,8 +1676,7 @@ function SessionSwitchMessageV2(props: { message: SessionMessageInfo }) { } if (props.message.type === "model-switched") return switchLabel(props.message.model, ctx.models(), props.message.previous) - if (props.message.type === "location-switched") - return `Switched location to ${props.message.location.directory}` + if (props.message.type === "location-switched") return `Switched location to ${props.message.location.directory}` return "" } return ( diff --git a/packages/www/openapi.json b/packages/www/openapi.json index ce4d388b43..457bb2d988 100644 --- a/packages/www/openapi.json +++ b/packages/www/openapi.json @@ -12795,6 +12795,63 @@ "required": ["id", "time", "type", "model"], "additionalProperties": false }, + "Session.Message.LocationSwitched": { + "type": "object", + "properties": { + "id": { + "type": "string", + "allOf": [ + { + "pattern": "^msg_" + } + ] + }, + "metadata": { + "type": "object" + }, + "time": { + "type": "object", + "properties": { + "created": { + "type": "number" + } + }, + "required": ["created"], + "additionalProperties": false + }, + "type": { + "type": "string", + "enum": ["location-switched"] + }, + "location": { + "$ref": "#/components/schemas/Location.Ref" + }, + "projectID": { + "type": "string" + }, + "subpath": { + "type": "string" + }, + "previous": { + "type": "object", + "properties": { + "location": { + "$ref": "#/components/schemas/Location.Ref" + }, + "projectID": { + "type": "string" + }, + "subpath": { + "type": "string" + } + }, + "required": ["location"], + "additionalProperties": false + } + }, + "required": ["id", "time", "type", "location"], + "additionalProperties": false + }, "Prompt.Base64": { "type": "string", "allOf": [ @@ -13719,6 +13776,9 @@ { "$ref": "#/components/schemas/Session.Message.ModelSelected" }, + { + "$ref": "#/components/schemas/Session.Message.LocationSwitched" + }, { "$ref": "#/components/schemas/Session.Message.User" }, diff --git a/packages/www/public/openapi.json b/packages/www/public/openapi.json index ce4d388b43..457bb2d988 100644 --- a/packages/www/public/openapi.json +++ b/packages/www/public/openapi.json @@ -12795,6 +12795,63 @@ "required": ["id", "time", "type", "model"], "additionalProperties": false }, + "Session.Message.LocationSwitched": { + "type": "object", + "properties": { + "id": { + "type": "string", + "allOf": [ + { + "pattern": "^msg_" + } + ] + }, + "metadata": { + "type": "object" + }, + "time": { + "type": "object", + "properties": { + "created": { + "type": "number" + } + }, + "required": ["created"], + "additionalProperties": false + }, + "type": { + "type": "string", + "enum": ["location-switched"] + }, + "location": { + "$ref": "#/components/schemas/Location.Ref" + }, + "projectID": { + "type": "string" + }, + "subpath": { + "type": "string" + }, + "previous": { + "type": "object", + "properties": { + "location": { + "$ref": "#/components/schemas/Location.Ref" + }, + "projectID": { + "type": "string" + }, + "subpath": { + "type": "string" + } + }, + "required": ["location"], + "additionalProperties": false + } + }, + "required": ["id", "time", "type", "location"], + "additionalProperties": false + }, "Prompt.Base64": { "type": "string", "allOf": [ @@ -13719,6 +13776,9 @@ { "$ref": "#/components/schemas/Session.Message.ModelSelected" }, + { + "$ref": "#/components/schemas/Session.Message.LocationSwitched" + }, { "$ref": "#/components/schemas/Session.Message.User" },