[feat](trx-server): persist 24h decode history across restarts

Move persistent history from trx-client to trx-server where decode
events originate. History for AIS, VDES, APRS, CW, FT8, and WSPR is
loaded from ~/.local/cache/trx-rs/history.db at startup and flushed
to disk every 60 seconds. CW events are now also stored in
DecoderHistories and replayed to connecting clients, consistent with
all other decoder types.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-07 09:50:42 +01:00
parent b65b85e13c
commit 2f1b0609fb
7 changed files with 254 additions and 25 deletions
-1
View File
@@ -15,7 +15,6 @@ toml = { workspace = true }
tracing = { workspace = true }
clap = { workspace = true, features = ["derive"] }
dirs = "6"
pickledb = "0.5"
bytes = "1"
cpal = "0.15"
opus = "0.3"