diff --git a/examples/slackbot/src/slackbot/api.py b/examples/slackbot/src/slackbot/api.py index 47dfd5c2a..5af011212 100644 --- a/examples/slackbot/src/slackbot/api.py +++ b/examples/slackbot/src/slackbot/api.py @@ -279,12 +279,7 @@ async def handle_message(payload: SlackPayload, db: Database): channel_id=event.channel, thread_ts=thread_ts, ) - # Still return completed so we don't retry - return Completed( - message="Error during agent execution", - name="ERROR_HANDLED", - data=dict(error=str(e), user_context=user_context), - ) + raise finally: try: await mark_thread_completed(db, message_ts) diff --git a/examples/slackbot/src/slackbot/github/models.py b/examples/slackbot/src/slackbot/github/models.py index 4aaeda873..457329453 100644 --- a/examples/slackbot/src/slackbot/github/models.py +++ b/examples/slackbot/src/slackbot/github/models.py @@ -18,7 +18,7 @@ class GitHubLabel(BaseModel): name: str = Field(default="") color: str = Field(default="") - description: str = Field(default="") + description: str | None = Field(default="") class GitHubComment(BaseModel):