Repository navigation
Conversation
Correct the existing terminal assertion to match the CLI definition. This prerequisite was reproduced on the unchanged baseline while validating F-0199.
Keep edited, untracked and uniquely committed work by default. Route explicit discard requests through deletion permissions and deny them in restricted clients. Remove clean session worktrees after shutdown, retain recovery paths for preserved work, and cover real Git and built terminal lifecycles.
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.
Exiting a session worktree could delete uncommitted and untracked files without deletion approval. Sessions launched with
--worktreealso left their directories behind after a clean exit.F-0199 preserves worktrees containing edits, untracked files or commits missing from the original branch, and reports their path and branch. Explicit
discard_changes: truefollows deletion permissions and is denied in restricted clients;keep: truetakes precedence. Clean worktrees and branches created for the session are removed after shutdown across interactive, command, patch, RPC and ACP lifecycles. Pre-existing branches remain. Tmux and Zit behavior stays unchanged.Validation:
AUTOHAND_TEST_WORKERS=1 bun run proof: lint, type checking, build and all 12,721 unit tests passed. The terminal phase passed 422 tests; two package-install cases failed because this isolated checkout lacked the ignored Zit bundle. Both failures reproduced on the untouched baseline and passed after preparing its verified local bundle. Two terminal cases were skipped.origin/mainc20c96e;git range-diffconfirms both commits are unchanged. Final lint, type checking, production build, 397 focused checks and all 63 selected built-terminal checks passed. Terminal coverage includes seven worktree lifecycle cases, resume/help, packaged Zit, and the updated theme/banner flows.A separate prerequisite commit corrects the existing resume help assertion from
[id]to the already-declared[reference]; that mismatch also reproduced on untouched main. No CLI flags, dependencies, version or release configuration changed. F-0159 remains separate.