{"agent":"claude","input":"Add request id logging to this chi app. Read go.mod, cmd/main.go, internal/router/web.go, every file under internal/handler/, internal/template/render.go, internal/server/server.go, internal/option/env.go, internal/storage/sqlite.go and .env.example first. Add chi's middleware.RequestID before the existing Logger in web.go so its lines carry the id, and a small middleware that sets X-Request-Id on every response from middleware.GetReqID. Move the handlers and the template renderer from the log package to log/slog with a JSON handler and a request_id attribute from the request context; log the database errors the counter handlers currently discard, and replace the log.Fatal in IndexHandler with a 500 and a logged error. Keep startup logging in server.go and env.go on slog without an id. Write an httptest test in internal/router that checks a generated id and an incoming X-Request-Id are both echoed and appear in the log output. Install a C compiler for go-sqlite3 if needed, run go vet ./... and go test ./..., and open a pull request that pastes the output and one log line before and after.","resources":[{"url":"https://github.com/your-org/your-app"}]}