Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
127b9e8
fix(app): release closed session transcripts
Oct 20, 2026
560106b
fix(ci): run PR checks on GitHub-hosted runners
Oct 20, 2026
65b4da5
fix(ci): repair V2 desktop test prerequisites and Windows fixtures
Oct 20, 2026
031c209
fix(desktop): pin WPP detached session cleanup
Oct 20, 2026
65618da
fix(ci): install browser prerequisites and preserve visible effort co…
Oct 20, 2026
c024267
fix(desktop): include WPP pool shutdown cancellation
Oct 20, 2026
98b57d5
chore(ci): serialize workspace unit checks
Oct 20, 2026
28eaf96
fix(core): keep native AE loading out of workerd
Oct 20, 2026
bfb11aa
test(app): repair session preview prerequisites
Oct 20, 2026
a11be63
chore: integrate reviewed CI repairs
Oct 20, 2026
f50089d
fix(core): integrate portable AE registration
Oct 20, 2026
fe78b70
fix(app): integrate transcript retention cleanup
Oct 20, 2026
893faeb
fix(desktop): integrate WPP cleanup pin
Oct 20, 2026
3279626
fix(app): end timeline scrolls at the live offset
Oct 20, 2026
6b80bd7
fix(app): integrate live scroll offset updates
Oct 20, 2026
33f1406
fix(cli): use Node retries for smoke cleanup
Oct 20, 2026
4e0e1af
fix(storybook): resolve dependencies across layouts
Oct 20, 2026
2b9fa2d
chore(ci): integrate reviewed build fixes
Oct 20, 2026
2e23eda
test(app): stabilize loading motion phase checks
Oct 20, 2026
a398c71
fix(ci): prepare cold integration test runtimes
Oct 20, 2026
f3dd74b
test(app): integrate reviewed loading fixture fix
Oct 20, 2026
471db3e
fix(ci): stage integration runtime calibration
Oct 20, 2026
f6e0894
fix(desktop): restrict open-with applications
Oct 20, 2026
d9fe6b7
fix(desktop): integrate open-with boundary checks
Oct 20, 2026
5d01834
fix(desktop): track main windows across permissions and activation
Oct 20, 2026
f1e0cc6
fix(desktop): integrate main window lifecycle ownership
Oct 20, 2026
48f1b6d
fix(browser): permit panel changes for ordinary tasks
Oct 20, 2026
3f28603
fix(browser): integrate ordinary task panel authority
Oct 20, 2026
26c3d86
fix(app): show failed refreshes over retained site data
Oct 20, 2026
1188d0f
fix(app): integrate inspection refresh feedback
Oct 20, 2026
7032a7f
fix(browser): bound serialized RPC requests
Oct 20, 2026
a248e6b
fix(browser): integrate request budget and backend trust
Oct 20, 2026
8eafbbd
fix(desktop): derive Linux identity from CookieMonster branding
Oct 20, 2026
bceaccc
fix(desktop): integrate branded Linux packaging identity
Oct 20, 2026
bf785cc
refactor(desktop): select channel names from the identity table
Oct 20, 2026
17e33fe
refactor(desktop): integrate channel identity cleanup
Oct 20, 2026
612b963
fix(desktop): hand WPP sign-in to authenticated local bridge
Oct 20, 2026
bd6d85e
fix(desktop): integrate WPP credential handoff contracts
Oct 20, 2026
3625605
test(wpp): verify V2 tool schemas and managed credentials
Oct 20, 2026
b44b8d3
test(desktop): qualify packaged macOS activation
Oct 20, 2026
90f9b2d
test(desktop): integrate packaged activation verification
Oct 20, 2026
61a739d
fix(desktop): register WPP handoff only in WPP builds
Oct 20, 2026
d597e6f
fix(desktop): keep WPP protocol optional
Oct 20, 2026
3c0f230
test(wpp): verify packaged provider key rotation
Oct 20, 2026
389e522
fix(wpp): pin reviewed backend and verify packaged integration
Oct 20, 2026
2072264
test(desktop): await lifecycle before packaged activation
Oct 20, 2026
b479b0f
fix(ci): isolate heap checks and authenticate WPP setup
Oct 20, 2026
9612daf
test(desktop): wait for native startup APIs
Oct 20, 2026
2e63c7a
test(ci): stabilize browser and process fixtures
Oct 20, 2026
5170b81
test(desktop): defer native inspector evaluation
Oct 20, 2026
3837a20
test(server): allow cold worktree discovery startup
Oct 20, 2026
b6dde87
fix(app): release focus after early drawer dismissal
Oct 20, 2026
552e7bc
test(desktop): exercise native reopen activation
Oct 20, 2026
68ab920
fix(ci): stop build checks after cancellation [skip ci]
Oct 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ packages/core/src/database/migration.gen.ts linguist-generated
packages/core/src/models-dev/snapshot.txt linguist-generated
packages/core/src/**/*.txt text eol=lf
packages/httpapi-codegen/test/generated/*.ts text eol=lf

# Preserve the audited bytes of the vendored CookieJar bundle on Windows.
packages/desktop/vendor/cm-ae/** -text
5 changes: 3 additions & 2 deletions .github/actions/setup-bun/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "24"
node-version: "24.15"

- name: Get baseline download URL
id: bun-url
Expand Down Expand Up @@ -88,14 +88,15 @@ runs:
shell: bash
env:
CM_WPP_SSH_KEY: ${{ inputs.wpp-ssh-key }}
GH_TOKEN: ${{ github.token }}
run: |
if [ -z "$CM_WPP_SSH_KEY" ]; then
echo "::error::CM_WPP_SSH_KEY with read access to trmosala/CM-WPP-Bits is required."
exit 1
fi
umask 077
printf '%s\n' "$CM_WPP_SSH_KEY" > "$RUNNER_TEMP/cm-wpp-key"
curl --fail --silent --show-error https://api.github.com/meta | node -e '
curl --fail --silent --show-error --header "Authorization: Bearer $GH_TOKEN" https://api.github.com/meta | node -e '
let data = ""
process.stdin.on("data", chunk => data += chunk)
process.stdin.on("end", () => {
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/cookiemonster-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ jobs:
OPENCODE_CHANNEL: dev
run: bun test --preload ./test/preload.ts --timeout 20000 electron-builder.config.test.ts src/main/macos-user-install.test.ts

- name: Verify pinned WPP backend and host contracts
timeout-minutes: 3
run: |
bun run --cwd packages/desktop/wpp/node_modules/@cookiemonster/wpp test
bun run --cwd packages/desktop test:wpp

- name: Import Developer ID certificate
uses: apple-actions/import-codesign-certs@8f3fb608891dd2244cdab3d69cd68c0d37a7fe93 # v2.0.0
with:
Expand Down Expand Up @@ -148,6 +154,17 @@ jobs:
cd packages/desktop/dist
shasum -a 256 cookiemonster-mac-arm64.dmg > SHA256SUMS.txt

- name: Verify packaged macOS activation with a hidden worker
timeout-minutes: 3
run: |
mount="$RUNNER_TEMP/cm-activation-mount"
mkdir "$mount"
hdiutil attach packages/desktop/dist/cookiemonster-mac-arm64.dmg -readonly -nobrowse -mountpoint "$mount"
trap 'hdiutil detach "$mount"' EXIT
mkdir "$RUNNER_TEMP/cm-activation"
ditto "$mount/CookieMonster.app" "$RUNNER_TEMP/cm-activation/CookieMonster.app"
bun packages/desktop/scripts/check-mac-activation.ts "$RUNNER_TEMP/cm-activation/CookieMonster.app"

- name: Upload verified installer
if: ${{ !inputs.publish }}
timeout-minutes: 3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
check-duplicates:
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ubuntu-24.04
permissions:
contents: read
pull-requests: write
Expand Down
47 changes: 36 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:
jobs:
affected:
name: affected packages
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ubuntu-24.04
outputs:
app: ${{ steps.packages.outputs.app }}
steps:
Expand Down Expand Up @@ -58,9 +58,9 @@ jobs:
matrix:
settings:
- name: linux
host: blacksmith-4vcpu-ubuntu-2404
host: ubuntu-24.04
- name: windows
host: blacksmith-4vcpu-windows-2025
host: windows-2025
runs-on: ${{ matrix.settings.host }}
defaults:
run:
Expand All @@ -84,6 +84,23 @@ jobs:
if: runner.os == 'Linux'
run: bun run test:effect-simplification-rules

- name: Install Electron for desktop runtime tests
working-directory: packages/desktop
run: node -e "require(require.resolve('electron/install.js'))"

- name: Install Chromium for browser unit tests
working-directory: packages/app
run: bunx playwright install --with-deps chromium

- name: Install ripgrep for offline core tests
run: |
if [ "$RUNNER_OS" = "Linux" ]; then
sudo apt-get update
sudo apt-get install -y ripgrep
else
choco install ripgrep --yes --no-progress
fi

- name: Check Effect simplifications
if: runner.os == 'Linux'
run: bun run lint:effect-simplifications
Expand All @@ -102,15 +119,23 @@ jobs:
turbo-${{ runner.os }}-${{ hashFiles('turbo.json', '**/package.json') }}-
turbo-${{ runner.os }}-

- name: Initialize installed PowerShell runtime
if: runner.os == 'Linux'
run: |
# Cold PowerShell startup can exceed a unit test's five-second budget.
if command -v pwsh > /dev/null; then
pwsh -NoLogo -NoProfile -NonInteractive -Command "Write-Output 'PowerShell ready'"
fi

- name: Run unit tests
timeout-minutes: 20
run: |
# The runners have four vCPUs, and each Bun test process performs its own concurrent work.
# Each package creates concurrent work; serialize packages to bound hosted process pressure.
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
GITHUB_ACTIONS=false bun turbo test --concurrency=3
GITHUB_ACTIONS=false bun turbo test --concurrency=1
exit 0
fi
GITHUB_ACTIONS=false bun turbo test --affected --concurrency=3
GITHUB_ACTIONS=false bun turbo test --affected --concurrency=1
env:
OPENCODE_EXPERIMENTAL_DISABLE_FILEWATCHER: ${{ runner.os == 'Windows' && 'true' || 'false' }}
TURBO_SCM_BASE: ${{ github.event_name == 'pull_request' && format('{0}^1', github.sha) || github.event.before }}
Expand All @@ -135,7 +160,7 @@ jobs:
TURBO_SCM_HEAD: ${{ github.sha }}

- name: Verify compiled service lifecycle
if: always()
if: ${{ !cancelled() }}
timeout-minutes: 10
working-directory: packages/cli
env:
Expand All @@ -145,13 +170,13 @@ jobs:
bun run script/service-smoke.ts

- name: Setup Node build runtime
if: always()
if: ${{ !cancelled() }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "26.4.0"

- name: Verify Node build
if: always()
if: ${{ !cancelled() }}
timeout-minutes: 15
working-directory: packages/cli
env:
Expand All @@ -178,9 +203,9 @@ jobs:
matrix:
settings:
- name: linux
host: blacksmith-4vcpu-ubuntu-2404
host: ubuntu-24.04
- name: windows
host: blacksmith-4vcpu-windows-2025
host: windows-2025
runs-on: ${{ matrix.settings.host }}
env:
E2E_ENABLED: ${{ needs.affected.outputs.app == 'true' && github.ref_name != 'dev' && github.head_ref != 'dev' }}
Expand Down
1 change: 1 addition & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
"@ff-labs/fff-bun@0.10.5": "patches/@ff-labs%2Ffff-bun@0.10.5.patch",
"ghostty-web@github:anomalyco/ghostty-web#83c0a07": "patches/ghostty-web@0.3.0.patch",
"vite@8.2.2": "patches/vite@8.2.2.patch",
"@modelcontextprotocol/client@2.0.0": "patches/@modelcontextprotocol%2Fclient@2.0.0.patch"
"@modelcontextprotocol/client@2.0.0": "patches/@modelcontextprotocol%2Fclient@2.0.0.patch",
"@corvu/drawer@0.2.4": "patches/@corvu%2Fdrawer@0.2.4.patch"
}
}
43 changes: 39 additions & 4 deletions packages/app/component-tests/composer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,21 +96,26 @@ for (const direction of ["ltr", "rtl"]) {
).toBeLessThan(1)
await page.keyboard.press("Enter")
// Below the mobile breakpoint the variant picker opens in a bottom drawer instead of a menu.
await expect(

const option =
width < 768
? page
.getByRole("dialog", { name: "Choose model variant", exact: true })
.getByRole("button", { name: "high", exact: true })
: page.getByRole("menuitemradio", { name: "high", exact: true }),
).toBeVisible()
: page.getByRole("menuitemradio", { name: "high", exact: true })

await expect(option).toBeVisible()
// The mobile drawer starts below the viewport; wait until its options are presented before dismissal.
await expect(option).toBeInViewport({ ratio: 1 })
await page.keyboard.press("Escape")
await expect(variant).toBeFocused()
await expect(submit).toBeInViewport()
await expect(add).toBeInViewport()
await add.click()
await expect(page.getByRole("menuitem", { name: "Images and files" })).toBeVisible()
await page.keyboard.press("Escape")
expect(await add.boundingBox()).toEqual(fixedAdd)
// Menu dismissal restores focus and scroll position after its closing animation.
await expect.poll(() => add.boundingBox()).toEqual(fixedAdd)
}

if (alternate !== "none") {
Expand All @@ -123,6 +128,36 @@ for (const direction of ["ltr", "rtl"]) {
}
}

for (const motion of ["no-preference", "reduce"] as const) {
story(
`returns focus when the mobile variant drawer closes before its opening paint (${motion})`,
async ({ mount, page }) => {
await page.setViewportSize({ width: 360, height: 720 })
await page.emulateMedia({ reducedMotion: motion })
const component = await mount("opencode-composer-flow--toolbar-overflow")
const variant = component.getByRole("button", { name: "Choose model variant" })
await expect(variant).toBeVisible()
await page.clock.install({ time: 0 })
await page.clock.pauseAt(1000)
await variant.focus()
await page.keyboard.press("Enter")
const drawer = page.getByRole("dialog", { name: "Choose model variant", exact: true })
await expect(drawer.getByRole("button", { name: "high", exact: true })).toBeVisible()
// No opening animation-frame callback has run when Escape arrives.
await page.keyboard.press("Escape")
await page.clock.runFor(1000)
await expect(drawer).toBeHidden()
await expect(variant).toBeFocused()
await page.clock.resume()
await page.keyboard.press("Enter")
await expect(drawer.getByRole("button", { name: "high", exact: true })).toBeInViewport({ ratio: 1 })
await page.keyboard.press("Escape")
await expect(drawer).toBeHidden()
await expect(variant).toBeFocused()
},
)
}

story("does not mask or pad controls when they fit", async ({ mount }) => {
const component = await mount("opencode-composer-flow--model-and-variant")
const controls = component.locator('[data-slot="composer-controls"]')
Expand Down
12 changes: 6 additions & 6 deletions packages/app/e2e/regression/composer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ test("marks a Console provider with its workspace only when it is also connected
await expect(menu.getByText(/Anomaly \//)).toHaveCount(0)
})

test("shows thinking on hover or a non-default selection while preserving keyboard access", async ({ page }) => {
test("keeps the effort picker visible while preserving selection and keyboard access", async ({ page }) => {
const { editor: input } = await openSession(page, {
name: "ComposerThinking",
provider: provider({ id: "thinking-model", name: "Thinking Model", variants: { high: {} } }),
Expand All @@ -467,13 +467,13 @@ test("shows thinking on hover or a non-default selection while preserving keyboa

await page.mouse.move(0, 0)
await expect(control).toHaveText("default")
await expect(control).toHaveCSS("opacity", "0")
await expect(control).toHaveCSS("pointer-events", "none")
await expect(control).toHaveCSS("opacity", "1")
await expect(control).toHaveCSS("pointer-events", "auto")

await input.hover()
await expect(control).toHaveCSS("opacity", "1")

// The menu keeps the control visible after the pointer leaves.
// The control stays visible while its menu is open.
await control.click()
await expect(option("high")).toBeVisible()
await page.mouse.move(0, 0)
Expand All @@ -491,7 +491,7 @@ test("shows thinking on hover or a non-default selection while preserving keyboa
await input.click()
await page.mouse.move(0, 0)
await expect(control).toHaveText("default")
await expect(control).toHaveCSS("opacity", "0")
await expect(control).toHaveCSS("opacity", "1")

// The single-agent fixture has only Add and Model before the thinking trigger.
await page.keyboard.press("Tab")
Expand All @@ -507,5 +507,5 @@ test("shows thinking on hover or a non-default selection while preserving keyboa
await page.keyboard.press("Escape")
await expect(control).toBeFocused()
await page.keyboard.press("Tab")
await expect(control).toHaveCSS("opacity", "0")
await expect(control).toHaveCSS("opacity", "1")
})
Loading
Loading