Skip to content

Conversation

pan93412
Copy link
Member

No description provided.

@pan93412 pan93412 self-assigned this Oct 12, 2025
Copy link
Contributor

vercel bot commented Oct 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dbplay-app Ready Ready Preview Comment Oct 12, 2025 7:07pm

@pan93412 pan93412 requested a review from Copilot October 12, 2025 19:06
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes missing response events in the chat API by restructuring the error handling and ensuring proper PostHog client shutdown. The changes remove the try-finally block and integrate the cleanup logic directly into the stream response callback.

  • Removed try-finally block that was preventing proper event handling
  • Integrated PostHog client shutdown into the stream response onFinish callback

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 merged commit 8ebc44c into main Oct 12, 2025
3 checks passed
@pan93412 pan93412 deleted the missing-response-events branch October 12, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant