Skip to content

fix(tee): quote recovery hint paths with spaces#2325

Open
fengjikui wants to merge 1 commit into
rtk-ai:developfrom
fengjikui:fix/escaped-space-tee-path
Open

fix(tee): quote recovery hint paths with spaces#2325
fengjikui wants to merge 1 commit into
rtk-ai:developfrom
fengjikui:fix/escaped-space-tee-path

Conversation

@fengjikui

Copy link
Copy Markdown

Summary

Fixes #1858. RTK recovery hints can point at macOS tee files under ~/Library/Application Support/.... When that path is copied into a shell command, agents tend to use backslash-escaped whitespace (Application\ Support), which makes Claude Code ask for permission again.

This keeps simple hint paths unchanged, but renders paths that need shell quoting as copy-paste-safe double-quoted paths. For home-relative paths with spaces, it uses "$HOME/..." instead of quoting ~, because ~ does not expand inside quotes.

Related to #2187, but this keeps the compact ~/... display for simple paths and directly quotes paths with spaces instead of only rendering an absolute path.

Validation

  • cargo fmt --check
  • cargo test core::tee::tests
  • cargo clippy --all-targets -- -D warnings
  • cargo test

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.

ClaudeCode keeps asking for permissions to read rtk logs in ~/Library/Application Support/ because of backslash in path

1 participant