diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d14360c..60ca054 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,55 +2,33 @@ "version": "2.0.0", "tasks": [ { - "label": "Run Integration Workflow with act", + "label": "start-agents", "type": "shell", - "command": "act", - "args": ["push", "-W", ".github/workflows/integration.yaml"], - "problemMatcher": [], - "group": { - "kind": "test", - "isDefault": true + // Open the tmux session (orchestrator / implementer / codex) as soon as the + // folder opens. VS Code has no per-task property for terminal location, so the + // editor-area placement comes from "terminal.integrated.defaultLocation" in + // settings.json (microsoft/vscode#212070). + // + // Guarded because this file is copied into every project: repositories without + // .devcontainer/start-agents.sh must not get a failing task on open. + "command": "[ -x .devcontainer/start-agents.sh ] && exec .devcontainer/start-agents.sh || true", + "options": { + "cwd": "${workspaceFolder}" + }, + "runOptions": { + "runOn": "folderOpen" }, "presentation": { "reveal": "always", - "panel": "new" - } - }, - { - "label": "Run Integration Workflow (commitlint job)", - "type": "shell", - "command": "act", - "args": [ - "push", - "-W", - ".github/workflows/integration.yaml", - "-j", - "commitlint" - ], - "problemMatcher": [], - "group": "test", - "presentation": { - "reveal": "always", - "panel": "new" - } - }, - { - "label": "Run Integration Workflow (check job)", - "type": "shell", - "command": "act", - "args": [ - "push", - "-W", - ".github/workflows/integration.yaml", - "-j", - "check" - ], - "problemMatcher": [], - "group": "test", - "presentation": { - "reveal": "always", - "panel": "new" - } + "panel": "dedicated", + // This terminal owns tmux: never auto-close it, and do not echo the command. + "echo": false, + "close": false, + "clear": true, + // Show it without stealing focus from the editor. + "focus": false + }, + "problemMatcher": [] } ] }