cloudflare / cloudflare/agents

In AIChatAgent onError's error argument should never be undefined.

Open
#388 4 comments 0 reactions 1 assignee Claimed by @threepointone View on GitHub
bug
Dominant language
TypeScript
Stars
5.6k
Forks
711
Avg merge
1d 20h
Merged PRs (30d)
53

Description

```tsx
Agent.onError(connection: Connection, error?: unknown): void | Promise
```

In what context should onError ever be called with an undefined error?

My agent is silently failing and i have no clue why.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.