Skip to content

v3.11.0

Choose a tag to compare

@github-actions github-actions released this 24 Oct 14:34
· 76 commits to main since this release

Added

  • Awake: keep the machine up while Claude Code works. A new opt-in target,
    ./install.sh awake, holds the machine awake while any Claude Code session
    is running or waiting on you, and/or for a timer, and releases it the moment
    that stops being true. The hold is a child process (caffeinate -i -w
    on macOS, systemd-inhibit --what=idle:sleep on Linux), so the kernel gives
    the assertion back whatever happens to the holder - SIGKILL included.
    Surfaces: an Awake section with a countdown badge in the GNOME dropdown
    and the macOS menu bar, claudectl awake [status|on|off|extend|recover], an
    MCP awake tool, and an opt-in awake status-line segment. The shared
    contract is lib/pure/awake.js + ClaudeUsageCore/{Awake,AwakePower}.swift,
    pinned by tests/fixtures/awake.json. Details:
    wiki/Awake.

  • Closed-lid mode (experimental, opt-in, a separate install step).
    ./install.sh awakelid lets an Awake session keep running with the lid shut:
    on macOS through pmset -a disablesleep, granted by a narrow sudoers rule
    for exactly four pmset commands (validated with visudo -c, then proven
    with sudo -n -l, and every call sudo -n so it never prompts); on Linux
    through a systemd-logind handle-lid-switch inhibitor, which needs no root
    and changes no system file. A machine that cannot sleep with the lid shut
    must stay on a hard, well-ventilated surface, never in a closed bag.

  • Awake safety: a recovery journal, a backstop, floors and a ceiling. Every
    persistent change is journaled before it is made and its flag cleared only
    after the undo succeeded; scripts/awake-backstop.sh runs every minute and
    repairs the machine from that file alone, with no node, no Swift and no panel
    (it takes the holder's own lock and refuses to cut a live session short); a
    disable is read back after a settle, because pmset can exit 0 while
    something else puts the bit straight back; the battery floors (low power
    below 40%, end below 10%, both configurable, plus a battery that is present
    but unreadable twice in a row) and the thermal rules end a session rather
    than warn about it; and every session is capped at 12 hours, measured from
    now on every extension. The safety design is adapted from
    Insomnia (MIT).

  • Attribution guard: the author of record is the human who owns the change.
    scripts/attribution-guard.sh fails a pull request whose commits are
    authored or committed by an address .github/attribution-allow.txt does not
    name, carry a Co-authored-by: trailer naming anyone else, or end in an
    assistant footer, and checks the pull request title and body for the same
    (the agent body markers, a link to an agent run, an "Open in …" footer, a
    "Generated with …" line). The name beside the address is its own check:
    "Cursor Agent" or "Claude" fails whatever address it carries, and a real
    person whose name collides is exempted by a name: line. It is narrow about
    prose on purpose - only footer shapes, trailer keys and URLs count, and the
    bare agent phrases only at the head of a line - so a commit about a database
    cursor, or one naming three assistants mid-sentence, passes. Deleting the
    allow file warns and falls back to the built-in address rather than failing
    open. It runs as the attribution guard job behind ci-gate, preceded by
    scripts/tests/attribution-guard-test.sh (32 cases over
    scripts/tests/fixtures/), and as
    attribution guard (edited title or body) from its own workflow on the one
    event ci.yml does not see. The script, its suite and its fixtures are
    copied byte for byte from a shared template repository; only the allow list
    is this repo's.

  • Rename a saved account without removing it. claudectl account rename NAME NEW, the rename_account MCP tool, a pencil per login in the GNOME
    preferences and a Rename button in macOS Settings. The login, its cached
    usage and its kept weekly reset move with it; ~/.claude is not touched.
    NEW must be free ignoring case (changing only the case is fine), and a
    rename is refused while a switch is unfinished. It runs under the login's
    refresh lock so a concurrent refresh cannot write the old file back. The
    rule is renameRefusal / renameKey, pinned in every port by
    tests/fixtures/accounts.json. A rename is journaled in
    .rename-pending.json: one killed half-way is finished or undone by the
    next store operation instead of leaving two names on one single-use refresh
    token, and no sync-back can bring the old name back while it runs.

Changed

  • The GNOME extension's sample history, forecasts and alert latches moved from
    extension.js into lib/samples.js. No behaviour change; extension.js was
    at the 700-line ceiling.

Fixed

  • claudectl <group> <cmd> --help no longer compiles the group word from argv
    as a regular expression: claudectl 'session(' open --help crashed with
    "Invalid regular expression" (CodeQL js/regex-injection).
  • check-deps reported a live track: hold as "matches no pin" whenever only
    the image digest had moved upstream, failing the weekly deps job.
  • The private-names guard now runs in CI: a private-names job checks the
    tree and the full history (--all) from the PRIVATE_NAMES secret and
    fails without it (a fork PR, which gets no secrets, is checked on main
    after the merge). It reads identities through a private mailmap kept
    outside the repo (PRIVATE_MAILMAP), so an old work address is mapped away
    without being written into the public tree. Commits released before the
    guard ran are declared by id in .github/private-names-history.
  • macOS: account rows no longer end in "…". The popup's 340 pt row put
    the name, the email and the usage side by side, so all three were cut and
    the weekly reset was lost. The name and the full usage now share the first
    line and the email sits under the name. A new Settings toggle, "Show each
    account's email in the menu" (showAccountEmailInMenu, on by default),
    hides that line; the email stays in the row's tooltip.