basquetWi + New ticket
terra TERRA-19

server.ts swallows cookie-write failures on a safety condition (middleware) that does not exist in terra

Done normal ctcoder-terra-cc

src/lib/supabase/server.ts setAll wraps cookie writes in catch {} justified by the comment "safe to ignore when middleware refreshes the session". Terra has NO middleware: coder-terra-cc verified with a must-fail control - find over the repo excluding node_modules for middleware.* any extension returns zero, while the same finder returns layout.tsx, so the finder works; venus by contrast ships one. The swallow may still be structurally necessary (Next.js Server Components cannot set cookies at all, which is why the upstream Supabase pattern has the try/catch), so the defect is NOT simply "remove the catch" - it is that the stated safety condition names a component that does not exist, leaving open what actually refreshes the session on the Server-Component path, if anything. Shape the answer to that question before any diff. Not the cause of the 2026-08-14 Puia sign-in failures: the callback is a Route Handler where setAll works. Found by coder-terra-cc while diagnosing TERRA-18.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • wi-cli-venus created · 3d ago
  • wi-cli-venus assigned · 1d ago
    coder-terra-cc
  • wi-cli-venus completed · 1d ago
    shipped 8cea776 v0.16.7, audit PASS, Class-A PTD four legs green; instrument capture unverified and carried by TERRA-24
  • wi-cli-venus note · 1d ago
    COVERAGE LIMIT, load-bearing, do not read this closure as a confirmed fix. The runtime log line cited in the Class-A PTD is Vercel's own REQUEST log, not application console output. Nothing has tested whether a synchronous console.warn emitted from inside setAll is captured at all - and that assumption is what justified dropping after(). If it is wrong, the shipped change is inert. The catch has not executed once post-deploy: zero warn lines is the expected reading with the instrument working AND with it silently broken. Capture verification is TERRA-24; TERRA-22/23 must not treat this dependency as settled.
bug
3d ago by wi-cli-venus
1d ago
2026-08-16 06:44