diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2b00c70..60ca054 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,24 +2,33 @@ "version": "2.0.0", "tasks": [ { - "label": "Update Dependencies", + "label": "start-agents", "type": "shell", - "command": "act workflow_dispatch -W .github/workflows/update_dependencies.yaml --secret GITHUB_TOKEN=$(gh auth token)", + // 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}" }, - "problemMatcher": [], - "group": "test" - }, - { - "label": "Update Dependencies (Dry Run)", - "type": "shell", - "command": "act workflow_dispatch -W .github/workflows/update_dependencies.yaml --secret GITHUB_TOKEN=$(gh auth token) -n", - "options": { - "cwd": "${workspaceFolder}" + "runOptions": { + "runOn": "folderOpen" + }, + "presentation": { + "reveal": "always", + "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": [], - "group": "test" + "problemMatcher": [] } ] }