Skip to content

v1.51.5

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 19:06

Added

  • Claude Code: add bounded, privacy-preserving tool context to generic permission prompts when the pending tool can be identified safely (#685).
  • Claude Code: new option notifications.notifyOnAgentInitiatedTurns (default true, so nothing changes unless you set it). Set to false to skip "Completed" and "Review" notifications for turns you did not start, such as a turn started by a subagent result, a teammate message or a cross-session message. Questions, plans, permission requests, errors, session limits and the teamMode: "wait-all" team-done notification are still sent. Legacy transcripts with no nonempty user-input origin.kind keep notifying as before. Otherwise, attribution uses the turn-start input batch: a human-origin input in that batch keeps the turn human, while a batch with no origin kind is treated as non-human and its completion is skipped (#665).
  • Linux: notifications.replaceNotificationsPerSession now works on Linux too (#663). The notification daemon keeps the freedesktop notification id of each session's live notification and passes it as replaces_id on that session's next one, so the banner is updated in place instead of stacking. Notifications without a session id stay unique; after a daemon restart, or once the notification is closed, the session's next notification is a new one. With desktop.clickToFocus: false, replaceable notifications still go through the daemon, without a click action. The daemon protocol version is unchanged: an older daemon ignores the two new fields and stacks as before. Because an older daemon would also add a click action, the hook first checks that the running daemon advertises the new behaviour; if it doesn't (an older daemon still running right after an upgrade), notifications with clickToFocus: false are delivered without replacement until that daemon exits.
  • Configurable desktop notification layout: notifications.desktop.titleTemplate, headerTemplate and bodyTemplate, with per-status overrides under statuses.<name>, using placeholders such as {statusTitle}, {repo}, {branch}, {sessionName} and {question} (#664). Empty placeholders collapse with their separator, unknown placeholders are rejected when the configuration is validated, and without templates notifications are unchanged.

Changed

  • Admit official OpenCode releases by range instead of a per-release image hash on every platform: V1 1.18.33 and newer (including the current 1.19.x) and V2 2.0.21 and newer, on Linux, macOS and Windows. Each release resolves onto the reviewed reference release of its generation, so a new official release no longer needs its own table row; on macOS the operating system must also verify the OpenCode publisher, so unsigned or re-signed binaries are refused there (Linux and Windows have no publisher check); other majors and pre-releases are refused on every platform. The runtime clock comparison still fails closed. The new opencode-range-e2e workflow checks real delivery on all five platform pairs, including the latest published V1 and V2.

Fixed

  • Claude Code: avoid duplicate permission notifications after interactive tools while preserving unrelated permission requests.
  • Isolate Git metadata discovery from inherited repository overrides, and preserve notification delivery time when optional Git probes are slow.
  • Recover interrupted agent-notify setup before starting a new initialization (#585).
  • Raise the window of the originating session when a notification is clicked on Sway, instead of an arbitrary window of the same terminal. wlrctl selects windows by app_id and activates every match, so it could not tell several windows of one terminal apart. The hook now records the Sway IPC socket and its own process ancestry, and the click asks Sway (swaymsg) for the window owned by the nearest ancestor process. That is exact when each terminal window is its own process; for one process that owns several windows it first tries the exact hook-captured title, then the project folder, then the first. wlrctl remains the fallback for other wlroots compositors and for sessions whose ancestry has no Sway window, such as a session inside tmux. The daemon protocol version is unchanged: an older daemon ignores the two new fields, and an older hook leaves them empty.
  • OpenCode: on a heavily loaded machine the clock check made at event time could take longer than its bound, which disabled notifications for the rest of the session. It is now measured up to three times within the same deadline; a mismatching clock reading, or a third reading that is still too slow, still disables them as before.

Platform notes

  • Basic five-platform artifact checks and separately signed, notarized macOS helper. Full native desktop visibility, cold-start and eleven-cell OpenCode qualification are not claimed.

Installation | Updating

Full Changelog: v1.51.4...v1.51.5