fix(core): preserve structured error messages (#33530)

This commit is contained in:
Aiden Cline
2026-06-23 18:43:59 -05:00
committed by GitHub
parent b7acf4f906
commit 29174e3957
11 changed files with 73 additions and 9 deletions
@@ -1016,6 +1016,8 @@ it.instance("ModelNotFoundError includes suggestions for typos", () =>
.pipe(Effect.flip)
expect(error.suggestions).toBeDefined()
expect((error.suggestions ?? []).length).toBeGreaterThan(0)
expect(error.message).toContain("Model not found: anthropic/claude-sonet-4")
expect(error.message).toContain("Did you mean:")
}),
)