Skip to content

chore(runner): commit a Bun debug profile for the campaign runner - #73

Open
hieplam wants to merge 1 commit into
masterfrom
chore/runner-debug-profile
Open

hieplam wants to merge 1 commit into
masterfrom
chore/runner-debug-profile

Conversation

@hieplam

@hieplam hieplam commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Description

Adds a committed Bun debug profile for the campaign runner: VS Code launch configs plus an offline --home fixture, so the loop can be stepped through without a real repo, a lock, or an Agent SDK session.

Design choices

  • .debug/home/campaign-state.json stages C1 with branch: nullderiveCardPhase short-circuits that to fresh before any gh/git call, so the sandbox dry-run is fully offline.
  • launch.json is duplicated at the repo root and under scripts/runner/: VS Code reads it only from the workspace root, and both folders get opened as one.
  • Bun needs oven.bun-vscode and a window reload — an unregistered debug type fails as an auto-dismissing toast, which reads as "nothing happened". Documented in the README.

Verification

$ bun run.ts --repo <repo> --model sonnet --home "$PWD/.debug/home" --dry-run
{ "cardId": "C1", "phase": { "kind": "fresh" } }   exit=0
$ bun test
205 pass / 0 fail / Ran 205 tests across 10 files

🤖 Generated with Claude Code

Add VS Code launch configs plus a committed, offline `--home` fixture so the
runner can be stepped through without a real repo, a lock, or an Agent SDK
session. `.debug/home/campaign-state.json` stages C1 with `branch: null`, which
`deriveCardPhase` short-circuits to `fresh` before any gh/git call.

launch.json is duplicated at the repo root and under scripts/runner/ because VS
Code reads it only from the workspace root and both folders get opened as one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant