Repository navigation
fix: quote manual worktree navigation hints - #191
Merged
Merged
Conversation
andyrewlee
force-pushed
the
advisor/012-preserve-worktree-path-bytes
branch
from
September 26, 2026 12:11
1e470a4 to
449656c
Compare
andyrewlee
force-pushed
the
advisor/013-quote-manual-navigation-hints
branch
from
September 26, 2026 12:11
9d1e503 to
142f4fb
Compare
andyrewlee
force-pushed
the
advisor/012-preserve-worktree-path-bytes
branch
from
September 27, 2026 02:22
449656c to
5a8687e
Compare
andyrewlee
changed the base branch from
advisor/012-preserve-worktree-path-bytes
to
main
September 27, 2026 02:42
The no-shim teleport hint printed 'run: cd <path>' with the raw path — spaces pasted wrong, and metacharacters like ; or $(...) executed as shell syntax when pasted. Emit 'run: cd -- '<path>'' with POSIX single-quoting (the close-escape- reopen idiom for embedded apostrophes), shared by the raw and terminal-sanitized hint variants so they cannot drift. Paths containing terminal control bytes get no executable suggestion — the escaped spelling would not name the directory — only a pointer at the shell integration or the --json worktree field. JSON path fields keep exact bytes.
andyrewlee
force-pushed
the
advisor/013-quote-manual-navigation-hints
branch
from
September 27, 2026 02:42
142f4fb to
8c0e350
Compare
NTFS forbids ':' in directory names, so the injection-payload dirs can't embed an absolute sentinel path; name PWNED relatively and run the probe with Dir=base so a broken quote still lands touch where Stat looks. MSYS bash prints /c/-style paths from `pwd -P`; use `pwd -W` on Windows and compare slash-normalized case-insensitively.
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
cdhints are shell-quoted (cd -- '<path>') and suppressed entirely for control-character paths; raw JSON and CD directives are unchanged.Stacked on
advisor/012-preserve-worktree-path-bytes. Part of the advisor/NNN plan series; merge in stack order.Test plan
make ci) passed on this commit or an identical code tree (docs/design-only branches ran their validators + focused suites instead)