gsxdsm
e16893a3c7
FN-5832: surface unsupported message-role provider errors
Make unsupported provider message-role failures fail fast with actionable operator guidance.
- detect provider errors that reject `messages.[n].role` values via a dedicated transient-error detector helper
- classify unsupported message-role failures as operator-actionable/permanent to prevent retry loops
- annotate `promptSessionAndCheck` failures with model/provider compatibility guidance for imported company-role agents
- add regression tests for role-error detection, operator-actionable classification, and prompt-boundary error hinting
- add a patch changeset for `@runfusion/fusion`
Files changed:
.changeset/fn-5832-unsupported-message-role.md | 5 +++
.../pi-prompt-session-and-check-recursion.test.ts | 24 +++++++++++++++
.../src/__tests__/transient-error-detector.test.ts | 36 ++++++++++++++++++++++
packages/engine/src/pi.ts | 8 +++++
packages/engine/src/transient-error-detector.ts | 14 ++++++++-
5 files changed, 86 insertions(+), 1 deletion(-)
Fusion-Task-Id: FN-5832
Fusion-Task-Lineage: b3f78f0e-d097-4cb7-a652-dc547f46fe1d
2026-06-01 07:53:56 -07:00
..
2026-04-25 09:09:31 -07:00
2026-05-31 20:50:09 -07:00
2026-05-31 21:08:41 -07:00
2026-05-31 23:24:53 -07:00
2026-06-01 01:42:19 -07:00
2026-06-01 01:30:34 -07:00
2026-06-01 01:37:25 -07:00
2026-06-01 04:47:19 -07:00
2026-06-01 05:15:14 -07:00
2026-06-01 03:23:10 -07:00
2026-06-01 05:39:01 -07:00
2026-06-01 07:53:56 -07:00