fix(opencode): surface content-filter finish reason as visible error (#31745)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Kevin Dawkins 2026-06-11 08:41:11 -07:00 committed by GitHub
commit e2527db3c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 110 additions and 0 deletions

View file

@ -308,6 +308,13 @@ export type ContextOverflowError = {
}
}
export type ContentFilterError = {
name: "ContentFilterError"
data: {
message: string
}
}
export type ApiError = {
name: "APIError"
data: {
@ -339,6 +346,7 @@ export type AssistantMessage = {
| MessageAbortedError
| StructuredOutputError
| ContextOverflowError
| ContentFilterError
| ApiError
parentID: string
modelID: string
@ -1249,6 +1257,7 @@ export type GlobalEvent = {
| MessageAbortedError
| StructuredOutputError
| ContextOverflowError
| ContentFilterError
| ApiError
}
}
@ -4920,6 +4929,7 @@ export type EventSessionError = {
| MessageAbortedError
| StructuredOutputError
| ContextOverflowError
| ContentFilterError
| ApiError
}
}