Skip to content

Conversation

@Prashant-Microsoft
Copy link
Contributor

@Prashant-Microsoft Prashant-Microsoft commented Jun 3, 2025

Purpose

This pull request introduces enhanced error handling for rate limit scenarios and improves error messaging across the backend and frontend. The changes aim to provide more informative feedback to users and developers when encountering specific errors, such as rate limits or plan creation issues.

Backend Error Handling Improvements:

  • src/backend/app_kernel.py: Updated the input_task_endpoint to include the exception message in the HTTP error response for better debugging.
  • src/backend/kernel_agents/planner_agent.py: Added logic to detect rate limit errors, log a warning suggesting retrying later, and raise the exception explicitly. Improved logging for structured plan creation failures.

Frontend Error Messaging Enhancements:

  • src/frontend/wwwroot/home/home.js: Implemented a check for rate limit errors in the API response. Displays a user-friendly notification when rate limits are exceeded and resets the UI elements to ensure usability.

Does this introduce a breaking change?

  • Yes
  • No

@Roopan-Microsoft Roopan-Microsoft merged commit 6846e40 into hotfix Jun 4, 2025
4 checks passed
@Roopan-Microsoft Roopan-Microsoft deleted the psl-bug-18418-hotfix branch June 4, 2025 06:44
@github-actions
Copy link

github-actions bot commented Jun 5, 2025

🎉 This PR is included in version 1.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

blessing-msft pushed a commit that referenced this pull request Aug 1, 2025
feat: added rate limit error pop up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants