Skip to content

fix: WSL terminal profile icons#5

Merged
tonythethompson merged 1 commit into
masterfrom
pr/wsl-terminal-profile-icons
Jul 3, 2026
Merged

fix: WSL terminal profile icons#5
tonythethompson merged 1 commit into
masterfrom
pr/wsl-terminal-profile-icons

Conversation

@tonythethompson

Copy link
Copy Markdown
Owner

Summary

  • Skip non-renderable WT PNG icons in CmdPal; use penguin emoji for WSL profiles.
  • Add OpenCompanionApp / OpenRepository glyph fixes.

Test plan

  • TerminalProfileIconResolverTests

Copilot AI review requested due to automatic review settings July 2, 2026 17:54

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8b17bfeca9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread QuickShell/Commands/WorkspaceUtilityCommands.cs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 adjusts how terminal profile icons are chosen for Command Palette rendering by filtering Windows Terminal icon values down to glyph/emoji-safe strings, and adds WSL detection to prefer a penguin fallback. It also centralizes several context-menu icons into shared glyph constants.

Changes:

  • Add TerminalProfileIconResolver.IsCmdPalGlyphIcon() to reject file/URI icon values that CmdPal can’t render.
  • Update TerminalLaunchGlyphs to detect WSL profiles and use the Linux penguin fallback, and to only accept glyph/emoji profile icons.
  • Replace several hard-coded context-menu glyphs with ShortcutGlyphs constants and add targeted tests.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
QuickShell/Services/ShortcutContextCommands.cs Switch context-menu icons to shared glyph constants (and updates companion app icon selection).
QuickShell/Commands/WorkspaceUtilityCommands.cs Switch command icons to shared glyph constants (and updates companion app icon selection).
QuickShell.Core/Services/TerminalProfileIconResolver.cs Add CmdPal-specific glyph/emoji validation helper for icon strings.
QuickShell.Core/Services/TerminalLaunchGlyphs.cs Skip non-glyph icons for CmdPal and treat WSL profiles as Linux penguin.
QuickShell.Core/Services/ShortcutGlyphs.cs Add new shared glyph constants used by updated commands/menus.
QuickShell.Core.Tests/TerminalProfileIconResolverTests.cs Add tests for the new glyph-icon filter and WSL fallback behavior.

Comment thread QuickShell/Commands/WorkspaceUtilityCommands.cs
Comment thread QuickShell/Services/ShortcutContextCommands.cs
Comment thread QuickShell.Core/Services/TerminalProfileIconResolver.cs
Comment thread QuickShell.Core/Services/TerminalLaunchGlyphs.cs Outdated
tonythethompson added a commit that referenced this pull request Jul 3, 2026
Add CompanionAppCatalog.GetContextMenuIcon, remove unresolved IconInfo cref, and resolve WT profiles once per glyph lookup.

Co-authored-by: Cursor <cursoragent@cursor.com>
tonythethompson added a commit that referenced this pull request Jul 3, 2026
Use penguin glyph for WSL profiles when WT PNG icons are unavailable,
resolve profile icons once per lookup, parse WSL --distribution in
command lines, and add terminal launch test seam.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tonythethompson tonythethompson changed the base branch from pr/extract-shortcut-launch-executor to master July 3, 2026 05:01
@tonythethompson tonythethompson force-pushed the pr/wsl-terminal-profile-icons branch from bfc67ff to 4f86998 Compare July 3, 2026 05:01
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@tonythethompson tonythethompson merged commit d33c290 into master Jul 3, 2026
1 check 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.

2 participants