Repository navigation
Protect uncommitted work, keep lanes' Warp files apart, and confirm template changes - #6
Merged
Merged
Conversation
…emplate changes - purge keeps every lane that holds uncommitted work (and lists it) unless --force; remove lists the files it would discard before asking - lane age comes from git (creation, newest commit, files git reports changed) instead of a walk of every file that followed symlinks and fell back to the folder's creation time on any error, which made live lanes look old to purge - Warp files are named lanes~<key>~<n>-<title>: removing lane 1 no longer deletes lane 1-fix's tabs, and prune no longer reads a live lane's tab titled "Step-2-Debug" as a leftover. Files in the old lanes-* naming are cleared by prune and rewritten on next open - a lane's key is always <base>-<lane>, so adding a base no longer renames every lane's files - commands update shows each added and removed line and new plugin sources, and applies them only after you confirm (or --yes); installing a plugin a template names defaults to no Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
anvk
added a commit
that referenced
this pull request
Oct 20, 2026
…agent-specific code (#7) Stacked on #6; merge that first. ## Summary - **Placeholders** are quoted to fit their place: bare, inside `"…"` or inside `'…'`. `echo "{path}"` used to print literal quote characters for a folder with spaces. - **Base update:** creating a lane fetches only the branch the base's `ref` names (not all of origin), and moves the base with `git merge --ff-only` instead of `git rebase --autostash`. With `--force` and local commits, the base is left as it is. - **Layering:** `core/lifecycle.ts` no longer asks questions; the setup prompt and typed confirmations moved to `cli/flows.ts`. - **No agent special-casing:** the Warp plugin no longer reads `~/.claude` to drop `--continue`. The default template uses `claude --continue || claude`. - **npm ci** in the installer, self-update, and plugin installs that have a lockfile, so an install never rewrites a lockfile and blocks later updates. New test: each `package.json` matches its lockfile. ## Testing - 50 CLI + 5 Warp tests pass, including placeholders run through a real `sh` with spaces, quotes and `$` in the path - End to end: a teammate's commit on `origin/main` was fetched, the base fast-forwarded to it, and the new lane opened at it - A fresh clone installs with `npm ci`, builds, and stays clean 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
anvk
added a commit
that referenced
this pull request
Oct 20, 2026
…ormats (#8) Stacked on #7 (which is stacked on #6); merge those first. ## Summary **Utils** - `core/paths.ts`: `~/.lanes`, the plugin folder and record, the default install dir, and `~` expansion (which no longer turns `~other/x` into a folder in your own home). Used by update, plugins and template loading. - `lanesInWorkspace()` replaces three copies of "every lane folder with its path and base". - The `init` wizard's line editor moved into `ui/tui.ts` with the rest of the raw-mode code. **Removed** - Conversions for config formats lanes never had (`warpTabs`, `warpTabsSource`, `warpTabGroup`, `setupCommand`/`teardownCommand` tabs, `baseFolder`), about 100 lines, and with them the core config's knowledge of the Warp plugin's source. - The `tabs` alias for `lanes commands`. - `commandSucceeds` (unused) and needless exports. ## Testing - 47 CLI tests pass (the removed formats' tests went with them; document parsing now checks that stray `warpTabs` keys are ignored) - End to end: `lanes init` with Esc goes back one question; open/list/remove work, with the stable key `app-1` and `"{path}"` intact 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
--force; remove lists the files it would discard before asking.ELOOP) and fell back to the folder's creation time on any error, which made live lanes look old topurge.lanes~<key>~<n>-<title>. Before: removing lane1deleted lane1-fix's tab file, andpruneread live lane7's "Step-2-Debug" tab as a leftover. Oldlanes-*files are cleared bypruneand rewritten on next open.<base>-<lane>, so adding a base no longer renames every lane's files.--yes). Installing a plugin a template names now defaults to no.Testing
curl … | shline was shown and not applied until--yeswarp://links unchanged (~is not URL-encoded), but please open a lane once to confirm🤖 Generated with Claude Code