CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

CodexBar randomly just quits

Open takove opened this issue 5 months ago • 13 comments

Is it just me of ts just keep randomly die? Specially after latest update

takove avatar Jun 21 '26 12:06 takove

Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 8:16 AM ET / 12:16 UTC.

Summary Keep open under the repository’s conservative onboarding profile: this likely overlaps the known v0.37.0 memory-pressure crash fixed on current main, but this report has no crash log, OS/build data, or trigger to prove the same root cause.

Reproducibility: no. for this exact report: it lacks a crash log, app build, OS version, and trigger. The likely overlapping v0.37.0 memory-pressure crash is source-backed in https://github.com/steipete/CodexBar/issues/1686 and fixed on current main, but that does not prove this reporter hit the same stack.

Ways to help us reproduce this

  • Add a screenshot or short recording showing the behavior.
  • Add expected vs actual behavior.

Next step No new repair PR is safe from this report alone; maintainers should confirm it is covered by the v0.37.0 memory-pressure crash fix or ask for crash logs if it persists after a fixed release.

Review details

Best possible solution:

Keep the richer crash tracker at https://github.com/steipete/CodexBar/issues/1686 as canonical, ship the current-main fix in v0.37.1 or newer, and ask this reporter for DiagnosticReports if quits continue after updating.

Do we have a high-confidence way to reproduce the issue?

No for this exact report: it lacks a crash log, app build, OS version, and trigger. The likely overlapping v0.37.0 memory-pressure crash is source-backed in https://github.com/steipete/CodexBar/issues/1686 and fixed on current main, but that does not prove this reporter hit the same stack.

Is this the best way to solve the issue?

Unclear for this exact report; the current-main memory-pressure fix is the right solution only if the reporter’s random quits share that crash signature. The narrow next step is to confirm with crash logs or verify the symptom disappears in v0.37.1 or newer.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • This issue may be the same as the v0.37.0 memory-pressure isolation crash, but the reporter did not provide a crash report or environment details to prove that exact root cause.
  • The likely fix is on current main, but the latest public GitHub release inspected is still v0.37.0, so affected users may still see the quit until a fixed build ships.
  • No live macOS reproduction was attempted in this read-only review; the assessment relies on source, release history, and related crash reports.

Codex review notes: model internal, reasoning high; reviewed against 9e7a70a42dd2; fix evidence: commit 8c4bdd63f3d6, main fix timestamp 2026-06-20T03:32:54-04:00.

Label changes

Label changes:

  • add P1: The report matches a latest-release crash class that can make the menu bar app disappear during normal use.
  • add impact:crash-loop: The issue is about unexpected process termination and app availability.
  • add issue-rating: 🦐 gold shrimp: Current issue advisory state selects this label.
  • add clawsweeper:needs-info: Current issue advisory state selects this label.
  • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
  • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.

Label justifications:

  • P1: The report matches a latest-release crash class that can make the menu bar app disappear during normal use.
  • impact:crash-loop: The issue is about unexpected process termination and app availability.
Evidence reviewed

What I checked:

  • Issue report is low detail: The issue body only says CodexBar randomly dies after the latest update; it does not include crash logs, app build, macOS version, or reproduction steps.
  • Canonical likely overlap: https://github.com/steipete/CodexBar/issues/1686 is an open report for v0.37.0 repeated quits with EXC_BREAKPOINT/SIGTRAP, _swift_task_checkIsolatedSwift, utility-qos, and DispatchSource memory-pressure evidence.
  • Current main contains the likely fix: MemoryPressureMonitor now registers a nonisolated DispatchSource handler through makeEventHandler and hops to MainActor only for app-state cleanup. (Sources/CodexBar/MemoryPressureMonitor.swift:66, 9e7a70a42dd2)
  • Regression coverage exists: The memory-pressure regression invokes the handler from a utility queue and asserts the cleanup callback runs on the main thread. (Tests/CodexBarTests/MemoryPressureCacheTrimTests.swift:31, 9e7a70a42dd2)
  • Fix provenance: Commit 8c4bdd63f3d6d1432fcdb50add7ed6988a2b5734 is titled "fix: prevent memory pressure isolation crash (#1668)" and changes MemoryPressureMonitor plus regression tests. (Sources/CodexBar/MemoryPressureMonitor.swift:66, 8c4bdd63f3d6)
  • Release provenance: GitHub releases still list v0.37.0 as latest, while CHANGELOG.md has the memory-pressure isolation fix staged under 0.37.1; the fix is on current main but not proven shipped as a public release. (CHANGELOG.md:3, 9e7a70a42dd2)

Likely related people:

  • Zihao-Qi: Authored the merged memory-pressure isolation crash fix and regression coverage on current main. (role: fix author; confidence: high; commits: 8c4bdd63f3d6, 384c1b4d7a56, 844b8fdc7cfc; files: Sources/CodexBar/MemoryPressureMonitor.swift, Tests/CodexBarTests/MemoryPressureCacheTrimTests.swift)
  • ProspectOre: Merged PR history shows this contributor introduced and expanded the memory-pressure monitor/cache-trim path amended by the crash fix. (role: introduced behavior and adjacent area contributor; confidence: high; commits: f6f76ff9d01e, 32db84035b55; files: Sources/CodexBar/MemoryPressureMonitor.swift, Sources/CodexBar/CodexbarApp.swift, Tests/CodexBarTests/MemoryPressureCacheTrimTests.swift)
  • Peter Steinberger: Authored the v0.37.0 release tag in this checkout, co-authored the merged crash-fix commit, and posted release/verification context for the fix. (role: recent release and verification owner; confidence: medium; commits: 33a5f4362eab, 8c4bdd63f3d6, 9e7a70a42dd2; files: Sources/CodexBar/MemoryPressureMonitor.swift, CHANGELOG.md, appcast.xml)
How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

clawsweeper[bot] avatar Jun 21 '26 12:06 clawsweeper[bot]

Is it just me of ts just keep randomly die? Specially after latest update

I have the same problem, that's why I'm here

dendenlarin avatar Jun 21 '26 13:06 dendenlarin

me too

GravityPoet avatar Jun 21 '26 13:06 GravityPoet

me too

+1

sakuraine avatar Jun 21 '26 14:06 sakuraine

+1 same issue

maticboncina avatar Jun 21 '26 15:06 maticboncina

Duplicate of https://github.com/steipete/CodexBar/issues/1686.

jacobcxdev avatar Jun 21 '26 15:06 jacobcxdev

Me too, CodexApp quit when is trying to do a refresh.

Octaviocossy avatar Jun 21 '26 15:06 Octaviocossy

I had the same issue and downgraded to 0.36.1 in the meanwhile.

CodexBar is published through the author's personal tap (steipete/tap). Because third-party taps live as real git checkouts on disk – not served by Homebrew's JSON API – you can roll the cask file back to any past release and install that exact version – 0.36.1 in our case:

  • brew tap steipete/tap
    • Clones the author's tap locally so its full version history is available
  • TAP="$(brew --repository steipete/tap)"
    • Stores the tap's path in a variable for the commands that follow
  • git -C "$TAP" checkout 6812fb7542579cea67d004d4bd77b0422c2ad3e5 -- Casks/codexbar.rb
    • Rolls the cask file back to its 0.36.1 revision – this commit is the one that bumped CodexBar to 0.36.1
    • For a different version, swap this hash – find it under https://github.com/steipete/homebrew-tap/commits/main/Casks/codexbar.rb
  • brew uninstall --cask codexbar 2>/dev/null
    • Removes any existing install first to avoid a conflict on the bundled CodexBarCLI symlink (2>/dev/null hides the error if it wasn't installed)
  • HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask --force steipete/tap/codexbar
    • Installs the pinned 0.36.1
    • HOMEBREW_NO_AUTO_UPDATE=1 is essential – without it Homebrew auto-updates the tap, resetting it to the latest commit and undoing the rollback before install
  • git -C "$TAP" checkout HEAD -- Casks/codexbar.rb
    • Restores the cask file to the latest version so future brew update runs stay clean

All commands at once:

brew tap steipete/tap
TAP="$(brew --repository steipete/tap)"
git -C "$TAP" checkout 6812fb7542579cea67d004d4bd77b0422c2ad3e5 -- Casks/codexbar.rb
brew uninstall --cask codexbar 2>/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask --force steipete/tap/codexbar
git -C "$TAP" checkout HEAD -- Casks/codexbar.rb

IsaacCheng9 avatar Jun 21 '26 20:06 IsaacCheng9

Same issue

FrancoisCardinaud avatar Jun 21 '26 21:06 FrancoisCardinaud

Same

OmarDadabhoy avatar Jun 22 '26 00:06 OmarDadabhoy

EMERGENCY EMERGENCY 👷

dkkb avatar Jun 22 '26 03:06 dkkb

me too

tukuyomil032 avatar Jun 22 '26 03:06 tukuyomil032

Verified as a duplicate of #1686. The v0.37.0 crash was caused by a memory-pressure DispatchSource callback entering MainActor-isolated code from a utility queue. Commit 8c4bdd63 fixes that path and shipped in CodexBar 0.37.1.

Maintainer verification on macOS 26.5.1:

  • downloaded the public 0.37.1 build 91 app; SHA-256 matched the GitHub asset metadata
  • Developer ID signature, notarization, and Gatekeeper assessment passed
  • the utility-queue-to-MainActor regression suite passed (4 tests)
  • launched the signed release and ran a simulated system warning with memory_pressure -S -l warn -s 3; CodexBar remained alive and no new crash report appeared

Please update to 0.37.1 or newer. If the app still quits afterward, please open a fresh report with the exact CodexBar version/build, macOS version, trigger, and the matching .ips file from ~/Library/Logs/DiagnosticReports so we can distinguish a new crash signature.

steipete avatar Jun 22 '26 03:06 steipete