Skip to content

False error Fix#2109

Merged
bbedward merged 3 commits intoAvengeMedia:masterfrom
Tobi-maru:master
Mar 30, 2026
Merged

False error Fix#2109
bbedward merged 3 commits intoAvengeMedia:masterfrom
Tobi-maru:master

Conversation

@Tobi-maru
Copy link
Copy Markdown
Contributor

Issue : when users set window rules via GUI it gives some false positive because error function check error for each appended line .

FIx : prevent false "failed to load config" toast on niri validation
Move error toast logic from StdioCollector.onStreamFinished to Process.onExited
so it only displays when niri validate actually fails (non-zero exit code),
not when stderr outputs early progress messages during config processing.

Closes #2102

Previously, empty input would set workspace name to empty string,
causing issues with Niri's unique workspace name requirement.
Now uses UnsetWorkspaceName action when input is empty.
Move error toast logic from StdioCollector.onStreamFinished to Process.onExited
so it only displays when niri validate actually fails (non-zero exit code),
not when stderr outputs early progress messages during config processing.
@bbedward bbedward merged commit c471cff into AvengeMedia:master Mar 30, 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.

When adding window rule "niri: failed to load config" pops up

2 participants