Skip to content

Gate the Pi front door bootstrap on resume - #777

Merged
clkao merged 2 commits into
spacedock-ensign/pi-spawn-skill-name-resolutionfrom
spacedock-ensign/gate-pi-frontdoor-bootstrap-on-resume
Aug 28, 2026
Merged

Gate the Pi front door bootstrap on resume#777
clkao merged 2 commits into
spacedock-ensign/pi-spawn-skill-name-resolutionfrom
spacedock-ensign/gate-pi-frontdoor-bootstrap-on-resume

Conversation

@clkao

@clkao clkao commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

spacedock pi --resume re-loaded the FO contract as a fresh start because the Pi front door appends piBootstrapPrompt unconditionally — no containsResume gate, unlike Claude/Codex. This adds the gate, mirroring the shared containsResume helper.

Stacked on #776 (Pi firstActionBlock loads the ensign skill); merge #776 first.

What changed

  • internal/cli/pi.go: wrapped the launchPrompt(piBootstrapPrompt, fd) append in if !containsResume(fd.passthrough), reusing the shared containsResume helper at frontdoor.go:553.
  • internal/cli/pi_frontdoor_test.go: TestPiResumeSuppressesBootstrapPrompt — table-driven, asserts each resume token suppresses the prompt and non-resume keeps it.

Evidence

  • go test ./internal/cli/ -run TestPiResumeSuppressesBootstrapPrompt -v — 7/7 subtests PASS.
  • gofmt/go vet/-race clean. TestVersionAmbiguousMarkersExitZero pre-existing on main.

4av

@clkao
clkao changed the base branch from spacedock-ensign/pi-spawn-skill-name-resolution to main August 27, 2026 22:14
@clkao
clkao changed the base branch from main to spacedock-ensign/pi-spawn-skill-name-resolution August 27, 2026 22:14
@clkao
clkao force-pushed the spacedock-ensign/gate-pi-frontdoor-bootstrap-on-resume branch from 7b2f464 to de22152 Compare August 27, 2026 22:31
@clkao
clkao merged commit 6f1c2cf into main Aug 28, 2026
10 of 12 checks passed
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