From b0a65848253479889b290e970f3acd95e8acf7b4 Mon Sep 17 00:00:00 2001 From: TiaraBasori Date: Sun, 18 Oct 2026 21:21:40 +0800 Subject: [PATCH] chore(upstream): sync the /inference lane shape with OpenCode 2.0.32 Report the current CLI release in the User-Agent and use the Linux shell tool description the client ships, so the anonymous fingerprint matches the release the free tier actually sees. --- internal/gateway/opencode_tools.json | 2 +- internal/httpx/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gateway/opencode_tools.json b/internal/gateway/opencode_tools.json index 969c196..570021a 100644 --- a/internal/gateway/opencode_tools.json +++ b/internal/gateway/opencode_tools.json @@ -178,7 +178,7 @@ } }, "shell": { - "description": "Execute a shell command and return its output. Commands run on Windows using powershell. Quote file paths containing spaces or special characters. Prefer dedicated tools over shell commands when possible. When output is large, the full result is saved to a file and a truncated preview is returned. Rely on automatic truncation unless filtering the output is more useful. Commands accept an optional timeout, background commands have no timeout by default. Background commands return immediately, and you will be notified when they complete.", + "description": "Execute a shell command and return its output. Commands run on Linux using bash. Quote file paths containing spaces or special characters. Prefer dedicated tools over shell commands when possible. When output is large, the full result is saved to a file and a truncated preview is returned. Rely on automatic truncation unless filtering the output is more useful. Commands accept an optional timeout, background commands have no timeout by default. Background commands return immediately, and you will be notified when they complete.", "parameters": { "additionalProperties": false, "properties": { diff --git a/internal/httpx/client.go b/internal/httpx/client.go index 8cfb1e6..2b397d2 100644 --- a/internal/httpx/client.go +++ b/internal/httpx/client.go @@ -9,7 +9,7 @@ import ( // /inference lane. Upstream accepts a range of releases (the version number // itself is not validated), so this only needs bumping when it starts rejecting // older ones. -const clientVersion = "2.0.29" +const clientVersion = "2.0.32" // legacyClientVersion is the pre-2.x OpenCode release reported on the legacy // /zen/v1 lane, matching the v1.3.7 User-Agent shape.