Skip to content

Commit bf33480

Browse files
authored
Merge branch 'dev' into min
2 parents 98e234d + 15b27e0 commit bf33480

33 files changed

Lines changed: 248 additions & 355 deletions

File tree

.github/actions/setup-bun/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,13 @@ runs:
4141
shell: bash
4242

4343
- name: Install dependencies
44-
run: bun install
44+
run: |
45+
# Workaround for patched peer variants
46+
# e.g. ./patches/ for standard-openapi
47+
# https://github.com/oven-sh/bun/issues/28147
48+
if [ "$RUNNER_OS" = "Windows" ]; then
49+
bun install --linker hoisted
50+
else
51+
bun install
52+
fi
4553
shell: bash

bun.lock

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

packages/app/e2e/session/session-model-persistence.spec.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,25 @@ test("session model restore across workspaces", async ({ page, withProject }) =>
349349
await waitFooter(page, firstState)
350350
})
351351
})
352+
353+
test("variant preserved when switching agent modes", async ({ page, withProject }) => {
354+
await page.setViewportSize({ width: 1440, height: 900 })
355+
356+
await withProject(async ({ directory, gotoSession }) => {
357+
await gotoSession()
358+
359+
await ensureVariant(page, directory)
360+
const updated = await chooseDifferentVariant(page)
361+
362+
const available = await agents(page)
363+
const other = available.find((name) => name !== updated.agent)
364+
test.skip(!other, "only one agent available")
365+
if (!other) return
366+
367+
await choose(page, promptAgentSelector, other)
368+
await waitFooter(page, { agent: other, variant: updated.variant })
369+
370+
await choose(page, promptAgentSelector, updated.agent)
371+
await waitFooter(page, { agent: updated.agent, variant: updated.variant })
372+
})
373+
})

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.2.26",
3+
"version": "1.2.27",
44
"description": "",
55
"type": "module",
66
"exports": {

packages/app/src/components/session/session-header.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export function SessionHeader() {
326326
<div class="flex h-[24px] box-border items-center rounded-md border border-border-weak-base bg-surface-panel overflow-hidden">
327327
<Button
328328
variant="ghost"
329-
class="rounded-none h-full py-0 pr-1.5 pl-px gap-1.5 border-none shadow-none disabled:!cursor-default"
329+
class="rounded-none h-full px-0.5 border-none shadow-none disabled:!cursor-default"
330330
classList={{
331331
"bg-surface-raised-base-active": opening(),
332332
}}
@@ -339,7 +339,6 @@ export function SessionHeader() {
339339
<Spinner class="size-3.5" style={{ color: tint() ?? "var(--icon-base)" }} />
340340
</Show>
341341
</div>
342-
<span class="text-12-regular text-text-strong">{language.t("common.open")}</span>
343342
</Button>
344343
<DropdownMenu
345344
gutter={4}

packages/app/src/context/local.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
192192
model: item.model,
193193
variant: item.variant ?? null,
194194
})
195+
const prev = scope()
195196
const next = {
196197
agent: item.name,
197-
model: item.model,
198-
variant: item.variant,
198+
model: item.model ?? prev?.model,
199+
variant: item.variant ?? prev?.variant,
199200
} satisfies State
200201
const session = id()
201202
if (session) {

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.2.26",
3+
"version": "1.2.27",
44
"type": "module",
55
"license": "MIT",
66
"scripts": {

packages/console/core/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/console-core",
4-
"version": "1.2.26",
4+
"version": "1.2.27",
55
"private": true,
66
"type": "module",
77
"license": "MIT",

packages/console/function/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-function",
3-
"version": "1.2.26",
3+
"version": "1.2.27",
44
"$schema": "https://json.schemastore.org/package.json",
55
"private": true,
66
"type": "module",

packages/console/mail/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-mail",
3-
"version": "1.2.26",
3+
"version": "1.2.27",
44
"dependencies": {
55
"@jsx-email/all": "2.2.3",
66
"@jsx-email/cli": "1.4.3",

0 commit comments

Comments
 (0)