Repository navigation
feat(bin): register Firstmate projects with Paseo - #7
Merged
Merged
Conversation
…sh CLI now writes a valid session record for the board path, and `render_board` points the adapter to that fixture-local store. Verified with the renderer test under an isolated `HOME` (all cases passed) and `git diff --check`
…so early matches cannot close the producer pipe and leak a Broken pipe diagnostic. The focused quota chooser test and git diff check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Queue the automatic Paseo project that is created when adding a firstmate project, but only if Paseo is the selected backend. Also it should be possible to ask firstmate to create a Paseo project for an existing project registered locally in firstmate's projects directory.
Context: the Paseo runtime backend (merged in PR #6) never creates Paseo projects itself. A fresh task must match exactly one registered Paseo project by the physical path of its source checkout, and it refuses when that match is absent or ambiguous. Today someone has to register each project's folder in Paseo manually.
What Changed
Adds an idempotent helper to register a Firstmate project’s checkout with Paseo, reusing a matching project and refusing ambiguous matches.
Supports explicit registration for existing projects, and limits automatic registration after add or create to when Paseo is the selected runtime backend.
Removing a Firstmate project does not remove its Paseo project; this can be handled in a separate follow-up.
Risk Assessment
✅ Low: The change is bounded to Paseo project registration, its backend-selection guard, and focused documentation and coverage; no material defect or unnecessary behavior was found.
Testing
The focused scenario script and live helper runs covered backend-conditional creation, explicit registration, idempotency, ambiguity refusal, and backslash paths; the transcript records CLI output and persisted state. The change has no rendered UI surface, so CLI evidence is appropriate.
Evidence: Paseo project registration transcript
Source: Paseo project registration transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
bin/backends/paseo.sh:117-jq @tsvescapes backslashes, but thereadatbin/backends/paseo.sh:106-114does not decode them. For a valid checkout path such asprojects/foo\bar, lookup skips the existing match and returns “missing” here;bin/fm-paseo-project.sh:89then creates a duplicate, and its post-create check atbin/fm-paseo-project.sh:108also misses the match and errors. Retrying can create more duplicates. Preserve path fields losslessly or refuse to create when a match cannot be represented.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
TMPDIR=.tmp-paseo-validation bash tests/fm-paseo-project.test.shRanbin/fm-paseo-project.sh --if-selected first-addedwith Paseo and tmux selected in isolated configuration.Ranbin/fm-paseo-project.sh existingtwice under tmux and checked persisted project state.Exercised ambiguous-match refusal and lossless matching of a backslash path; captured the CLI transcript.Confirmed the disposable worktree setup was removed.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.