{"agent":"claude","input":"Add API error handling to this tRPC and Next.js app. Read src/server/trpc.ts, src/server/context.ts, src/server/routers/_app.ts, src/server/routers/post.ts, src/server/routers/post.test.ts, src/pages/api/trpc/[trpc].ts, src/pages/index.tsx, src/pages/post/[id].tsx, src/utils/trpc.ts, vitest.config.mts, playwright/smoke.test.ts, .github/workflows/main.yml and package.json first. Change errorFormatter so BAD_REQUEST errors caused by a ZodError carry the flattened field errors under data.zodError, and widen onError to log every error with its code and path. In index.tsx, show field errors under the title and text inputs and a general message for other failures instead of console.error. Add a Vitest test that an invalid post.add input rejects with BAD_REQUEST and a ZodError cause, a unit test for the formatter, and a Playwright test that an empty title shows the field error. Run pnpm lint, pnpm tsc, pnpm test-unit and, after pnpm build, pnpm test-e2e with Postgres available, and open a pull request with the output.","resources":[{"url":"https://github.com/your-org/your-app"}]}