# Fix account-source leak and updater error reporting · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/9ceccad4b492d4fc3a1619f66f990534cba72894)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 9ceccad4b492d4fc3a1619f66f990534cba72894

Requested commit: 9ceccad4b492d4fc3a1619f66f990534cba72894

Commit: 9ceccad4b492d4fc3a1619f66f990534cba72894

Tree: 8235ac00856eb63e34c06fec5a8460b12f8fce30

Author: Simone

Committer: Simone

## Message

```
Fix account-source leak and updater error reporting

Disconnect the one-shot accounts command from usageSource after parsing
its output. usageSource polls on an interval, so leaving the source
connected made it re-spawn the codexbar CLI every refresh forever after
each "Accounts" click, with its output silently discarded.

Route update-widget.sh I/O failures through fail() so the most common
runtime errors (offline, GitHub 404/rate-limit, interrupted download,
install/permission errors) emit the structured JSON error the widget
expects, instead of aborting under set -e with empty stdout.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

```

## Parents

- [fdec61d46139bde8556e93811dd2594c841d5dda](https://git.cafe/lucenx/codexbar-plasma/commit/fdec61d46139bde8556e93811dd2594c841d5dda?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/9ceccad4b492d4fc3a1619f66f990534cba72894?format=markdown)
