Skip to content

Commit ab828ce

Browse files
committed
chore: merge OpenCode v1.18.21-sscity
Upstream v1.18.20 (7248bc1) -> v1.18.21 (826d9ad), 11 commits. Upstream superseded the v1.18.20 release commit with a9cac91 (sync release versions for v1.18.20) in the v1.18.21 lineage; merge base is 35fe5b7, effective input identical to the audited 64-file range. Functional changes: - fix(opencode): continue unknown finish responses (anomalyco#43892) - fix(stats): merge renamed model data (anomalyco#43883) - fix(opencode): route Vertex multi-regions through REP (anomalyco#42648) - fix(app): preserve file search results while loading (anomalyco#43836) - fix(app): register archive session command in both layouts (anomalyco#41741) - fix(go): align Ox Alpha model ID (anomalyco#43837); docs + i18n updates Conflicts resolved: 30 package.json version bumps (rebranded 1.18.21-sscity), bun.lock (took upstream, rebranded workspace entries via bun install). session/prompt.ts loop-exit condition reconciled by hand: the fork isTerminalFinish() helper already treats "unknown" as non-terminal (empty-finish recovery work), which is exactly upstream anomalyco#43892's continuation semantic, so the fork form was kept and the file resolved identical to HEAD; upstream's "loop continues when finish is unknown" regression test adopted alongside the fork's own unknown-finish loop tests. provider.ts auto-merged: upstream googleVertexEndpoint() now routes eu/us continental multi-regions through Regional Endpoint Platform domains on top of the fork provider snapshot / small-model-chain / single-flight architecture, with upstream's five Vertex endpoint tests added. App file-search preservation while loading, archive session command registration in both layouts, and stats renamed-model data merge adopted cleanly. Tests from both sides kept: prompt 61, provider 105, retry 68, processor + empty-stream 23, stats inference 11 all pass; typecheck 30/30.
2 parents e0f1b97 + 826d9ad commit ab828ce

63 files changed

Lines changed: 2252 additions & 1947 deletions

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/e2e/regression/file-browser-sidebar-tab-switch.spec.ts‎

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,39 @@ test("keeps the file-browser sidebar mounted when switching file tabs", async ({
6060
await expect.poll(() => viewport.evaluate((element) => element.scrollTop)).toBe(scrolled)
6161
})
6262

63+
test("keeps previous file search results visible while the next search loads", async ({ page }) => {
64+
const searchPending = Promise.withResolvers<void>()
65+
await setup(page, async ({ query }) => {
66+
if (query === "file-0") return ["file-00.ts"]
67+
if (query === "file-7") {
68+
await searchPending.promise
69+
return ["file-79.ts"]
70+
}
71+
return []
72+
})
73+
74+
await page.goto(`/server/${base64Encode(server)}/session/${sessionID}`)
75+
await expectSessionTitle(page, title)
76+
77+
const panel = page.locator("#review-panel")
78+
await panel.getByRole("button", { name: "Open file" }).click()
79+
const filter = panel.getByRole("combobox", { name: "Filter files" })
80+
await filter.fill("file-0")
81+
await expect(panel.getByRole("option", { name: "file-00.ts" })).toBeVisible()
82+
83+
const nextSearch = page.waitForRequest((request) => {
84+
const url = new URL(request.url())
85+
return url.pathname === "/find/file" && url.searchParams.get("query") === "file-7"
86+
})
87+
await filter.fill("file-7")
88+
await nextSearch
89+
await expect(panel.getByRole("option", { name: "file-00.ts" })).toBeVisible()
90+
91+
searchPending.resolve()
92+
await expect(panel.getByRole("option", { name: "file-79.ts" })).toBeVisible()
93+
await expect(panel.getByRole("option", { name: "file-00.ts" })).toBeHidden()
94+
})
95+
6396
type Probed = HTMLElement & { __e2eProbe?: string }
6497

6598
async function writeProbe(page: Page) {
@@ -74,7 +107,10 @@ async function readProbe(page: Page) {
74107
.evaluate((el) => (el as Probed).__e2eProbe)
75108
}
76109

77-
async function setup(page: Page) {
110+
async function setup(
111+
page: Page,
112+
findFiles?: (input: { query: string; dirs?: string; limit?: number }) => unknown | Promise<unknown>,
113+
) {
78114
await mockOpenCodeServer(page, {
79115
directory,
80116
project: {
@@ -119,6 +155,7 @@ async function setup(page: Page) {
119155
}))
120156
},
121157
fileContent: (path) => ({ type: "text", content: `contents:${path}` }),
158+
findFiles,
122159
pageMessages: () => ({ items: [] }),
123160
})
124161

‎packages/app/e2e/utils/mock-server.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface MockServerConfig {
2626
questions?: unknown[] | (() => unknown[])
2727
fileList?: (path: string) => unknown | Promise<unknown>
2828
fileContent?: (path: string) => unknown | Promise<unknown>
29-
findFiles?: (input: { query: string; dirs?: string; limit?: number }) => unknown
29+
findFiles?: (input: { query: string; dirs?: string; limit?: number }) => unknown | Promise<unknown>
3030
sessionStatus?: Record<string, unknown> | (() => Record<string, unknown>)
3131
}
3232

‎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.20-sscity",
3+
"version": "1.18.21-sscity",
44
"description": "",
55
"type": "module",
66
"exports": {

‎packages/app/src/pages/layout.tsx‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -972,17 +972,6 @@ export default function LegacyLayout(props: ParentProps) {
972972
keybind: "shift+alt+arrowdown",
973973
onSelect: () => navigateSessionByUnseen(1),
974974
},
975-
{
976-
id: "session.archive",
977-
title: language.t("command.session.archive"),
978-
category: language.t("command.category.session"),
979-
keybind: "mod+shift+backspace",
980-
disabled: !params.dir || !params.id,
981-
onSelect: () => {
982-
const session = currentSessions().find((s) => s.id === params.id)
983-
if (session) void archiveSession(session)
984-
},
985-
},
986975
{
987976
id: "workspace.new",
988977
title: language.t("workspace.new"),

0 commit comments

Comments
 (0)