Skip to content

Commit f89c1c6

Browse files
committed
Merge commit '0d937c050810ebc305b34368bf6d6ae8c1f89966' into feat/version-token-s1
2 parents 2a42f88 + 0d937c0 commit f89c1c6

367 files changed

Lines changed: 15917 additions & 2545 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: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
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+
chat:
9+
allow_non_org_members: false
10+
11+
knowledge_base:
12+
web_search:
13+
enabled: true
14+
15+
reviews:
16+
profile: assertive
17+
request_changes_workflow: true
18+
high_level_summary: true
19+
high_level_summary_in_walkthrough: true
20+
review_status: true
21+
review_details: true
22+
collapse_walkthrough: true
23+
changed_files_summary: true
24+
poem: false
25+
26+
auto_review:
27+
enabled: false
28+
drafts: false
29+
auto_incremental_review: true
30+
auto_pause_after_reviewed_commits: 0
31+
labels:
32+
- "coderabbit-review-active"
33+
34+
path_filters:
35+
- "!**/node_modules/**"
36+
- "!**/dist/**"
37+
- "!**/out/**"
38+
- "!**/coverage/**"
39+
- "!**/.turbo/**"
40+
- "!apps/vscode-e2e/.vscode-test/**"
41+
- "!bin/*.vsix"
42+
- "!webview-ui/**/__screenshots__/**"
43+
44+
path_instructions:
45+
- path: "**/*"
46+
instructions: >-
47+
Act as an adversarial second-opinion reviewer. Verify PR claims against implementation and
48+
contracts. Trace changed inputs through normal, boundary, error, cancellation, retry, and
49+
default paths and their consumers. Seek plausible counterexamples and regressions from removed
50+
safeguards. Identify assumptions in changed code that depend on facts outside the diff. First
51+
verify repository conventions, tests, and related implementations. When a potential finding
52+
depends on external behavior, use web search and prefer official documentation, specifications,
53+
or upstream repositories. Report only concrete, actionable conflicts or failure modes, citing
54+
the relevant repository location or external source. Prioritize correctness, security, data loss,
55+
lifecycle, and test gaps. Do not report generic best practices, unsupported concerns, speculative
56+
style comments, or unrelated refactors. Search for existing helpers before suggesting abstractions.
57+
58+
- path: "**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}"
59+
instructions: >-
60+
Check strict typing and exhaustive behavior across normal, boundary, error,
61+
cancellation, retry, and compatibility paths. Verify promises and errors are handled,
62+
existing helpers are reused, and new code introduces no `any`, unjustified double
63+
assertions, floating promises, duplicated helpers, or increased lint suppressions.
64+
65+
- path: "{**/*.{test,spec}.{ts,tsx,js,jsx},**/__tests__/**}"
66+
instructions: >-
67+
Require regression coverage at the lowest valid harness with behavior-focused
68+
assertions, including relevant negative, error, false/unset, and boundary cases.
69+
Check cleanup and deterministic async behavior and prefer shared typed test helpers.
70+
Visible webview changes require a durable Playwright component snapshot; behavior-only
71+
changes do not.
72+
Reject weak assertions on values that could take multiple forms: .toBeDefined() or
73+
.toHaveBeenCalled() alone are not sufficient when the actual type, value, or object
74+
identity is verifiable. For listener registration and removal, assert the same function
75+
reference was added and removed (not expect.any(Function)).
76+
Flag tests that assert in-flight behavior only after the call completes — these cannot
77+
prove the behavior fires during execution. Check that describe block names match the
78+
actual subjects of the tests they contain.
79+
80+
- path: "apps/vscode-e2e/**"
81+
instructions: >-
82+
Reserve end-to-end coverage for behavior that requires the real VS Code host, workspace
83+
APIs, extension activation, webview messaging, file watchers, or a full workflow. Keep
84+
detailed protocol, parsing, storage, retry, and edge cases at lower test layers.
85+
86+
- path: "{packages/types/src/**,webview-ui/src/components/settings/**,src/core/config/**,src/core/webview/**}"
87+
instructions: >-
88+
For persisted settings, verify the complete schema/storage/runtime/webview round trip,
89+
shared default semantics, and focused true plus false/unset tests. SettingsView controls
90+
must read and update local `cachedState`, include the value in the explicit save payload,
91+
and receive the persisted value back from extension state.
92+
93+
- path: "src/**"
94+
instructions: >-
95+
Verify extension/webview contracts, cancellation and error propagation, VS Code
96+
lifecycle correctness, and behavior under retries and partial failure. Check listeners,
97+
resources, and providers are disposed without stale state or duplicate work.
98+
99+
- path: "webview-ui/**"
100+
instructions: >-
101+
Check React state and effect dependencies, cleanup, accessibility, i18n, and light/dark
102+
theme behavior. New markup should use Tailwind; add VS Code CSS variables to
103+
`src/index.css` before Tailwind use. Use Vitest for behavior and Playwright component
104+
snapshots only for durable visible changes.
105+
106+
- path: "{src/api/**,src/core/prompts/**,src/core/tools/**,src/services/mcp/**,src/services/destructive-command-guard/**}"
107+
instructions: >-
108+
Treat model, provider, MCP, path, command, and tool data as untrusted. Check approval and
109+
allowlist bypasses, injection and traversal risks, secrets/PII exposure in logs, abort and
110+
stream behavior, retries, provider compatibility, and enforcement at execution time—not
111+
only at presentation or planning time.
112+
113+
- 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}/**}"
114+
instructions: >-
115+
Check persistence and lifecycle invariants: awaited atomic writes, rollback or explicit
116+
partial-failure behavior, cross-window state consistency, stale listeners/watchers,
117+
cancellation, idempotency, and safe restart/resume without lost or duplicated state.
118+
119+
- path: ".github/**"
120+
instructions: >-
121+
Require full commit SHA pins, least-privilege permissions, safe expression and shell
122+
interpolation, and trusted metadata handling. Privileged workflows must never check out,
123+
execute, install from, or otherwise trust a fork PR head.
124+
125+
- path: "{AGENTS.md,**/AGENTS.md,CONTRIBUTING.md,.changeset/**,CHANGELOG.md,src/CHANGELOG.md}"
126+
instructions: >-
127+
Enforce repository policy: routine PRs must not add changesets or edit changelogs except
128+
during release preparation. Verify documentation describes real behavior and contracts,
129+
and deprioritize prose-only nits that do not affect correctness or usability.
130+
131+
pre_merge_checks:
132+
override_requested_reviewers_only: true
133+
custom_checks:
134+
- name: Regression evidence
135+
mode: warning
136+
instructions: >-
137+
Fail only when a concrete changed behavior lacks focused coverage at the lowest valid
138+
test layer, tests merely mirror implementation, an affected error/negative/unset branch
139+
is omitted, or a durable visible UI change lacks its required Playwright component
140+
snapshot. Do not demand tests for unchanged behavior, mechanical configuration, or every
141+
branch without a plausible regression scenario. Cite the changed behavior and missing
142+
evidence.
143+
- name: Trust and persistence invariants
144+
mode: error
145+
instructions: >-
146+
Fail only for a concrete changed path that leaks secrets or PII, trusts or executes
147+
unvalidated input, bypasses approval or allowlist controls, can lose persisted state due
148+
to a missing await, non-atomic write, or omitted default propagation, or leaks lifecycle
149+
resources. Cite the path and a plausible triggering scenario; pass when no such changed
150+
path exists.
151+
152+
tools:
153+
eslint:
154+
enabled: true
155+
actionlint:
156+
enabled: true
157+
shellcheck:
158+
enabled: true
159+
gitleaks:
160+
enabled: true
161+
semgrep:
162+
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ jobs:
9090
run: pnpm lint
9191
- name: Check types
9292
run: pnpm check-types
93+
- name: Model-check concurrent task lifecycle
94+
run: pnpm lifecycle:model-check
9395

9496
build-vsix:
9597
name: Build test VSIX

0 commit comments

Comments
 (0)