Skip to content

[codex] Refactor MQTT command handling reliability#2

Merged
FireHawken merged 8 commits into
mainfrom
Refactoring
Jun 7, 2026
Merged

[codex] Refactor MQTT command handling reliability#2
FireHawken merged 8 commits into
mainfrom
Refactoring

Conversation

@FireHawken

Copy link
Copy Markdown
Owner

Summary

Refactors command handling and runtime state to make the MQTT listener more reliable:

  • adds AGENTS.md and updates README release/usage details
  • moves sleep/monitor-off execution out of the MQTT callback into the main loop
  • synchronizes shared runtime flags with Windows Interlocked* helpers
  • validates command payloads and ignores retained command messages
  • hardens Windows power actions with timeout/failure logging

Impact

Command topics now require an explicit payload: 1, true, on, or yes. Retained command messages are ignored to avoid accidental actions after reconnect.

Validation

  • mingw32-make -C build

Notes

Local untracked files .gitignore and CLAUDE.md were not included.

@FireHawken FireHawken marked this pull request as ready for review June 7, 2026 14:10
@FireHawken FireHawken merged commit ea6c8ed into main Jun 7, 2026
2 checks passed
@FireHawken FireHawken deleted the Refactoring branch June 7, 2026 14:11
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