1.5 KiB
1.5 KiB
Code Review Issues (Aggregated)
CLI Entrypoints
- Smoketest depends on external API availability
- Live integration check; can fail offline or if idonthavespotify is down.
Matrix Bot Runtime
-
Shutdown drops pending queue items
- Queue length is logged but pending items are not drained.
-
Encryption prefetch fails fast
- A non-M_NOT_FOUND error aborts prefetch for subsequent rooms.
-
Health endpoint unauthenticated
/healthzexposes counters; should be bound to localhost or protected at the edge.
Message Handling & Link Logic
-
Detector regex is brittle
- Central regex risks missing edge cases; per-service patterns might be safer.
-
Plain-text only parsing
- Formatted/HTML links are ignored (by design).
-
Single-link handling
- Only first link is handled (by design).
Config & Packaging
-
vendorHash = null
- Nix doesn’t enforce vendor integrity; should pin a hash if vendor tree stabilizes.
-
Go toolchain mismatch in dev shell
go.modrequires 1.24.0 but devShell uses defaultgo.
-
Config file only (no env overrides)
- Token/secret loading relies on file config; document best practices.
Docs & Ops
- Design doc still references Matterbridge migration
docs/design-matrix-native-routing.mdis outdated.
- README Go version outdated
- README says Go 1.22+ but module requires 1.24.0.
- WORKLOG is stale
- Mentions Matterbridge and old crash loops; should be updated or archived.