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
commit c17b9557f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 73 additions and 9 deletions

View file

@ -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:")
}),
)