Skip to content

Commit 71448e7

Browse files
Merge branch 'main' into feat/abort-r1-bedrock
2 parents ce076d2 + 147147c commit 71448e7

424 files changed

Lines changed: 16765 additions & 2371 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.

‎.coderabbit.yaml‎

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
language: en-US
3+
tone_instructions: >-
4+
Be direct and evidence-first. Report only concrete, actionable findings grounded in changed code.
5+
Prioritize correctness, security, data loss, lifecycle, and regressions; avoid speculative style
6+
comments and unrelated refactors.
7+
8+
reviews:
9+
profile: assertive
10+
request_changes_workflow: true
11+
high_level_summary: true
12+
high_level_summary_in_walkthrough: true
13+
review_status: true
14+
review_details: true
15+
collapse_walkthrough: true
16+
changed_files_summary: true
17+
poem: false
18+
19+
auto_review:
20+
enabled: true
21+
drafts: false
22+
auto_incremental_review: true
23+
24+
path_filters:
25+
- "!**/node_modules/**"
26+
- "!**/dist/**"
27+
- "!**/out/**"
28+
- "!**/coverage/**"
29+
- "!**/.turbo/**"
30+
- "!apps/vscode-e2e/.vscode-test/**"
31+
- "!bin/*.vsix"
32+
- "!webview-ui/**/__screenshots__/**"
33+
34+
path_instructions:
35+
- path: "**/*"
36+
instructions: >-
37+
Act as an adversarial second-opinion reviewer. Verify PR claims against implementation,
38+
contracts, and tests. Trace changed inputs through normal, boundary, error, cancellation,
39+
retry, and default paths and their consumers. Seek plausible counterexamples and regressions
40+
from removed safeguards. Report only concrete, actionable findings grounded in changed code
41+
and repository conventions. Prioritize correctness, security, data loss, lifecycle, and test
42+
gaps. Avoid speculative style comments and unrelated refactors. Search for existing helpers
43+
before suggesting abstractions, and distinguish actual defects from unsupported checks.
44+
45+
- path: "**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
46+
instructions: >-
47+
Check strict typing and exhaustive behavior across normal, boundary, error,
48+
cancellation, retry, and compatibility paths. Verify promises and errors are handled,
49+
existing helpers are reused, and new code introduces no `any`, unjustified double
50+
assertions, floating promises, duplicated helpers, or increased lint suppressions.
51+
52+
- path: "{**/*.{test,spec}.{ts,tsx,js,jsx},**/__tests__/**}"
53+
instructions: >-
54+
Require regression coverage at the lowest valid harness with behavior-focused
55+
assertions, including relevant negative, error, false/unset, and boundary cases.
56+
Check cleanup and deterministic async behavior and prefer shared typed test helpers.
57+
Visible webview changes require a durable Playwright component snapshot; behavior-only
58+
changes do not.
59+
60+
- path: "apps/vscode-e2e/**"
61+
instructions: >-
62+
Reserve end-to-end coverage for behavior that requires the real VS Code host, workspace
63+
APIs, extension activation, webview messaging, file watchers, or a full workflow. Keep
64+
detailed protocol, parsing, storage, retry, and edge cases at lower test layers.
65+
66+
- path: "{packages/types/src/**,webview-ui/src/components/settings/**,src/core/config/**,src/core/webview/**}"
67+
instructions: >-
68+
For persisted settings, verify the complete schema/storage/runtime/webview round trip,
69+
shared default semantics, and focused true plus false/unset tests. SettingsView controls
70+
must read and update local `cachedState`, include the value in the explicit save payload,
71+
and receive the persisted value back from extension state.
72+
73+
- path: "src/**"
74+
instructions: >-
75+
Verify extension/webview contracts, cancellation and error propagation, VS Code
76+
lifecycle correctness, and behavior under retries and partial failure. Check listeners,
77+
resources, and providers are disposed without stale state or duplicate work.
78+
79+
- path: "webview-ui/**"
80+
instructions: >-
81+
Check React state and effect dependencies, cleanup, accessibility, i18n, and light/dark
82+
theme behavior. New markup should use Tailwind; add VS Code CSS variables to
83+
`src/index.css` before Tailwind use. Use Vitest for behavior and Playwright component
84+
snapshots only for durable visible changes.
85+
86+
- path: "{src/api/**,src/core/prompts/**,src/core/tools/**,src/services/mcp/**,src/services/destructive-command-guard/**}"
87+
instructions: >-
88+
Treat model, provider, MCP, path, command, and tool data as untrusted. Check approval and
89+
allowlist bypasses, injection and traversal risks, secrets/PII exposure in logs, abort and
90+
stream behavior, retries, provider compatibility, and enforcement at execution time—not
91+
only at presentation or planning time.
92+
93+
- path: "{src/**/{state,history,task,tasks,service,services,cache,caches,worktree,worktrees}/**,packages/**/{state,history,task,tasks,service,services,cache,caches,worktree,worktrees}/**,webview-ui/src/**/{state,history,task,tasks,service,services,cache,caches,worktree,worktrees}/**}"
94+
instructions: >-
95+
Check persistence and lifecycle invariants: awaited atomic writes, rollback or explicit
96+
partial-failure behavior, cross-window state consistency, stale listeners/watchers,
97+
cancellation, idempotency, and safe restart/resume without lost or duplicated state.
98+
99+
- path: ".github/**"
100+
instructions: >-
101+
Require full commit SHA pins, least-privilege permissions, safe expression and shell
102+
interpolation, and trusted metadata handling. Privileged workflows must never check out,
103+
execute, install from, or otherwise trust a fork PR head.
104+
105+
- path: "{AGENTS.md,**/AGENTS.md,CONTRIBUTING.md,.changeset/**,CHANGELOG.md,src/CHANGELOG.md}"
106+
instructions: >-
107+
Enforce repository policy: routine PRs must not add changesets or edit changelogs except
108+
during release preparation. Verify documentation describes real behavior and contracts,
109+
and deprioritize prose-only nits that do not affect correctness or usability.
110+
111+
pre_merge_checks:
112+
custom_checks:
113+
- name: Regression evidence
114+
mode: warning
115+
instructions: >-
116+
Fail only when a concrete changed behavior lacks focused coverage at the lowest valid
117+
test layer, tests merely mirror implementation, an affected error/negative/unset branch
118+
is omitted, or a durable visible UI change lacks its required Playwright component
119+
snapshot. Do not demand tests for unchanged behavior, mechanical configuration, or every
120+
branch without a plausible regression scenario. Cite the changed behavior and missing
121+
evidence.
122+
- name: Trust and persistence invariants
123+
mode: error
124+
instructions: >-
125+
Fail only for a concrete changed path that leaks secrets or PII, trusts or executes
126+
unvalidated input, bypasses approval or allowlist controls, can lose persisted state due
127+
to a missing await, non-atomic write, or omitted default propagation, or leaks lifecycle
128+
resources. Cite the path and a plausible triggering scenario; pass when no such changed
129+
path exists.
130+
131+
tools:
132+
eslint:
133+
enabled: true
134+
actionlint:
135+
enabled: true
136+
shellcheck:
137+
enabled: true
138+
gitleaks:
139+
enabled: true
140+
semgrep:
141+
enabled: true

‎.github/pull_request_template.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Detail the steps to test your changes. This helps reviewers verify your work.
4646

4747
<!--
4848
For UI changes to static rendered state, the primary artifact is a committed
49-
Playwright CT snapshot (`*.visual.tsx` in `webview-ui/`) — that baseline
49+
Playwright Story Gallery snapshot (`*.visual.tsx` in `webview-ui/`) — that baseline
5050
becomes durable regression coverage for the surface. See
5151
`webview-ui/AGENTS.md` for what deserves a snapshot.
5252

‎.github/workflows/code-qa.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,33 @@ jobs:
9191
- name: Check types
9292
run: pnpm check-types
9393

94+
build-vsix:
95+
name: Build test VSIX
96+
if: github.event_name == 'pull_request'
97+
runs-on: ubuntu-latest
98+
steps:
99+
- name: Checkout code
100+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
101+
with:
102+
persist-credentials: false
103+
- name: Setup Node.js and pnpm
104+
uses: ./.github/actions/setup-node-pnpm
105+
with:
106+
install-args: "--frozen-lockfile"
107+
- name: Build workspace packages
108+
run: |
109+
pnpm --filter @roo-code/build build
110+
pnpm --filter @roo-code/vscode-webview build
111+
- name: Package extension
112+
run: pnpm --filter ./src vsix
113+
- name: Upload test VSIX
114+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
115+
with:
116+
name: zoo-code-vsix-pr-${{ github.event.pull_request.number }}
117+
path: bin/*.vsix
118+
if-no-files-found: error
119+
retention-days: 7
120+
94121
unit-test:
95122
name: platform-unit-test (${{ matrix.name }})
96123
runs-on: ${{ matrix.os }}

‎.github/workflows/visual-regression.yml‎

Lines changed: 81 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
name: Webview Visual Regression
1+
name: Visual Regression
22

33
on:
44
workflow_dispatch:
55
pull_request:
66
types: [opened, reopened, ready_for_review, synchronize]
77
paths:
8+
- "apps/vscode-e2e/package.json"
9+
- "apps/vscode-e2e/src/theme-fixtures/**"
10+
- "apps/vscode-e2e/src/visual/**"
11+
- "apps/vscode-e2e/playwright-electron.config.ts"
12+
- "packages/types/src/api.ts"
13+
- "packages/types/src/vscode-extension-host.ts"
14+
- "src/core/webview/ClineProvider.ts"
15+
- "src/core/webview/webviewMessageHandler.ts"
16+
- "src/extension/api.ts"
817
- "webview-ui/**"
918
- "src/shared/**"
1019
- "package.json"
@@ -25,7 +34,7 @@ jobs:
2534
runs-on: ubuntu-latest
2635
timeout-minutes: 10
2736
container:
28-
image: mcr.microsoft.com/playwright:v1.60.0-noble@sha256:9bd26ad900bb5e0f4dee75839e957a89ae89c2b7ab1e76050e559790e946b948
37+
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
2938
options: --ipc=host
3039
steps:
3140
- name: Checkout code
@@ -55,3 +64,73 @@ jobs:
5564
webview-ui/playwright-report
5665
webview-ui/test-results
5766
if-no-files-found: ignore
67+
68+
theme-fixtures:
69+
runs-on: ubuntu-latest
70+
timeout-minutes: 15
71+
steps:
72+
- name: Checkout code
73+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
74+
with:
75+
persist-credentials: false
76+
- name: Setup Node.js and pnpm
77+
uses: ./.github/actions/setup-node-pnpm
78+
with:
79+
install-args: "--frozen-lockfile"
80+
- name: Install xvfb
81+
run: sudo apt-get install -y xvfb
82+
- name: Get pinned VS Code version
83+
id: vscode-version
84+
run: |
85+
VERSION=$(node -p 'require("./apps/vscode-e2e/package.json").devDependencies["@types/vscode"]')
86+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
87+
- name: Cache pinned VS Code
88+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
89+
with:
90+
path: apps/vscode-e2e/.vscode-test/
91+
key: vscode-theme-fixtures-${{ runner.os }}-${{ steps.vscode-version.outputs.version }}-v1
92+
- name: Test theme fixture serialization
93+
run: pnpm --filter @roo-code/vscode-e2e themes:test
94+
- name: Check generated VS Code theme fixtures
95+
run: xvfb-run -a pnpm --filter @roo-code/vscode-e2e themes:check
96+
97+
extension-host-visual:
98+
runs-on: ubuntu-latest
99+
timeout-minutes: 20
100+
container:
101+
image: mcr.microsoft.com/playwright:v1.62.1-noble@sha256:dcc5531e97840b9b5e794f2814476b21571c5124a3fca2267d73041f56e7580e
102+
options: --ipc=host
103+
env:
104+
LANG: en_US.UTF-8
105+
LC_ALL: en_US.UTF-8
106+
TZ: UTC
107+
steps:
108+
- name: Checkout code
109+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
110+
with:
111+
persist-credentials: false
112+
- name: Setup Node.js and pnpm
113+
uses: ./.github/actions/setup-node-pnpm
114+
with:
115+
install-args: "--frozen-lockfile"
116+
- name: Get pinned VS Code version
117+
id: vscode-version
118+
run: |
119+
VERSION=$(node -p 'require("./apps/vscode-e2e/package.json").devDependencies["@types/vscode"]')
120+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
121+
- name: Cache pinned VS Code
122+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
123+
with:
124+
path: apps/vscode-e2e/.vscode-test/
125+
key: vscode-electron-visual-${{ runner.os }}-${{ steps.vscode-version.outputs.version }}-v1
126+
- name: Run Extension Host visual tests
127+
run: xvfb-run -a pnpm --filter @roo-code/vscode-e2e test:visual:electron
128+
- name: Upload Extension Host visual artifacts
129+
if: failure()
130+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
131+
with:
132+
name: extension-host-visual-regression
133+
path: |
134+
apps/vscode-e2e/playwright-report-electron
135+
apps/vscode-e2e/test-results-electron
136+
if-no-files-found: ignore

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ AGENTS.local.md
2323
# Test environment
2424
.test_env
2525
.vscode-test/
26+
apps/vscode-e2e/playwright-report-electron/
27+
apps/vscode-e2e/test-results-electron/
2628

2729
# Docs
2830
docs/_site/

‎CHANGELOG.md‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
11
# Zoo Code Changelog
22

3+
## [3.80.1]
4+
5+
🤖 Try GLM-5.3-Flash and Gemini 3.7 Flash at 50% Discount for 2 Weeks and MiniMax M3 completely FREE for users with a balance on the new Zoo Gateway. https://zoocode.dev/models
6+
7+
### Patch Changes
8+
9+
- Add GLM-5.3-Flash support to Z AI (PR #1430 by @app/zoomote)
10+
- Restore subtask approval requests when users return to a parent task (#1223 by @martin-rueegg, PR #1320 by @app/zoomote)
11+
- Fix Vertex Gemini 3.7 requests that fail after tools return empty output (PR #1250 by @app/zoomote)
12+
- Fix terminal startup failures that leave commands unresolved (PR #1351 by @app/zoomote)
13+
- Fix background service failures that surface as unhandled rejections (PR #1352 by @app/zoomote)
14+
- Keep rendered content legible across IDE themes (PR #1344 by @app/zoomote)
15+
- Fix announcement links opening twice in the VS Code webview (PR #1432 by @edelauna)
16+
17+
## [3.80.0]
18+
19+
### Minor Changes
20+
21+
- Add separate Read and Write allowlists so users can restrict file operations to approved paths (#1273 by @nh2, PR #1274 by @nh2)
22+
- Add official GLM 5.3 support to the Z.ai API (PR #1284 by @app/zoomote)
23+
- Add Gemini 3.5 Flash Lite and Gemini 3.1 Flash Lite to the Gemini API provider (#1251 by @MrMody0, PR #1334 by @easonLiangWorldedtech)
24+
- Prevent webview gray screens and out-of-memory failures by throttling extension-state pushes (#629 by @edelauna, PR #1078 by @JunyongParkDev)
25+
- Recover stale delegated child tasks after an extension restart (#1100 by @aniruddhabag3, PR #1210 by @edelauna)
26+
- Replace the shared task-history index with atomic per-task merges to prevent lost or corrupted history (#1231 by @martin-rueegg, PR #1261 by @edelauna)
27+
- Mark interrupted tool calls as errors in persisted task history so resumed conversations remain consistent (#1283 by @martin-rueegg, PR #1323 by @easonLiangWorldedtech)
28+
- Complete OpenAI Codex prompts over the streaming transport instead of waiting indefinitely (#1242 by @Rafael-Silva-Oliveira, PR #1243 by @Rafael-Silva-Oliveira)
29+
- Stream LM Studio `reasoning_content` so model reasoning is preserved in responses (#1075 by @marunguy, PR #1175 by @daewoongoh)
30+
- Fix NanoGPT Muse Spark tool-use requests (PR #1310 by @app/zoomote)
31+
- Make settings import await provider-state persistence before reporting success (PR #1340 by @app/zoomote)
32+
- Default telemetry to opt-out and require explicit consent through the telemetry UI (PR #1069 by @edelauna)
33+
- Introduce an SDK-agnostic request configuration builder for consistent abort-signal support (#1007 by @easonLiangWorldedtech, PR #1008 by @easonLiangWorldedtech)
34+
- Delegate VS Code shell-profile reads to Terminal methods for more reliable profile detection (#634 by @marty-a11y, PR #1033 by @edelauna)
35+
- Increase the Semble archive download limit for larger codebase-intelligence binaries (#1305 by @navedmerchant, PR #1306 by @navedmerchant)
36+
- Stop estimating Zoo Gateway UI costs from unrelated default-model prices when authoritative cost data is unavailable (PR #1339 by @JamesRobert20)
37+
- Improve Mermaid label contrast in light IDE themes (PR #1285 by @app/zoomote)
38+
- Keep chat controls legible in light IDE themes (PR #1298 by @app/zoomote)
39+
- Fix the remaining chat controls that faded into light IDE themes (PR #1312 by @app/zoomote)
40+
- Improve shared-control contrast across IDE themes (PR #1333 by @app/zoomote)
41+
- Canonicalize provider and model identifiers in webview messages (PR #1143 by @WebMad)
42+
- Canonicalize model-router calls across providers (PR #1165 by @WebMad)
43+
- Enforce canonical provider identifiers through provider lint rules (#1294 by @WebMad, PR #1297 by @WebMad)
44+
- Enforce safe asynchronous handling in core tools (PR #1255 by @app/zoomote)
45+
- Build downloadable VSIX artifacts for pull requests (PR #1314 by @app/zoomote)
46+
347
## [3.78.0]
448

549
### Minor Changes

0 commit comments

Comments
 (0)