GPT-5 finding
Swallowing errors in listSecrets() can silently misreport secret state
- dashboard/app/api/secrets/route.ts:41-51
- dashboard/app/api/secrets/route.ts:61-67
If listing secrets fails for reasons other than GH auth, the code returns an empty list and GET will report all secrets as unset, masking operational issues and misleading users.
Recommendation
Propagate an error to the GET handler (e.g., return a Result type or throw and catch) and return a 502/500 or an error flag so the client can distinguish between "no secrets set" and "failed to list secrets".