feat(plugin): add HUD state module for statusLine integration#1093
Merged
Conversation
- Create hud_state.py with read/init/update functions and fcntl file locking - Atomic read-modify-write in update_hud_state via single exclusive lock - Add 9 tests covering read/init/update/roundtrip scenarios - Add TDD implementation plan document Closes #1087
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hud_state.pymodule managing~/.codingbuddy/hud-state.jsonfor cross-hook state sharingread_hud_state()with shared lock (LOCK_SH), returns{}on any errorinit_hud_state()creates initial session state (timestamp, version, mode, agent)update_hud_state()atomic read-modify-write under single exclusive lock (LOCK_EX)stats.pyfcntl file locking patternsTest plan
python3 -m pytest tests/test_hud_state.py -v— 9 passedpython3 -m pytest tests/ -q— 356 passedCloses #1087