Skip to content

Commit 132fb08

Browse files
author
Zoo (VP)
committed
chore: make codecov/patch informational to unblock PRs
1 parent e1385b7 commit 132fb08

212 files changed

Lines changed: 12816 additions & 3399 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.

‎.github/workflows/e2e.yml‎

Lines changed: 101 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,100 @@ jobs:
4545
VERSION=$(node -p 'require("./apps/vscode-e2e/package.json").devDependencies["@types/vscode"]')
4646
echo "version=$VERSION" >> $GITHUB_OUTPUT
4747
48-
- name: Cache VS Code test binary
48+
- name: Restore VS Code test binary cache
4949
if: github.event_name != 'pull_request' || steps.e2e-marker.outputs.cache-hit != 'true'
50-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
50+
id: vscode-cache
51+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
52+
with:
53+
path: |
54+
apps/vscode-e2e/.vscode-test/
55+
key: vscode-test-${{ runner.os }}-${{ steps.vscode-ver.outputs.version }}-v1
56+
# Fall back to the most recent stale binary so a version bump or cache
57+
# eviction doesn't force a download when the VS Code CDN is unreachable.
58+
restore-keys: |
59+
vscode-test-${{ runner.os }}-
60+
61+
- name: Probe VS Code download endpoints
62+
if: (github.event_name != 'pull_request' || steps.e2e-marker.outputs.cache-hit != 'true') && steps.vscode-cache.outputs.cache-hit != 'true'
63+
id: vscode-probe
64+
# The version-resolution API and the archive CDN are different hosts. The
65+
# archive URL 302-redirects to the CDN, so a HEAD probe that follows the
66+
# redirect covers both. The fallback engages when either is unreachable.
67+
run: |
68+
API_OK=false
69+
CDN_OK=false
70+
if curl -sf --max-time 10 https://update.code.visualstudio.com/api/releases/stable > /dev/null; then
71+
API_OK=true
72+
fi
73+
if curl -sfIL --max-time 20 -o /dev/null "https://update.code.visualstudio.com/${{ steps.vscode-ver.outputs.version }}/linux-x64/stable"; then
74+
CDN_OK=true
75+
fi
76+
if [ "$API_OK" = "true" ] && [ "$CDN_OK" = "true" ]; then
77+
echo "reachable=true" >> "$GITHUB_OUTPUT"
78+
else
79+
echo "reachable=false" >> "$GITHUB_OUTPUT"
80+
echo "::warning::VS Code download endpoints unreachable (api=$API_OK, cdn=$CDN_OK); will try the stale cached binary"
81+
fi
82+
83+
# @vscode/test-electron only skips its live version-resolution request when the
84+
# requested version already exists in .vscode-test/. On an exact-key miss it calls
85+
# the update API before its download retry loop, so an unreachable CDN fails the
86+
# job before any test runs. When the endpoints are down, point the runner at the
87+
# stale binary restored above (runTest.ts honors VSCODE_VERSION) so the suite
88+
# still runs.
89+
- name: Fall back to stale VS Code binary when CDN is unreachable
90+
if: (github.event_name != 'pull_request' || steps.e2e-marker.outputs.cache-hit != 'true') && steps.vscode-cache.outputs.cache-hit != 'true' && steps.vscode-probe.outputs.reachable == 'false'
91+
id: vscode-fallback
92+
run: |
93+
STALE=$(ls -d apps/vscode-e2e/.vscode-test/vscode-linux-x64-* 2>/dev/null | sort -V | tail -n 1 || true)
94+
if [ -n "$STALE" ]; then
95+
echo "VSCODE_VERSION=${STALE##*-}" >> "$GITHUB_ENV"
96+
echo "used=true" >> "$GITHUB_OUTPUT"
97+
echo "VS Code download endpoints are unreachable; falling back to cached VS Code ${STALE##*-}"
98+
else
99+
echo "::warning::VS Code download endpoints are unreachable and no cached binary is available; the download step will retry but may fail"
100+
fi
101+
102+
# Retry only the binary download: version resolution and the archive fetch are
103+
# the network-fragile parts. Genuine test failures should fail fast, so the
104+
# test step itself is deliberately not retried.
105+
- name: Download VS Code test binary
106+
if: github.event_name != 'pull_request' || steps.e2e-marker.outputs.cache-hit != 'true'
107+
id: vscode-download
108+
run: |
109+
cd apps/vscode-e2e
110+
for attempt in 1 2 3; do
111+
if node -e "const { downloadAndUnzipVSCode } = require('@vscode/test-electron'); const version = process.env.VSCODE_VERSION || require('./package.json').devDependencies['@types/vscode']; downloadAndUnzipVSCode(version).catch((err) => { console.error(err); process.exit(1); });"; then
112+
exit 0
113+
fi
114+
echo "VS Code download attempt ${attempt} failed"
115+
if [ "$attempt" -lt 3 ]; then
116+
sleep 15
117+
fi
118+
done
119+
exit 1
120+
121+
# restore-keys can bring back older binaries alongside the one just
122+
# downloaded; keep only the effective version so each saved cache entry
123+
# stays at one binary instead of growing with every version bump.
124+
- name: Prune stale VS Code binaries
125+
if: github.event_name != 'pull_request' || steps.e2e-marker.outputs.cache-hit != 'true'
126+
run: |
127+
EFFECTIVE="${VSCODE_VERSION:-${{ steps.vscode-ver.outputs.version }}}"
128+
for dir in apps/vscode-e2e/.vscode-test/vscode-linux-x64-*; do
129+
[ -e "$dir" ] || continue
130+
if [ "$(basename "$dir")" != "vscode-linux-x64-$EFFECTIVE" ]; then
131+
echo "Pruning stale VS Code binary $(basename "$dir")"
132+
rm -rf "$dir"
133+
fi
134+
done
135+
136+
# Skip the save when the stale-binary fallback ran: the pinned-version key
137+
# must not be populated with an older binary.
138+
- name: Save VS Code test binary cache
139+
if: (github.event_name != 'pull_request' || steps.e2e-marker.outputs.cache-hit != 'true') && steps.vscode-cache.outputs.cache-hit != 'true' && steps.vscode-fallback.outputs.used != 'true'
140+
continue-on-error: true
141+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
51142
with:
52143
path: |
53144
apps/vscode-e2e/.vscode-test/
@@ -59,12 +150,18 @@ jobs:
59150
if: github.event_name != 'pull_request' || steps.e2e-marker.outputs.cache-hit != 'true'
60151
run: xvfb-run -a pnpm --filter @roo-code/vscode-e2e test:ci:mock
61152

153+
- name: Explain skipped mocked E2E pass marker
154+
if: steps.e2e-marker.outputs.cache-hit != 'true' && steps.run-e2e.outcome == 'success' && steps.vscode-fallback.outputs.used == 'true'
155+
run: echo "Skipping mocked E2E pass marker because tests ran against a stale cached VS Code binary (VS Code download endpoints unreachable)."
156+
62157
- name: Write mocked E2E pass marker
63-
if: steps.e2e-marker.outputs.cache-hit != 'true' && steps.run-e2e.outcome == 'success'
158+
# Skip when the stale-binary fallback ran: a pass against an older VS Code
159+
# must not mint a marker for the intended-version source hash.
160+
if: steps.e2e-marker.outputs.cache-hit != 'true' && steps.run-e2e.outcome == 'success' && steps.vscode-fallback.outputs.used != 'true'
64161
run: mkdir -p .cache/e2e-pass && date -u > .cache/e2e-pass/passed
65162

66163
- name: Save mocked E2E pass marker
67-
if: steps.e2e-marker.outputs.cache-hit != 'true' && steps.run-e2e.outcome == 'success'
164+
if: steps.e2e-marker.outputs.cache-hit != 'true' && steps.run-e2e.outcome == 'success' && steps.vscode-fallback.outputs.used != 'true'
68165
continue-on-error: true
69166
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
70167
with:

‎AGENTS.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ This file provides guidance to agents when working with code in this repository.
55
- Settings View Pattern: When working on `SettingsView`, inputs must bind to the local `cachedState`, NOT the live `useExtensionState()`. The `cachedState` acts as a buffer for user edits, isolating them from the `ContextProxy` source-of-truth until the user explicitly clicks "Save". Wiring inputs directly to the live state causes race conditions.
66
- Changesets: Do NOT create `.changeset` files for each commit or code change. Changesets are managed separately by maintainers and should not be generated by agents during normal development.
77

8+
## ESLint Suppressions
9+
10+
`src/eslint-suppressions.json` tracks per-file counts of suppressed lint rules. Suppression counts must never increase. When touching a file, prefer reducing its count when the fix is local and low-risk; avoid broad unrelated cleanup.
11+
12+
When writing new code:
13+
14+
- Fix lint violations in the new code rather than suppressing them.
15+
- Avoid `as any`; use typed APIs directly (e.g. `RooCodeEventName.X` constants with typed `on()`/`listenerCount()`), or bracket notation (`obj["privateField"]`) to access private members. Prefer precise test doubles or `unknown` with a type guard over double assertions (`as unknown as T`); use double assertions only as a last resort, with a comment explaining why.
16+
- Avoid floating promises; add `void`, `await`, or `.catch()` as appropriate.
17+
- After editing a file, run `pnpm --dir src exec eslint --prune-suppressions --max-warnings=0 <relative-file>` and confirm the count for that file did not increase.
18+
- If a suppression is truly unavoidable (e.g. `vi.spyOn(Cls.prototype as any, "privateMethod")` where no typed alternative exists), document why in a comment next to the cast.
19+
820
## Test Placement Guidance
921

1022
Prefer the narrowest test layer that proves the behavior. This follows standard test-pyramid guidance: keep most coverage in fast, focused tests; add integration tests for cross-module contracts; reserve end-to-end tests for full workflow confidence.

‎CHANGELOG.md‎

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

3+
## [3.74.0]
4+
5+
### Minor Changes
6+
7+
- Add Fast priority mode for OpenAI Codex, persisting the selection and sending it with requests (PR #1063 by @WebMad)
8+
- Add higher reasoning-effort options for OpenAI-compatible models (#882 by @MINLEGO, PR #1051 by @ivanarifin)
9+
- Fetch router-provider model metadata before making context-management decisions (PR #1053 by @JamesRobert20)
10+
- Make Ollama model refreshes reliable, surface refresh errors, and use the base URL currently being edited (#877 by @navedmerchant, PR #878 by @navedmerchant)
11+
- Fix Amazon Bedrock DNS resolution when using a corporate proxy (#905 by @LouisClt, PR #906 by @LouisClt)
12+
- Add reasoning-parameter support to the Friendli provider (PR #886 by @Lee-Si-Yoon)
13+
- Keep Save-managed settings in the local editing buffer until the user explicitly saves (#862 by @JunyongParkDev, PR #872 by @JunyongParkDev)
14+
- Stop prompting about command output after short foreground commands have already completed (#1042 by @edelauna, PR #1043 by @app/zoomote)
15+
- Keep Architect mode plans workspace-relative so creating `./plans` does not fail on read-only filesystem roots (#965 by @juneleung, PR #968 by @app/zoomote)
16+
- Replace remaining user-facing Roo branding with Zoo branding (#551 by @proyectoauraorg, PR #971 by @rrewll)
17+
- Introduce a semaphore-based task scheduler for controlled task execution (#358 by @edelauna, PR #1031 by @edelauna)
18+
- Introduce `TaskRegistry` and migrate task-stack management to it (#367 by @edelauna, PR #1014 by @edelauna)
19+
- Complete the API provider migration to canonical provider identifiers (#955 by @WebMad, PR #1012 by @WebMad)
20+
- Use canonical provider identifiers for default model definitions (#954 by @WebMad, PR #991 by @WebMad)
21+
- Use canonical provider identifiers for API model caches (#957 by @WebMad, PR #1020 by @WebMad)
22+
- Use canonical provider identifiers in shared profile settings (#956 by @WebMad, PR #1019 by @WebMad)
23+
- Use canonical provider identifiers throughout extension-core flows (#958 by @WebMad, PR #1022 by @WebMad)
24+
- Use canonical provider identifiers throughout the webview (#959 by @WebMad, PR #1023 by @WebMad)
25+
- Finish the repository-wide canonical provider identifier audit (#960 by @WebMad, PR #1030 by @WebMad)
26+
- Centralize API service-tier types and helpers (PR #1040 by @WebMad)
27+
- Support the platform-package layout introduced by `@vscode/ripgrep` 1.18 and later (#1024 by @saravanaraj0078-lab, PR #1032 by @edelauna)
28+
- Update `shell-quote` to 1.9.0 to incorporate security fixes (PR #986 by @app/renovate)
29+
- Update the development and build toolchain to Node.js 22.23.1 LTS (PR #743 by @app/renovate)
30+
- Add a Playwright visual-regression harness for webview components (#515 by @edelauna, PR #526 by @edelauna)
31+
- Enforce the no-floating-promises lint ratchet in `core/webview` (#949 by @edelauna, PR #950 by @morgan-coded)
32+
- Harden the end-to-end workflow against transient VS Code binary download failures (#1044 by @edelauna, PR #1045 by @app/zoomote)
33+
- Isolate mocked subtask fixtures to prevent flaky parent-resume tests (#1001 by @app/zoomote, PR #1002 by @app/zoomote)
34+
- Prevent cancelled delayed mock streams from leaking between subtask end-to-end tests (PR #1074 by @app/zoomote)
35+
- Merge the v3.72.0 release preparation branch into `main` (PR #1013 by @navedmerchant)
36+
337
## [3.72.0]
438

539
### Minor Changes

‎README.md‎

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,28 @@
3535
You can find a quick guide for migrating from Roo Code to Zoo Code in the [Roo→Zoo migration guide](https://docs.zoocode.dev/roo-to-zoo-migration). We plan to try and help users as they transition over, we have our [Reddit](https://www.reddit.com/r/ZooCode) and [Discord](https://discord.gg/VxfP4Vx3gX)
3636
for this exact support, so if you are having problems or if you have question, jump on and ask.
3737

38-
## What's New in v3.72.0
38+
## What's New in v3.74.0
3939

40-
- **Moonshot and Kimi Code providers** — discover Moonshot models dynamically or sign in to Kimi Code through its OAuth device flow.
41-
- **Latest model support** — use Claude Opus 5 across providers, plus Kimi K3, Gemini 3.6 Flash, and MiniMax-M3.
42-
- **Improved subtask workflows** — abandon interrupted subtasks cleanly, with safer task-history invalidation and better resume coverage.
43-
- **Expanded codebase indexing** — index Dart and plain-text files.
44-
- **Provider reliability** — fixes for GPT-5.6 Luna with ChatGPT OAuth, LiteLLM reasoning content, and DeepSeek V4 image input.
45-
- **Smoother setup and settings** — improved Zoo Gateway sign-in and mode-switch behavior.
46-
- API, provider-type, dependency, localization, and CI improvements.
40+
**Zoo Gateway is live!**
41+
42+
The gateway is a single endpoint for all providers, with one balance and per-request spending/usage breakdown.
43+
44+
**Setup:**
45+
46+
- Add credits: https://www.zoocode.dev/dashboard/credits
47+
- Sign in from the extension.
48+
- In the settings, select Zoo Gateway as the provider when creating profiles for different models
49+
50+
Usage and charges can be viewed in the [dashboard](https://www.zoocode.dev/dashboard).
51+
52+
Models: https://www.zoocode.dev/dashboard/models
53+
54+
- **More OpenAI controls** — use Fast priority mode with OpenAI Codex and choose higher reasoning effort for OpenAI-compatible models.
55+
- **More reliable providers and models** — improved router metadata handling, Ollama model refresh, Bedrock proxy support, and Friendli reasoning controls.
56+
- **Smoother settings and developer workflows** — settings now preserve unsaved edits, short terminal commands complete cleanly, architect plans use workspace-relative paths, and remaining user-facing Roo branding is updated to Zoo.
57+
- **Stronger task foundations** — new task registry and semaphore-based scheduler primitives prepare Zoo Code for safer task coordination.
58+
- **Consistent provider architecture** — provider identifiers and service-tier primitives are now centralized across the API, core, shared types, and webview.
59+
- Security, dependency, lint, visual-regression, and end-to-end test improvements.
4760

4861
<details>
4962
<summary>🌐 Available languages</summary>
@@ -66,6 +79,7 @@ for this exact support, so if you are having problems or if you have question, j
6679
- [Tiếng Việt](locales/vi/README.md)
6780
- [简体中文](locales/zh-CN/README.md)
6881
- [繁體中文](locales/zh-TW/README.md)
82+
6983
</details>
7084

7185
---

‎apps/vscode-e2e/AGENTS.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ Example:
121121
122122
The `model` field can be added to either match when a test targets a specific model.
123123
124+
## Delaying a fixture response (simulating a slow or hung provider)
125+
126+
Use `streamingProfile: { ttft: <ms> }` on a fixture, not a flat `latency: <ms>`, when a test needs
127+
to simulate a slow or hung provider (e.g. to cancel an in-flight request mid-stream). `ttft` delays
128+
only the first SSE chunk, so the pending window is exactly the configured value. Flat `latency`
129+
delays _every_ chunk, and aimock never observes client disconnects — after a test cancels the
130+
request, a flat-latency stream keeps flushing chunks server-side for `chunks × latency` before
131+
reaching the dead socket, which can interleave with the next test's request against the same mock
132+
server. See `SUBTASK_API_HANG_RESPONSE_LATENCY_MS` in `fixtures/subtasks.ts` for an example,
133+
including the bounded post-test drain the calling suite uses to wait out that window.
134+
124135
## 404 errors in logs are expected
125136

126137
Background API calls from the extension (usage collection, initialization) hit aimock with no matching fixture and return 404. These do **not** affect test results — the tests still pass. You'll see `[OpenRouter] API error: { message: '404 No fixture matched' }` in the output; this is normal.

0 commit comments

Comments
 (0)