aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/policy_test.go
AgeCommit message (Collapse)AuthorFilesLines
9 daysfeat(notify): take the per-urgency default timeout from configDanilo M.1-7/+12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-15fix: honour the freedesktop expire_timeout directionDanilo M.1-4/+4
The spec says -1 means the server decides and 0 means never; the code had them swapped, so a plain notify-send (libnotify's default is -1) became immortal and an explicit never (-t 0) got the urgency default. Found by the live handover test, where notify-send produced expires 0. The urgency default is unchanged: low and normal 10s, critical never.
2026-09-15fix: add the GPLv2 header to the policy testDanilo M.1-0/+11
2026-09-15feat: add the module and the notification policyDanilo M.1-0/+89
The policy functions are pure so they are tested without a bus: urgency from the hints, the timeout rule with its urgency defaults, the two stack tag spellings, and the action pair parse.