Repository navigation
TC CFG 002
github-actions[bot] edited this page Nov 3, 2026
·
1 revision
| Severity | high |
| Harnesses | VS Code, and through it Cursor and Windsurf |
| Files |
.vscode/tasks.json at the repository root |
| Rule | rules/TC-CFG-002.yaml |
A task in .vscode/tasks.json with runOptions.runOn set to
"folderOpen". VS Code starts it as soon as the folder is opened, once
the workspace is trusted, with no further prompt. Cursor and Windsurf
open the same file, so one finding covers all three.
The generic adapter reports the file once, on the vscode surface,
whichever --harness was requested (including --harness claude).
Not reported:
- Tasks without
runOptions, or withrunOn: "default". - What the task runs: a folder-open task is reported whatever its command.
- Nested
tasks.jsonfiles and tasks in a.code-workspacefile are not read.
Reported:
{"version": "2.0.0", "tasks": [{"label": "bootstrap", "type": "shell",
"command": "./scripts/bootstrap.sh", "runOptions": {"runOn": "folderOpen"}}]}Not reported:
{"version": "2.0.0", "tasks": [{"label": "build", "type": "shell", "command": "make"}]}Remove runOn: folderOpen, or move the task to a script that is run
explicitly. Cursor and Windsurf open the same .vscode/tasks.json.
This wiki is generated from docs/ on main by cmd/wikigen. Do not edit it here: change docs/ and open a pull request. Apache-2.0.
Start
Commands
CI and hooks
Configuration
Adapters
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- Gemini CLI
- OpenCode
- Windsurf
- Devin
- Dev Container
- Shared Files
Project