Repair hidden status item defaults repeatedly#1306
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 4, 2026, 10:07 PM ET / 02:07 UTC. Summary Reproducibility: yes. From source inspection on the PR branch, set Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep startup recovery, but make repeated repair compatible by preserving deliberate post-migration CodexBar-owned hidden visibility defaults unless maintainers choose and prove an explicit recovery path. Do we have a high-confidence way to reproduce the issue? Yes. From source inspection on the PR branch, set Is this the best way to solve the issue? No. Removing the one-shot gate is a plausible recovery direction, but the maintainable fix must preserve deliberate post-repair hidden settings or use a narrower explicit recovery trigger. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 65e39f4dcb3a. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6a8f23c4fc
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if !defaults.bool(forKey: self.didRepairKey) { | ||
| defaults.set(true, forKey: self.didRepairKey) | ||
| } |
There was a problem hiding this comment.
Preserve post-repair hidden status-item choices
Because the repair marker is now only historical state and no longer gates the scan, any later false NSStatusItem VisibleCC codexbar-* value is deleted on the next startup. In the scenario where a user intentionally turns CodexBar off in macOS Menu Bar settings after the first repair, that hidden default matches the same filter and is undone, so the icon cannot stay hidden. Consider limiting repeated repair to legacy/default Item-* keys or to a narrower recovery trigger.
Useful? React with 👍 / 👎.
|
Opened a small stacked follow-up for the ClawSweeper P1 blocker here: Thinkscape#1 It keeps repeated cleanup for stale Validation run locally:
|
Why?
CodexBar randomly disappearing after updates, external screen disconnections, or when interacting with Bartender, is a major pain. Restarting the app would be a logical recovery method, but it currently doesn't work b/c the repair doesn't happen on repair. This PR fixes it.
Summary
NSStatusItem VisibleCC ...keys and true values are left intactRelated
Tests
swift test --filter StatusItemControllerSplitLifecycleTests