Skip to content

refactor: simplify WSL notifications - #51

Merged
Elliot-32 merged 12 commits into
masterfrom
refactor/wsl-notifications
Sep 14, 2026
Merged

Elliot-32 merged 12 commits into
masterfrom
refactor/wsl-notifications

Conversation

@Elliot-32

Copy link
Copy Markdown
Owner

Summary

  • consolidate Windows Terminal foreground detection and native toast delivery into one PowerShell helper invocation
  • preserve upstream bgnotify threshold/formatting while failing closed when focus state is unknown
  • keep Ghostty on its native command-finished notification path
  • add routing tests plus syntax validation for Sheldon Zsh plugins and all PowerShell scripts

Behavior

wsl-notify.ps1 uses explicit status codes:

  • 0: toast displayed
  • 10: Windows Terminal is focused, notification suppressed
  • 11: foreground state unavailable, notification suppressed
  • 20: native toast delivery failed, allowing the shell to fall back to BEL

This removes the previous separate foreground-probe PowerShell process and the legacy wsl-toast.ps1 helper.

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 6b912bad76

ℹ️ 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".

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: d137f1c6ac

ℹ️ 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".

@Elliot-32
Elliot-32 merged commit 47691ef into master Sep 14, 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.

1 participant