Diego Rodrigues de Sa e Souza
a7e445edea
fix(sse): don't mark a valid Qoder PAT expired on a generic Cosy 500 ( #3247 ) ( #3283 )
...
A working Qoder PAT was reported as "expired". The validator probes the Cosy endpoint
(api1.qoder.sh) — which IS the correct PAT path (the executor falls back to it after the
expected 401 from api.qoder.com). The bug was the verdict: isCosyAppError (added by #2860 )
marked ANY Cosy 500 with "success":false as an auth failure, including a generic
{..."msgCode":500,"message":"Internal Server Error"} server fault — contradicting the
older #1391 "5xx = valid bypass" rule.
Narrow it: a Cosy 500 only marks the PAT invalid when the body carries an EXPLICIT auth
signal (unauthorized/forbidden/expired/token invalid/...); a generic Internal Server Error
falls back to valid-bypass. #2860 's protection for genuine auth rejections is preserved.
Regression test: tests/unit/qoder-cli.test.ts — the two pre-existing generic-500 cases now
assert valid:true (they encoded the #3247 bug) + a new explicit-auth-signal case asserts
valid:false. 13/13 green.
2026-06-06 03:11:58 -03:00
..
2026-06-06 00:20:51 -03:00
2026-06-05 00:50:08 -03:00
2026-05-29 19:54:00 -03:00
2026-06-01 19:46:58 -03:00
2026-06-04 20:05:38 -03:00
2026-03-05 08:41:44 -03:00
2026-05-01 12:37:09 -03:00
2026-05-04 01:36:53 -03:00
2026-04-13 13:13:37 -03:00
2026-05-21 01:29:12 -03:00
2026-04-16 16:07:44 -03:00
2026-05-23 01:46:59 -03:00
2026-05-26 23:51:47 -03:00
2026-05-21 01:29:12 -03:00
2026-04-13 13:13:37 -03:00
2026-05-21 01:29:12 -03:00
2026-05-21 01:29:12 -03:00
2026-05-30 13:03:02 -05:00
2026-03-23 11:08:14 -03:00
2026-04-17 21:02:26 -03:00
2026-05-26 23:51:47 -03:00
2026-05-26 23:51:47 -03:00
2026-05-31 18:17:34 -03:00
2026-05-29 13:21:36 -03:00
2026-05-13 10:55:33 -03:00
2026-04-13 14:43:32 -03:00
2026-05-31 18:17:34 -03:00
2026-05-24 18:05:58 -03:00
2026-04-19 19:50:30 -03:00
2026-04-12 22:41:12 -03:00
2026-04-19 19:50:30 -03:00
2026-05-30 14:35:53 +00:00
2026-05-15 12:51:07 -03:00
2026-05-26 23:51:47 -03:00
2026-05-15 12:51:07 -03:00
2026-05-02 00:48:54 -03:00
2026-05-12 20:28:02 -03:00
2026-05-23 01:46:59 -03:00
2026-05-30 13:03:02 -05:00
2026-06-03 23:53:03 -03:00
2026-06-05 21:21:40 -03:00
2026-05-29 19:54:00 -03:00
2026-05-10 00:55:06 -03:00
2026-05-31 18:06:18 -03:00
2026-05-29 12:44:29 -03:00
2026-05-20 02:05:50 -03:00
2026-05-24 18:05:58 -03:00
2026-04-25 23:51:18 -03:00
2026-06-03 18:24:41 -03:00
2026-05-10 00:55:06 -03:00
2026-03-17 13:10:23 -03:00
2026-04-30 14:08:50 -03:00
2026-05-26 23:51:47 -03:00
2026-05-26 23:51:47 -03:00
2026-05-29 13:21:36 -03:00
2026-05-14 20:19:55 -03:00
2026-04-11 09:38:17 -03:00
2026-06-04 20:05:38 -03:00
2026-06-06 00:20:51 -03:00
2026-05-23 01:46:59 -03:00
2026-05-29 13:21:36 -03:00
2026-05-24 18:05:58 -03:00
2026-05-10 00:55:06 -03:00
2026-05-31 09:05:35 -03:00
2026-04-12 10:34:10 -03:00
2026-03-23 09:21:03 -03:00
2026-05-29 12:44:29 -03:00
2026-05-29 12:44:29 -03:00
2026-04-22 01:39:49 -03:00
2026-05-29 12:44:29 -03:00
2026-05-31 11:31:34 -03:00
2026-05-23 01:46:59 -03:00
2026-05-01 16:11:13 -03:00
2026-05-29 12:44:29 -03:00
2026-05-10 00:55:06 -03:00
2026-06-05 01:57:40 -03:00
2026-06-06 03:11:58 -03:00
2026-05-29 13:21:36 -03:00
2026-05-26 23:51:47 -03:00
2026-04-13 13:11:30 -03:00
2026-05-30 07:28:16 -05:00
2026-05-29 13:21:36 -03:00
2026-06-04 20:05:38 -03:00
2026-05-31 19:13:41 -03:00
2026-05-29 13:21:36 -03:00
2026-06-04 20:05:38 -03:00
2026-05-16 10:13:08 -03:00
2026-05-29 13:21:36 -03:00
2026-06-04 20:05:38 -03:00
2026-05-29 13:21:36 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-05-26 23:51:47 -03:00
2026-05-24 18:05:58 -03:00
2026-03-14 10:59:15 -03:00
2026-06-06 02:48:38 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-05-10 00:55:06 -03:00
2026-05-29 12:44:29 -03:00
2026-05-30 21:18:33 -03:00
2026-06-04 20:05:38 -03:00
2026-05-29 13:21:36 -03:00
2026-06-03 18:29:31 -03:00
2026-06-05 13:12:40 -03:00
2026-03-30 12:58:45 -03:00
2026-05-30 21:17:52 -03:00
2026-04-17 23:21:02 -03:00
2026-04-03 00:15:35 -03:00