diff --git a/.changeset/opencode-v1-17-5-to-v1-17-9.md b/.changeset/opencode-v1-17-5-to-v1-17-9.md index b645959b70..5a019637c3 100644 --- a/.changeset/opencode-v1-17-5-to-v1-17-9.md +++ b/.changeset/opencode-v1-17-5-to-v1-17-9.md @@ -17,6 +17,8 @@ Changes from opencode v1.17.5 to v1.17.9 upstream: - Core Bugfixes: MCP tool failures now surface the server's error text instead of a generic failure. - Core Bugfixes: MCP OAuth error pages now escape provider error text correctly. - Core Bugfixes: Honor configured agent step limits by forcing a final text response instead of failing mid-run. +- Core Bugfixes: Queue steering prompts before dismissing pending questions so the previous turn cannot resume first. +- Core Bugfixes: Prevent local server credentials from leaking into spawned PTY processes. - Core Bugfixes: Fix Devstral model detection when provider IDs use different casing. (@Robin1987China) - Core Bugfixes: Pass configured custom headers to Copilot model requests. - Core Improvements: MCP servers can now receive the current workspace as a client root. @@ -25,3 +27,4 @@ Changes from opencode v1.17.5 to v1.17.9 upstream: - Core Improvements: Stop wrapping follow-up user messages in a steering reminder so prompt caching stays effective. - TUI Bugfixes: MCP debug now uses the SDK's latest protocol version. - TUI Bugfixes: Only show the background subagent shortcut when the server supports it. +- UI Bugfixes: Render completed Mermaid blocks from diagram source instead of fenced Markdown. diff --git a/packages/core/src/plugin/provider/llmgateway.ts b/packages/core/src/plugin/provider/llmgateway.ts index aa97b7f8db..b416abd284 100644 --- a/packages/core/src/plugin/provider/llmgateway.ts +++ b/packages/core/src/plugin/provider/llmgateway.ts @@ -17,7 +17,7 @@ export const LLMGatewayPlugin = PluginV2.define({ if (item.provider.api.url !== "https://api.llmgateway.io/v1") continue if (item.provider.id !== ProviderV2.ID.make("llmgateway")) continue // kilocode_change evt.provider.update(item.provider.id, (provider) => { - provider.request.headers["HTTP-Referer"] = "https://kilo.ai/" // kilocode_change + provider.request.headers["HTTP-Referer"] = "https://kilo.ai/" // kilocode_change start provider.request.headers["X-Title"] = "Kilo Code" provider.request.headers["X-Source"] = "kilo" diff --git a/packages/core/src/plugin/provider/openai-auth.ts b/packages/core/src/plugin/provider/openai-auth.ts index 181247e9f1..fb9e8d300a 100644 --- a/packages/core/src/plugin/provider/openai-auth.ts +++ b/packages/core/src/plugin/provider/openai-auth.ts @@ -258,6 +258,6 @@ function claim(token: string) { } const successPage = - "
You can close this window.
" // kilocode_change + "You can close this window.
" const errorPage = (message: string) => - `${message.replace(/[&<>"']/g, "")}
` // kilocode_change + `${message.replace(/[&<>"']/g, "")}
` diff --git a/packages/core/src/pty.ts b/packages/core/src/pty.ts index 8d68e34296..28e48f6b05 100644 --- a/packages/core/src/pty.ts +++ b/packages/core/src/pty.ts @@ -216,9 +216,10 @@ export const layer = Layer.effect( KILO_TERMINAL: "1", KILO_PTY_ID: id, // kilocode_change - let nested Kilo processes identify their parent terminal } as Record