Add dark-blue shutdown restore #25

Merged
JackFrostbyte merged 1 commit from feature/v0.4-issue-12 into main 2026-05-09 00:34:20 -04:00

Title:
Add graceful dark-blue shutdown restore

Description:
Implements issue #12.

Summary:

  • Added centralized shutdown cleanup for dark-blue restore.
  • Restores active RGB Aura zones to dark blue from a shared finally path.
  • Keeps Ctrl+C handling clean while still restoring dark blue when --leave-dark-blue is enabled.
  • Preserves normal duration/cycle completion behavior.
  • Prevents shutdown restore failures from hiding the original runtime exit path.

Validation:

  • ruff format src/rgb_aura
  • ruff check src/rgb_aura scripts tests
  • PYTHONPATH=src python scripts/validate_device_mapping.py
  • rgb-aura --duration 10 --leave-dark-blue --seed 12345
  • rgb-aura --duration 120 --leave-dark-blue --seed 12345, interrupted with Ctrl+C

Result:

  • Normal completion restores active zones to dark blue before shutdown.
  • Ctrl+C interruption restores active zones to dark blue before shutdown.
  • Device mapping validation still passes.
  • Reserved ARGB zone remains untouched.

Closes #12

Title: Add graceful dark-blue shutdown restore Description: Implements issue #12. Summary: - Added centralized shutdown cleanup for dark-blue restore. - Restores active RGB Aura zones to dark blue from a shared finally path. - Keeps Ctrl+C handling clean while still restoring dark blue when --leave-dark-blue is enabled. - Preserves normal duration/cycle completion behavior. - Prevents shutdown restore failures from hiding the original runtime exit path. Validation: - ruff format src/rgb_aura - ruff check src/rgb_aura scripts tests - PYTHONPATH=src python scripts/validate_device_mapping.py - rgb-aura --duration 10 --leave-dark-blue --seed 12345 - rgb-aura --duration 120 --leave-dark-blue --seed 12345, interrupted with Ctrl+C Result: - Normal completion restores active zones to dark blue before shutdown. - Ctrl+C interruption restores active zones to dark blue before shutdown. - Device mapping validation still passes. - Reserved ARGB zone remains untouched. Closes #12
JackFrostbyte deleted branch feature/v0.4-issue-12 2026-05-09 00:34:20 -04:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JackFrostbyte/rgb-aura!25
No description provided.