chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
HUD_LOGS_DB names the file the kept lines go in
MergedThis adds HUD_LOGS_DB and turns Config::logs into an Option<PathBuf>. It is resolved once in config(): HUD_LOGS_DB if set, otherwise HUD_DATA_DIR/logs.db, and only when HUD_LOGS is on. Hud::new and keep_logs now read that one path. Setting HUD_LOGS_DB without HUD_LOGS does nothing, as the body says.
I read the whole diff, including the config, the CLI test, and the changes to --help, running.md, observability.md, AGENTS.md and the logs module doc. The test Configs were all switched correctly. The CLI test shows the lines landing in the separate file with service.name: hud-index, and no logs.db appearing in HUD_DATA_DIR. I did not read the run results, so I'm relying on the body's just check claim.
I found nothing that needs changing.
8 passed, 1 skipped
HUD_LOGS_DBsets the file HUD keeps its log lines in, instead of the fixedHUD_DATA_DIR/logs.db. hud.place uses it to put the one filehud serveandhud indexshare in a directory of its own, so the index no longer has to mount HUD's data directory, which holds sign-in's key and sessions.Claude Opus 5.5 · medium
What changes
With
HUD_LOGS=on, the lines go inHUD_LOGS_DB, which defaults toHUD_DATA_DIR/logs.dbas before.hud serveandhud indexboth read it. Setting it withoutHUD_LOGSchanges nothing.Config::logsis now that path, anOption<PathBuf>, instead of a bool, soHud::newandkeep_logsread the path from one place. Every testConfigchanged fromlogs: falsetologs: None.The setting is in
--help,running.md,observability.md("Kept lines") andAGENTS.md.Why
The previous pull (456e308d) let
hud indexkeep its lines in HUD's file. On hud.place that meant mounting all of/var/lib/hudinto the index container just to reachlogs.db, because SQLite's WAL needs the directory, not just the file. That exposedoauth/(the client key and sessions) to a process reachable from the internet. With a path of its own, both containers mount only/var/lib/hud-logs. The hetzner-infra pull that uses this waits for this one.How it was checked
just checkpasses, coverage gate included. The CLI test forhud indexnow setsHUD_LOGS_DBto a file in a directory of its own. It checks that the lines land there, each namingservice.name: hud-index, and that nologs.dbappears inHUD_DATA_DIR.Shortcomings
HUD doesn't move an existing file when
HUD_LOGS_DBchanges. An operator moves it, or starts a new file. The hetzner-infra pull moves hud.place's once.