mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
`tty7 doctor` is described as checking "socket, dialect, config, versions, agent hooks, links, context". With a `config.json` that does not parse it printed every row green: server ok, dialect ok, status ok. Meanwhile every setting in that file was being ignored, a copy had been kept beside it, and saving was suppressed. The rows that mention config report `TTY7_CONFIG_DIR` — where the file should be, which is a different question from whether it is being read. There is now a row for the answer, from the same `LoadOutcome` the loader already returns: ok, none yet, not valid JSON, unreadable. It also exits 1 for the two broken states, for the reason written above the server check: doctor is the verb people run when something is not working, and `tty7 doctor || alert` has to fire. A config nothing reads is that, as much as an unreachable server is. All four states run against a live server: ok, none yet, NOT VALID JSON (rc 1), and back to ok after repairing the file with no restart.