Skip to content

Conversation

@TheLarkInn
Copy link
Member

@TheLarkInn TheLarkInn commented Feb 3, 2026

Fancy terminals like oh-my-zsh or oh-my-posh will add extra characters onto terminal output. Which isn't friendly with runWorkspaceCommandAsync

This PR uses the same functionality as debug-cert-extension.

Example of the bug (see the URI in terminal)
image

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where fancy terminal prompts (like oh-my-zsh or oh-my-posh) add extra characters to terminal output, breaking the parsing of the temporary directory path in remote environments. The fix implements a marker-based parsing approach similar to the one used in the debug-certificate-manager extension, wrapping the Node.js output with unique markers (<<<TEMPDIR_START>>> and <<<TEMPDIR_END>>>) to reliably extract the temp directory path from noisy terminal output.

Changes:

  • Added marker-based parsing to extract temp directory path from terminal output in remote environments
  • Implemented proper extraction logic using string markers to handle terminal decorations from fancy prompts

@TheLarkInn
Copy link
Member Author

@bmiddha commented that we should abstract this logic if we're using it more than once, I'll come up with a couple ideas for this

@TheLarkInn TheLarkInn merged commit 98334a9 into main Feb 3, 2026
15 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Feb 3, 2026
@TheLarkInn TheLarkInn deleted the fix/normalize-tmpdir-path branch February 3, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

4 participants