8000 Fix cwd tracking in CMD panes by strayge · Pull Request #429 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

Fix cwd tracking in CMD panes - #429

Merged
amirlehmam merged 1 commit into
amirlehmam:masterfrom
strayge:fix/cmd-cwd-tracking
Nov 3, 2026
Merged

amirlehmam merged 1 commit into
amirlehmam:masterfrom
strayge:fix/cmd-cwd-tracking

Conversation

@strayge
@strayge strayge commented Nov 2, 2026 •
Copy link
Copy Markdown
Contributor

Problem

Changing directories in CMD leaves wmux’s tracked cwd stale, so session restoration can reopen the wrong directory.
CMD’s integration already emits OSC 9;9 cwd reports, but the renderer ignores them.

Fix for #427

Changes

  • Adapt OSC 9;9 reports to the existing OSC 7 validation and cwd-update pipeline.
  • URL-encode literal paths to preserve percent signs, spaces, semicolons, and Unicode.
  • Add regression coverage for cwd propagation, unsafe paths, notifications, and progress dispatch.

Testing

  • Full suite: 6,398 tests passed, 10 skipped.
  • Typecheck and targeted ESLint passed.
  • Manually verified cwd tracking and session restoration in CMD.

@strayge
strayge marked this pull request as ready for review November 2, 2026 15:08
@amirlehmam
amirlehmam merged commit 2e001a7 into amirlehmam:master Nov 3, 2026
@amirlehmam
Copy link
Copy Markdown
Owner

Thanks! Merged, and it ships in 2.55.0.

@strayge
strayge deleted the fix/cmd-cwd-tracking branch November 8, 2026 18:03
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.

2 participants

0