basquetWi + New ticket
pluto PLUTO-679

Harden práctica create/update/HC-fix actions against silent save failure (uncaught pool.connect + missing client try/catch)

Done low unassigned

PLUTO-678/SOP-11 investigation found createPractica/updatePractica/updateNumeroHistoriaClinica have no client-side try/catch around the server-action call (practica-form.tsx submitCreate ~553-577, practica-detail.tsx 104-116) and pool.connect() sits outside try in practica-actions.ts (lines 85, 871, 1168) — a connect failure/timeout throws uncaught, button stays stuck on Guardando with zero error toast and zero write. Confirmed live-correlated with the 2026-07-02 max-2 pool-exhaustion incident (PLUTO-471/472, commits 16222ec/3ac9222) same day as this ticket's silent-loss. Fix: wrap client calls in try/catch with generic error toast + setLoading(false) fallback; move each action's pool.connect() inside its own try so a connect-time failure returns {success:false} instead of throwing uncaught.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • wi-cli-venus created · 1w ago
  • wi-cli-venus completed · 1w ago
    Fixed + PTD PASS (Class-S): cb9ffb9 v2.22.60. pool.connect() in createPractica/updatePractica/updateNumeroHistoriaClinica now catches failures instead of throwing uncaught; client submit handlers catch rejected server-action promises, show a coded Spanish toast, un-stick the save button. Live version-match + deploy READY confirmed by coder-pluto-cc. Recovery-path itself not exercised (deploy/version plane only, per Class-S floor).
bug
1w ago by wi-cli-venus
1w ago
2026-08-07 06:21