Skip to content

fix(tui): use path.sep for plugin name extraction in /status dialog - #52328

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
metal-huang:fix-plugin-path-windows
Sep 30, 2026
Merged

rekram1-node merged 1 commit into
anomalyco:devfrom
metal-huang:fix-plugin-path-windows

Conversation

@metal-huang

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #46101

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

On Windows, fileURLToPath() returns backslash-separated paths, but the status dialog was splitting on / only. The entire path became a single token, and the first . in .config made the displayed name C:\Users\Administrator\ instead of rtk.

Changed split("/") to split(path.sep) and renamed the local variable to avoid shadowing the path module import.

How did you verify your code works?

Ran a Node script comparing old vs new logic on a Windows path:

  • Old (split "/"): name = C:\Users\Administrator\
  • New (split path.sep): name = rtk

Screenshots / recordings

See screenshot in linked issue #46101.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes

History: This bug was reported in #34141 and two prior PRs attempted to fix it (#33375, #34183). Both were closed without merging. The bug still exists on dev, re-reported as #46101. Previous PR #46114 was auto-closed by the cleanup bot.

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@rekram1-node
rekram1-node merged commit 97a86b7 into anomalyco:dev Sep 30, 2026
4 checks passed
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.

TUI /status dialog shows full file path instead of plugin name on Windows

2 participants