Skip to content

Commit 2091b86

Browse files
committed
chore: merge OpenCode v1.18.23-sscity
Upstream v1.18.22 (47b6b6f, merged at 2686e4c) -> v1.18.23 (ef2880f), 13 commits / 46 files. Upstream superseded the v1.18.22 release commit with 55f9841 (sync release versions for v1.18.22) in the v1.18.23 lineage; merge base is 2a6be0a (chore: generate), effective input identical to the audited 13-commit range. Functional changes: - fix(provider): route non-native Cloudflare AI Gateway providers via the REST API (anomalyco#44828) — adopted onto fork provider.ts; the custom cloudflare loader region was untouched by the fork snapshot architecture, so the change auto-merged. Third-party models (google, xai, deepseek, ...) now point an OpenAI-compatible client at the Cloudflare REST endpoint (api.cloudflare.com/client/v4/accounts/<id>/ai/v1) bound with cf-aig-gateway-id, keeping requests gateway-routed; Workers AI keeps the unified compat route with the Cloudflare token as upstream Authorization. - fix(provider): send Anthropic's dashed native slug through the AI Gateway (anomalyco#44281) — anthropic/<id> models translate dotted versions to dashes (claude-haiku-4.5 -> claude-haiku-4-5) before the native Messages passthrough; OpenAI dotted ids untouched. - fix(opencode): send parent session header (anomalyco#44752) — x-parent-session-id moved to the provider-independent header level so opencode providers also send it; session routing headers (x-session-affinity/X-Session-Id) and opencode x-opencode-* headers unchanged. - fix(github): support immutable OIDC subjects (anomalyco#44776) — token exchange reads the repository claim via new parseRepositoryClaim (packages/function/src/github.ts + 5 tests) instead of parsing the subject, so immutable subjects (repo:owner@id/repo@id) resolve; exchange failures return 502 with context; github.handler.ts guards error reporting behind GitHub client readiness and reports raw text on token-exchange failure. - console: zen inference header lifecycle ($client replacement, keep x-opencode-* headers on new inference), requestBody nested-model parsing + tests, revert of the first-month-50 coupon delay, legal/prompt-data docs; docs(github.mdx) action token configuration. Conflicts resolved: 29 package.json version bumps (rebranded 1.18.23-sscity), bun.lock (took upstream, rebranded workspace entries via bun install). provider.ts and request.ts auto-merged; provider.ts verified to differ from pre-merge fork HEAD only by the Cloudflare changes — fork snapshot / small-model-chain / session-pinning / GLM architecture untouched. packages/function/package.json adopted upstream's new "test" script, wiring the new github tests into turbo alongside the new @opencode-ai/function#test task. Tests from both sides kept: provider 105, transform 437, retry 68, run-process 15, session llm 30 (incl. new parent session header test), cf-ai-gateway-e2e 13 (incl. dashed-slug and REST-route assertions), function github 5 (new), console requestBody 6 all pass; typecheck 30/30.
2 parents 2686e4c + ef2880f commit 2091b86

46 files changed

Lines changed: 374 additions & 130 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎bun.lock‎

Lines changed: 28 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode-ai/app",
3-
"version": "1.18.22-sscity",
3+
"version": "1.18.23-sscity",
44
"description": "",
55
"type": "module",
66
"exports": {

‎packages/cli/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@opencode-ai/cli",
4-
"version": "1.18.22-sscity",
4+
"version": "1.18.23-sscity",
55
"type": "module",
66
"license": "MIT",
77
"bin": {

‎packages/codemode/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@opencode-ai/codemode",
4-
"version": "1.18.22-sscity",
4+
"version": "1.18.23-sscity",
55
"description": "Effect-native confined code execution over schema-described tools",
66
"private": true,
77
"type": "module",

‎packages/console/app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode-ai/console-app",
3-
"version": "1.18.22-sscity",
3+
"version": "1.18.23-sscity",
44
"type": "module",
55
"license": "MIT",
66
"scripts": {

‎packages/console/app/src/routes/legal/privacy-policy/index.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,8 @@ export default function PrivacyPolicy() {
237237
</td>
238238
<td>
239239
<ul>
240-
<li>Providing, Customizing and Improving the Services</li>
241-
<li>Marketing the Services</li>
242-
<li>Corresponding with You</li>
240+
<li>Passing through to upstream provider to provide services</li>
241+
<li>Not stored</li>
243242
</ul>
244243
</td>
245244
<td>

‎packages/console/app/src/routes/legal/terms-of-service/index.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function TermsOfService() {
2121
<section data-component="brand-content">
2222
<article data-component="terms-of-service">
2323
<h1>Terms of Use</h1>
24-
<p class="effective-date">Effective date: Mar 6, 2026</p>
24+
<p class="effective-date">Effective date: Aug 15, 2026</p>
2525

2626
<p>
2727
Welcome to OpenCode. Please read on to learn the rules and restrictions that govern your use of
@@ -154,6 +154,11 @@ export default function TermsOfService() {
154154
is dangerous, harmful, fraudulent, deceptive, threatening, harassing, defamatory, obscene, or
155155
otherwise objectionable;
156156
</li>
157+
<li>
158+
creates, maintains, or uses accounts in bulk, or creates, maintains, or uses multiple accounts to
159+
circumvent usage limits, access restrictions, billing obligations, promotions, suspensions, or any
160+
other restriction or policy applicable to the Services;
161+
</li>
157162
<li>automatically or programmatically extracts data or Output (defined below);</li>
158163
<li>Represent that the Output was human-generated when it was not;</li>
159164
<li>

‎packages/console/app/src/routes/zen/util/handler.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export async function handler(
222222
if (v === "$session") return headers.set(k, sessionId)
223223
if (v === "$model") return headers.set(k, model)
224224
if (v === "$request") return headers.set(k, requestId)
225+
if (v === "$client") return headers.set(k, ocClient)
225226
if (v === "$project") return headers.set(k, projectId)
226227
if (v === "$workspace") {
227228
if (authInfo?.workspaceID) headers.set(k, authInfo.workspaceID)
@@ -235,10 +236,12 @@ export async function handler(
235236
})
236237
headers.delete("host")
237238
headers.delete("content-length")
238-
headers.delete("x-opencode-request")
239-
if (!isNewInference) headers.delete("x-opencode-session")
240-
headers.delete("x-opencode-project")
241-
headers.delete("x-opencode-client")
239+
if (!isNewInference) {
240+
headers.delete("x-opencode-session")
241+
headers.delete("x-opencode-project")
242+
headers.delete("x-opencode-client")
243+
headers.delete("x-opencode-request")
244+
}
242245
return headers
243246
})(),
244247
body: reqBody,

0 commit comments

Comments
 (0)