Skip to content

fix(desktop): tolerate malformed Windows PATH entries - #2904

Open
auenger wants to merge 1 commit into
mainfrom
fix/windows-shell-path-2892
Open

auenger wants to merge 1 commit into
mainfrom
fix/windows-shell-path-2892

Conversation

@auenger

@auenger auenger commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • normalize leading/trailing quotes around Windows command and PATH tokens before resolving installed shells
  • skip individual entries that still raise InvalidPathException instead of failing the entire terminal-capabilities request
  • add regression coverage for quoted, unmatched-quote, and malformed entries followed by a valid shell directory

Fixes #2892

Verification

  • focused regression tests: TerminalSessionManagerTest#findsCommandInQuotedPathEntries+skipsInvalidPathEntriesWhenFindingCommand — 2 tests, 0 failures, 0 errors
  • complete TerminalSessionManagerTest on the latest main — 18 tests, 0 failures, 0 errors, 1 platform-specific skip
  • JCEF module reactor package with Java 17 and tests explicitly skipped — passed
  • git diff --check — passed

Windows desktop runtime verification remains CI/platform-only because the local verification host is macOS.

@auenger
auenger requested review from a team and openai0229 as code owners September 11, 2026 09:02
@openai0229 openai0229 moved this to In Review in Chat2DB Community Sep 11, 2026
Normalize quoted Windows PATH entries and skip entries that still cannot be parsed so shell capability detection remains available. Add regression coverage for issue #2892.
@auenger
auenger force-pushed the fix/windows-shell-path-2892 branch from 9fa143d to 7c0de20 Compare September 11, 2026 09:17

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

终端有问题

2 participants