Skip to content

Commit cf23ff4

Browse files
m4r1kclaude
andcommitted
chore: bump version to 5.2.2 and consolidate changelog
PR A's [Unreleased] block is folded into the [5.2.2] entry, with the shutdown re-arm fix from this PR added under Fixed (covers both the single-UPS and multi-UPS coordinator paths). Single 5.2.2 release covers both PRs: TUI usability fixes (#40) and the shutdown re-arm fix for bug #4 (#41). Co-Authored-By: Claude Opus 4.7 <[email protected]>
1 parent 38ada61 commit cf23ff4

2 files changed

Lines changed: 37 additions & 23 deletions

File tree

docs/changelog.md

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,53 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10-
## [Unreleased]
10+
## [5.2.2] - 2026-04-28
11+
12+
TUI usability fixes plus one safety-critical re-arm fix on the shutdown
13+
state machine. Drop-in upgrade.
1114

1215
### Fixed
13-
- **`eneru tui --graph voltage` was silently ignored in interactive mode.**
14-
The CLI flag now seeds the initial graph metric (and `--time` seeds the
15-
initial window) even without `--once`. Pressing `<G>` / `<T>` still cycles
16-
from there.
17-
- **A single phantom 0V sample squashed the voltage band into a one-pixel
18-
strip at the top of the graph.** Two layers of fix: the writer drops
19-
on-line `input.voltage <= 0` rows at sample time (with `ups.status` in
20-
context, so real outages — `OB` / `FSD` — still record a legitimate dip
21-
to 0V), and the graph panel auto-scales unbounded metrics from the
22-
5th/95th percentile so any leftover outliers don't dictate the band.
16+
- **Shutdown trigger never re-armed after `POWER_RESTORED`** when the
17+
local-shutdown command failed to actually halt the host (custom
18+
no-op command, sandboxed environment, dummy-UPS test rig — bug #4).
19+
Subsequent on-battery transitions silently no-op'd at the flag-file
20+
gate. The handler now clears the flag on the OB/FSD → OL transition,
21+
and `MultiUPSCoordinator` resets its in-memory lock + global flag in
22+
the same hook so multi-UPS deployments re-arm too. Gated re-triggers
23+
also log a warning so the no-op is no longer silent.
24+
- **`eneru tui --graph voltage` silently ignored in interactive mode.**
25+
The CLI flag now seeds the initial graph metric, and `--time` seeds
26+
the initial window; `<G>` / `<T>` cycle from there.
27+
- **A single phantom 0 V sample squashed the voltage band into a
28+
one-pixel strip at the top of the graph.** Writer drops on-line
29+
`input.voltage <= 0` rows at sample time (real outages — `OB`/`FSD`
30+
— still record the legitimate dip to 0 V); graph panel auto-scales
31+
unbounded metrics from the 5th/95th percentile so any leftover
32+
outliers don't dictate the band.
2333

2434
### Added
25-
- **`--verbose` / `-v` flag** on `eneru tui` (live + `--once`): widens the
35+
- **`--verbose` / `-v`** on `eneru tui` (live + `--once`): widens the
2636
events filter to include low-priority chatter alongside the priority
27-
defaults. The live TUI also gains a `<V>` keybind to toggle in-session.
28-
- **`--full-history` flag** for `eneru tui --once`: ignore the `--time`
37+
defaults. Live TUI gains a `<V>` keybind to toggle in-session.
38+
- **`--full-history`** for `eneru tui --once`: ignore the `--time`
2939
window and query the events table from the beginning. Rejects with
30-
``error: --full-history requires --once`` (exit 2) if combined with the
31-
live TUI.
40+
`error: --full-history requires --once` (exit 2) when combined with
41+
the live TUI.
3242

3343
### Changed
34-
- **Events panel now defaults to priority-only** in both live TUI and
35-
`eneru tui --once --events-only`. Daemon lifecycle, shutdown triggers,
36-
and power transitions surface; per-condition chatter
37-
(`VOLTAGE_FLAP_SUPPRESSED`, etc.) is hidden. Migration: scripts that
38-
grep the `--once --events-only` output for low-priority event types
39-
must add `--verbose`.
44+
- **Events panel defaults to priority-only** in both live TUI and
45+
`eneru tui --once --events-only`. Daemon lifecycle, shutdown
46+
triggers, and power transitions surface; per-condition chatter
47+
is hidden. Scripts that grep `--once --events-only` for
48+
low-priority event types must now pass `--verbose`.
4049
- Live TUI events panel default cap raised from 8 to 20 rows so a few
4150
voltage transitions don't push the daemon-level history off-screen.
4251

52+
### Migration notes
53+
None for the package install. Scripts parsing `eneru tui --once
54+
--events-only` output: add `--verbose` if you rely on seeing
55+
low-priority event types (voltage flaps, etc.).
56+
4357
---
4458

4559
## [5.2.1] - 2026-04-24

src/eneru/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
# Version is set at build time via git describe --tags
44
# Format: "5.2.1" for tagged releases, "5.2.1-5-gabcdef1" for dev builds
5-
__version__ = "5.2.1"
5+
__version__ = "5.2.2"

0 commit comments

Comments
 (0)