Skip to content

Briglia CLI 0.2.47

Choose a tag to compare

@github-actions github-actions released this 03 Oct 00:54
· 356 commits to main since this release
Immutable release. Only release title and notes can be modified.

Briglia CLI 0.2.47 (sequence 107)

This release fixes a Linux crash: on Debian 13 and Raspberry Pi OS 13, Briglia could abort repeatedly during web research.

Linux: no more crashes while reading web pages

  • The crash shows up in the service log as Object … of class _MultiHandle deallocated with non-zero retain count 2, followed by the process ending with signal 6 (SIGABRT), sometimes signal 11. The systemd service restarted Briglia each time, but the work in progress was interrupted.
  • Cause: on Linux, Swift's networking library (swift-corelibs-foundation 6.1) crashes when a network session that used a kept-open HTTPS connection is released, with libcurl 8.14 (the version on Debian 13 / Raspberry Pi OS 13). Briglia created and released one session per page read during web research, and also per Responses request, ChatGPT sign-in and upgrade download. During research that is several sessions a minute.
  • Fix: on Linux these requests now share one network session that lives as long as Briglia runs and is never released. Finishing or cancelling a request only ends that request. Nothing is shared between requests: no cookies, cache or saved credentials. Each request keeps its own time limits and redirect rules.
  • Checked on Linux arm64 with libcurl 8.14.1 against a keep-alive HTTPS server: the old code path aborts with the field message; the new one answers every request (72/72 per run, three runs).

Unaffected

  • macOS is not affected and keeps its existing behavior unchanged.
  • In our tests, libcurl 8.5 (Ubuntu 24.04) and 7.81 (Ubuntu 22.04) did not reproduce the crash.
  • Prompts and requests to the models are byte-identical to 0.2.46.

Accepted by Codex before release. Evidence: a new selftest covering concurrent page reads, time-limit cuts, cancellations, Responses timeouts, redirects and byte caps (14/14 on macOS and Linux, plus the HTTPS crash reproduction on libcurl 8.14), wire 91/91 main-agent bodies identical, full CI on macOS and Linux.

How to update

  • macOS, and Linux machines that are not crashing: /upgrade or briglia upgrade, as usual.

  • Linux machines with libcurl 8.14 (Debian 13 / Raspberry Pi OS 13): the upgrade command in 0.2.46 and earlier uses the same download code and can hit the same crash, so /upgrade and briglia upgrade may abort before installing. Run the install command instead, which downloads with curl or wget and verifies the release signature itself:

    curl -fsSL https://briglia.dev/install.sh | sh
    

    Then restart Briglia (systemctl --user restart briglia if it runs as a service, or /restart in Telegram). From 0.2.47 on, briglia upgrade uses the fixed download code too.