Skip to content

Update lamp for current Codex desktop - #2

Merged
ulanenko merged 2 commits into
mainfrom
codex/fix-stale-lamp-locks
Aug 7, 2026
Merged

ulanenko merged 2 commits into
mainfrom
codex/fix-stale-lamp-locks

Conversation

@ulanenko

@ulanenko ulanenko commented May 23, 2026 •

Copy link
Copy Markdown
Owner

What changed

  • supports the current ChatGPT.app bundled Codex CLI while retaining legacy Codex.app compatibility
  • replaces blocking full process scans with lightweight asynchronous app checks
  • prevents compact/resumed turns and delayed asynchronous hooks from regressing lamp state
  • adds SessionEnd cleanup and protects active continuation hooks
  • restores the previous idle state when night mode ends
  • rotates daemon and hook logs and reduces synchronous hook overhead
  • installs the fixed macOS menu-bar app in ~/Applications and starts it at login
  • expands doctor diagnostics and preserves active lamp state during live tests

Root cause

The desktop application and bundled CLI moved from Codex.app to ChatGPT.app. Process tracking and doctor discovery still assumed the old path, while stale session files, context compaction events, synchronous tool heartbeats, and unbounded logs made failures persistent or slow.

Validation

  • python3 -m pytest -q (48 passed)
  • python3 -B -m py_compile codex_moonside/*.py install_hooks.py
  • git diff --check
  • menu-bar app compiled and installed successfully
  • daemon and menu LaunchAgents running
  • installed runtime recognizes ChatGPT.app
  • BLE daemon connected to the Moonside lamp
  • scripts/codex-moonside-doctor --live-codex-test passes against bundled codex-cli 0.147.0-alpha.6.5

@ulanenko ulanenko changed the title [codex] Expire stale lamp session locks Update lamp for current Codex desktop Aug 7, 2026
@ulanenko
ulanenko marked this pull request as ready for review August 7, 2026 08:09
@ulanenko
ulanenko merged commit e5de2eb into main Aug 7, 2026
2 checks passed
@ulanenko
ulanenko deleted the codex/fix-stale-lamp-locks branch August 7, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant