Skip to content

fix(linux): identify Herdr desktop notifications - #3639

Merged
ogulcancelik merged 1 commit into
herdrdev:masterfrom
akbash-bot:akbash/3638-notify-app-name
Sep 10, 2026
Merged

fix(linux): identify Herdr desktop notifications#3639
ogulcancelik merged 1 commit into
herdrdev:masterfrom
akbash-bot:akbash/3638-notify-app-name

Conversation

@akbash-bot

@akbash-bot akbash-bot commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Issue

Linux system notifications appear under the generic Notify Send application name. Users cannot identify Herdr as the sender when notification text is generic.

Problem

Herdr passed only the notification title and body to notify-send. The notification daemon therefore used the helper's default application name.

How did we fix it?

Herdr now passes --app-name Herdr for Linux system notifications. The existing -- separator still protects titles that begin with an option character. Other delivery modes and platforms are unchanged.

Verification

The command-capture regression failed before the change because the application-name arguments were absent. The same test now passes and preserves title/body ordering and option separation. All PR checks pass on Linux, macOS, and Windows. A local broad run reached 3,056 passing tests before two environment-specific failures in a root-permission test and a live-handoff server-start test.

refs #3638

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 871d7023-7902-484d-94a9-0058f769de07

📥 Commits

Reviewing files that changed from the base of the PR and between 7916be1 and 82c5da8.

📒 Files selected for processing (1)
  • src/platform/linux.rs

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

Linux desktop notifications now pass --app-name Herdr to notify-send before the title separator. The notification test was renamed and now expects --app-name, Herdr, --, the title, and the body.

Suggested reviewers: ogulcancelik, pimpmuckl

Merge Risk: ⚪ Minimal · up to 82c5d

Linux desktop notifications will identify themselves as Herdr while preserving safe handling and ordering of notification titles and bodies. The implementation and its focused regression coverage support merging without an outstanding current-head risk.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly and concisely describes the main change: identifying Herdr as the Linux desktop notification source.
Description check ✅ Passed The description directly explains the Linux notification issue, the --app-name Herdr fix, test coverage, and verification results.
  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kangal-bot

Copy link
Copy Markdown
Collaborator

@coderabbitai review
@greptileai

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

@kangal-bot I will review pull request #3639.

✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@greptile-apps

greptile-apps Bot commented Sep 5, 2026

Copy link
Copy Markdown

Greptile Summary

This PR identifies Linux desktop notifications as originating from Herdr.

  • Adds --app-name Herdr to the notify-send invocation.
  • Preserves the -- separator and title/body argument ordering.
  • Updates the command-capture regression test to verify the application name and option-like title handling.

Confidence Score: 5/5

The PR appears safe to merge with no actionable correctness, security, or quality issues identified.

The notify-send arguments follow the expected CLI ordering, retain protection for option-like titles, and are covered by a focused command-capture regression test.

Important Files Changed

Filename Overview
src/platform/linux.rs Adds the Herdr application name to Linux system notifications and updates the focused argument-ordering test.

Reviews (1): Last reviewed commit: "fix(linux): identify Herdr desktop notif..." | Re-trigger Greptile

@ogulcancelik
ogulcancelik merged commit a520603 into herdrdev:master Sep 10, 2026
8 checks passed
kaushikgopal added a commit to kaushikgopal/herdr that referenced this pull request Sep 10, 2026
Merge upstream/master 120c682..90e947a into the fork; clean merge, no
conflicts. Notable upstream fixes absorbed:

- bound mouse selection repaint cadence (herdrdev#3901)
- accept machine add options before the ssh target (herdrdev#3897)
- accept WezTerm control key reports (herdrdev#3592)
- preserve focused viewer geometry during activation (herdrdev#3746)
- use host background for pane selection highlights (herdrdev#3894)
- preserve legacy mouse reports over ssh on windows (herdrdev#3742)
- identify herdr desktop notifications on linux (herdrdev#3639)
- accept session names after option terminator (herdrdev#3222)
- keep spaces sidebar stable during resize (herdrdev#3862)
- stop token selection at CJK punctuation (herdrdev#3708)
- support Windows session paths for pi (herdrdev#3729)

Update the FORK-CHANGELOG log with the new fork point and sync notes.
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.

3 participants