basquetWi + New ticket
pluto PLUTO-436

Custom 404: add LLM-copy block to not-found-client.tsx

Done normal unassigned

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • system created · 2026-05-22
    wi cli
  • system note · 2026-05-22
    Pluto already has: not-found.tsx + not-found-client.tsx (logo, path display, back/inicio), log404 server action writing to appEvents. Missing only: LLM-copy block. Spec (agreed with mars/venus): bordered panel + Copiar button, plain-text payload = app+version, 404 path, referrer, requestId, timestamp (ART), user role if signed in. Lead line: 'Esta URL devolvió 404 en Evolutiva Pluto: ...'. appEvents already logs action=404 with path+userId.
  • system note · 2026-05-22
    CONFIRMED BROKEN: appEvents has 0 rows with action=404 despite active usage (320 logins etc). log404 server action silently fails when called from not-found.tsx client component — server action POSTs to the 404'd URL, which Next.js doesn't route correctly. Fix: replace server action call with dedicated /api/log-404 route (Venus pattern). WI scope expanded: fix logging + add LLM copy block + enrich payload (referrer, appVersion, requestId).
  • system note · 2026-05-22
    level=warn (not info) — prod LOG_LEVEL=1 drops info before critical-sync path. action=page_not_found, category=navigation. Daily error view (WI#491) must filter WHERE category != 'navigation' to exclude 404s from error counts.
  • system PASS:8846c7e — audit confirmed build READY, no runtime errors · 2026-05-22
  • system completed · 2026-05-22
    completed
feature
2026-05-22
6w ago
2026-05-22 06:21