Files
neoirc/internal/server
clawbot 6a514b565c
check / check (push) Successful in 2m22s
Build the HTTP router before the server starts (closes #104)
The fx OnStart hook started a goroutine that built the router and then
began serving, so OnStart returned before the router existed. Code that
served requests through the started Server, as the internal/handlers
tests do, raced with that goroutine or hit a nil router.

OnStart now configures the server, enables Sentry and builds the router
itself, and only then starts serving in the background. Sentry is set up
first because the routes depend on whether it is enabled. Run, whose
only caller was that hook, is folded into it.

Model: opus-5-5
2026-09-29 10:40:36 +00:00
..