Skip to content

feat(plugin): add HUD state module for statusLine integration#1093

Merged
JeremyDev87 merged 1 commit into
masterfrom
feat/hud-state-module-1087
Mar 28, 2026
Merged

feat(plugin): add HUD state module for statusLine integration#1093
JeremyDev87 merged 1 commit into
masterfrom
feat/hud-state-module-1087

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Add hud_state.py module managing ~/.codingbuddy/hud-state.json for cross-hook state sharing
  • read_hud_state() with shared lock (LOCK_SH), returns {} on any error
  • init_hud_state() creates initial session state (timestamp, version, mode, agent)
  • update_hud_state() atomic read-modify-write under single exclusive lock (LOCK_EX)
  • Follows stats.py fcntl file locking patterns
  • 9 tests across 4 test classes, all passing
  • 356 existing tests unaffected (zero regression)

Test plan

  • python3 -m pytest tests/test_hud_state.py -v — 9 passed
  • python3 -m pytest tests/ -q — 356 passed
  • lint, format:check, typecheck, test:coverage, circular, build — all passed
  • Security audit (all workspaces) — no issues

Closes #1087

- 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
@JeremyDev87 JeremyDev87 added feat sub-issue 상위 이슈의 하위 작업 plugin packages/claude-code-plugin wow-experience Plugin Wow Experience Design labels Mar 28, 2026
@vercel

vercel Bot commented Mar 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Mar 28, 2026 1:50pm

@JeremyDev87 JeremyDev87 self-assigned this Mar 28, 2026
@JeremyDev87 JeremyDev87 merged commit c556c1d into master Mar 28, 2026
28 checks passed
@JeremyDev87 JeremyDev87 deleted the feat/hud-state-module-1087 branch March 28, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat plugin packages/claude-code-plugin sub-issue 상위 이슈의 하위 작업 wow-experience Plugin Wow Experience Design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(plugin): add HUD state module (hud_state.py)

1 participant