You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 220ee89
Browse filesBrowse the repository at this point in the historyBrowse files
Bertan Ari
committed
fix(vscode-lm): address review feedback on leaked tool-call recovery
- dispose the probe CancellationTokenSource in a finally block
Copy file name to clipboardExpand all lines: .roo/skills/probe-vscode-lm-api/SKILL.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,17 @@ description: How to empirically probe the VS Code Language Model API (`vscode.lm
8
8
## When to Use This Skill
9
9
10
10
- A claim is being made about what a Copilot-backed model _actually_ emits over `vscode.lm` (tool-call parts vs. text), and it needs evidence rather than inference.
11
-
- Changing [`extractLeakedToolCalls()`](src/api/providers/vscode-lm.ts) or its guards, and you need a false-positive corpus.
11
+
- Changing [`extractLeakedToolCalls()`](../../../src/api/providers/vscode-lm.ts) or its guards, and you need a false-positive corpus.
12
12
- Any question that can only be answered by real `model.sendRequest()` traffic — the mocked unit tests cannot answer it.
13
13
14
14
## When NOT to Use This Skill
15
15
16
-
- Ordinary provider work covered by [`src/api/providers/__tests__/vscode-lm.spec.ts`](src/api/providers/__tests__/vscode-lm.spec.ts). Live probing is slow and burns Copilot quota.
16
+
- Ordinary provider work covered by [`src/api/providers/__tests__/vscode-lm.spec.ts`](../../../src/api/providers/__tests__/vscode-lm.spec.ts). Live probing is slow and burns Copilot quota.
17
17
- Anything about non-`vscode-lm` providers. Anthropic-API behavior does not transfer.
18
18
19
19
## Running the Probe
20
20
21
-
Scripts live in [`scripts/`](.roo/skills/probe-vscode-lm-api/scripts/) next to this file.
21
+
Scripts live in [`scripts/`](scripts/) next to this file.
22
22
23
23
1. Copy `scripts/package.json` and `scripts/extension.js` into a scratch directory, e.g. `<repo>\.tmp\lmprobe\`. No build, no `npm install` — it is plain CommonJS against the `vscode` module.
24
24
2. Adjust `OUT_DIR` at the top of `extension.js` to the transcript output directory.
@@ -65,7 +65,7 @@ Never `npx vitest` — it resolves a wrong hoisted 3.2.4 instead of the pinned 4
65
65
66
66
## Measured Findings
67
67
68
-
Sample: 210 live requests, 7 Copilot Claude models x 6 scenarios x 5 repeats, 0 errors. Raw evidence in [`transcripts/`](.roo/skills/probe-vscode-lm-api/transcripts/).
68
+
Sample: 210 live requests, 7 Copilot Claude models x 6 scenarios x 5 repeats, 0 errors. Raw evidence in [`transcripts/`](transcripts/).
`scripts/probe-false-positives.spec.ts` replays [`extractLeakedToolCalls()`](src/api/providers/vscode-lm.ts) over a transcript directory and writes a `RECOVERED`/`passthrough` report. Drop it into `src/api/providers/__tests__/`, point `TRANSCRIPTS` at the transcript directory, then:
93
+
[`scripts/probe-false-positives.spec.ts`](scripts/probe-false-positives.spec.ts) replays [`extractLeakedToolCalls()`](../../../src/api/providers/vscode-lm.ts) over a transcript directory and writes a `RECOVERED`/`passthrough` report. Drop it into `src/api/providers/__tests__/`, point `TRANSCRIPTS` at the transcript directory, then:
94
94
95
95
```
96
96
pnpm --dir src exec vitest run api/providers/__tests__/probe-false-positives.spec.ts
0 commit comments