Notify link=: review fixes

- ntfy uses the link only beside a web run view; otherwise it keeps the
  run click and the receipt says why (app click stays the link).
- The outbox retry of a hook's failed publication re-resolves the stage's
  link=, so the ntfy and app tap targets keep it.
- A valid link file is never the attached artifact.
- Notification artifacts are read through os.OpenRoot with O_NOFOLLOW.
- The link note is recorded once, on the first receipt, and never becomes
  the run-level failure reason.
- Android: a recents relaunch does not reopen the link, and a run thread of
  several entries opens the run rather than the latest external page.
- Docs and the protocol comment say "first non-empty line".
This commit is contained in:
2026-12-02 12:29:46 +00:00
parent f5f31b7bcd
commit 0c75ff1b0d
10 changed files with 401 additions and 109 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ type NotificationPolicy struct {
Destination string `json:"destination"`
Artifacts []string `json:"artifacts,omitempty"`
Open string `json:"open,omitempty"`
// Link names a public/ file whose first line is the http(s) tap target.
// Link names a public/ file whose first non-empty line is the http(s) tap target.
Link string `json:"link,omitempty"`
}