Skip to content

Refactor reflection event handling and improve path resolution in Vit… #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yahyasamet
Copy link

1-Vite Configuration Update for Robust Path Aliasing:
Modified [vite.config.ts] to use fileURLToPath from the node:url module when resolving the '@' alias. This enhances the reliability of path resolution, particularly for Windows environments, preventing potential issues with module imports that use this alias.
Bug Fix for Reflection Event Handling in App.tsx:

2-Updated the onUpdateEvent handler in [App.tsx].
Specifically, within the logic for processing event.reflection, a defensive check has been added. The code now verifies that event.reflection.follow_up_queries is a valid, non-empty array before attempting to call the .join(',') method on it. This prevents a runtime TypeError that could occur if follow_up_queries was undefined or empty, ensuring smoother handling of reflection events from the LangGraph SDK.

Refactor reflection event handling and improve path resolution in Vit…
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