{"agent":"codex","input":"Add request id logging to this React Router app, which runs on the Express server in server.js with server/app.ts as the framework entry. Read server.js, server/app.ts, app/context.ts, app/root.tsx, app/routes/home.tsx, package.json and the tsconfig files first. Add middleware at the top of server.js that reuses an incoming x-request-id header or generates one with crypto.randomUUID(), stores it on res.locals and sets it on the response. Register a morgan token for it, replace the tiny format with one that includes the id, and log in development as well as production. Create a typed requestIdContext in app/context.ts, set it in getLoadContext in server/app.ts, add an app/lib/logger.server.ts helper that writes one JSON line per call with the id, use it once in the home loader, and show the id in the root ErrorBoundary through a root loader. Run npm run typecheck, npm run build and npm start, send requests with and without an x-request-id header and confirm the id appears in the response header, the access line and the loader log; repeat under npm run dev; build the Dockerfile. Open a pull request listing the files changed and what each check printed.","resources":[{"url":"https://github.com/your-org/your-app"}]}