Skip to content

Let a received Taildrop file wait to be answered - #7953

Merged
dhh merged 2 commits into
quattrofrom
taildrop-notification-waits
Aug 23, 2026
Merged

dhh merged 2 commits into
quattrofrom
taildrop-notification-waits

Conversation

@omarchybot

Copy link
Copy Markdown
Collaborator

A file sent over Taildrop can land hours after it was sent, but the toast announcing it expired after five seconds — so the arrival nobody was at the machine for is exactly the one that vanished unseen, and the file then sat in ~/Downloads with nothing to say it had come.

The announcement now goes out at critical urgency, which is what the shell reads as a popup that lives until it is clicked or dismissed: durationFor gives Critical a lifetime of 0, the card's countdown never runs, and popupExpired keeps a zero-lifetime popup across a shell restart instead of archiving it. Clicking still opens the file through the omarchy-exec hint that was already there, dismissing still moves it into history, and Super + Shift + , still clears the screen in one gesture. omarchy-crash-watch keeps its click-to-diagnose toast around the same way.

Urgency costs nothing else here. It has no visual effect on the card — accentColor has been unused since the progress indicator came out — and do-not-disturb was already being bypassed by omarchy-notification-send's default omarchy-action app name, whatever the urgency.

The wrapper accepts options after the headline and description as well as before, which is how the receiver builds its argument list, and that path had no test. It is worth one because it fails quietly: the wrapper appends its own default urgency last, so an urgency it stopped parsing would reach notify-send as -u critical ... -u low and the toast would go back to expiring with nothing to show for it.

One consequence to weigh, since it is the shape of the feature rather than a defect in it: a multi-file drop announces one toast per file and now none of them leave on their own, so twelve photos are twelve cards stacked down the right edge until they are answered — Super + Shift + , takes them all at once, and a batch that announced itself as one card would take a design decision rather than a fix. Opening notification history replays an already-answered receipt as a card that again waits to be dismissed, because stickiness is carried by urgency and history keeps urgency; a dedicated "wants an answer" hint would separate the two, at the cost of a new concept in the notification path.

🤖 Generated by Opus 5 in Claude Code. Reviewed by Codex XHigh.

A delivery can land hours after it was sent, and the toast announcing it was expiring after five seconds -- so a file that arrived while nobody was at the machine was gone from the screen before anyone could click it open. Critical urgency is what the shell reads as a popup that lives until it is clicked or dismissed, the same thing omarchy-crash-watch uses to keep its click-to-diagnose toast around.

The wrapper takes options after the headline and description as well as before, which is how this argument list is built. That path had no test, and it fails quietly rather than loudly: the wrapper appends its own default urgency last, so an urgency it stopped parsing would reach notify-send as `-u critical ... -u low` and the toast would go back to expiring.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Codex XHigh <[email protected]>
Copilot AI balanced review requested due to automatic review settings August 23, 2026 19:37

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

Makes Taildrop arrival notifications persistent until opened or dismissed, preventing delayed deliveries from going unnoticed.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Sends Taildrop notifications with critical urgency.
  • Adds regression coverage for persistent arrivals and trailing notification options.
  • Documents the persistent notification behavior.

Reviewed changes

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

File Description
bin/omarchy-tailscale-receive Marks arrival notifications as critical.
test/shell.d/tailscale-receive-test.sh Verifies every arrival is persistent.
test/shell.d/notification-send-test.sh Tests options following notification text.
manual/35-networking.md Documents arrival notification behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

`-u critical` next to a line that builds a notification says what it does, and the five lines explaining why it is there were a recap of the change rather than something the code could not say. The reasoning stays where it belongs, in the commit that made the change.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

@dhh
dhh merged commit 7e469f9 into quattro Aug 23, 2026
4 checks passed
@omarchybot
omarchybot requested a balanced review from Copilot August 23, 2026 20:29

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.

omarchybot added a commit that referenced this pull request Aug 25, 2026
Backport of the Taildrop toast fix (PR #7953, merged to quattro as 7e469f9)
onto the v4-0-1 release branch.

A delivery can land hours after it was sent, and the toast announcing it was
expiring after five seconds -- so a file that arrived while nobody was at the
machine was gone from the screen before anyone could click it open. Critical
urgency is what the shell reads as a popup that lives until it is clicked or
dismissed, the same thing omarchy-crash-watch uses to keep its click-to-diagnose
toast around.

The mechanism is already on this branch: omarchy-notification-send parses
options that follow the two positionals, and NotificationLogic.js gives a
critical popup duration 0, which never expires.

One conflict, in test/shell.d/notification-send-test.sh. #7953 added coverage
for the trailing-option path in the notify-send form it had then; #7926, which
merged after it on quattro and is already backported here, rewrote that file for
the Notify D-Bus form and carried the same coverage across. This branch
therefore already asserts what #7953 added -- an urgency and a glyph after the
description reach the call, and the urgency is set once -- so the branch's
version stands and the resolved file is unchanged.

Verified by mutation: with -u critical removed, test/shell.d/tailscale-receive-
test.sh fails at once; restored, it passes, including the new assertion that
every announcement waits to be answered.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_018DEMYa9UWtroz93DhMTtcV
@omarchybot omarchybot mentioned this pull request Aug 25, 2026
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
* Let a received Taildrop file wait to be answered

A delivery can land hours after it was sent, and the toast announcing it was expiring after five seconds -- so a file that arrived while nobody was at the machine was gone from the screen before anyone could click it open. Critical urgency is what the shell reads as a popup that lives until it is clicked or dismissed, the same thing omarchy-crash-watch uses to keep its click-to-diagnose toast around.

The wrapper takes options after the headline and description as well as before, which is how this argument list is built. That path had no test, and it fails quietly rather than loudly: the wrapper appends its own default urgency last, so an urgency it stopped parsing would reach notify-send as `-u critical ... -u low` and the toast would go back to expiring.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Codex XHigh <[email protected]>

* Say it in the commit message, not above the code

`-u critical` next to a line that builds a notification says what it does, and the five lines explaining why it is there were a recap of the change rather than something the code could not say. The reasoning stays where it belongs, in the commit that made the change.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

---------

Co-authored-by: David Heinemeier Hansson <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Codex XHigh <[email protected]>
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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.

4 participants