Skip to content
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

Feat out of credits msg #6969

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

Feat out of credits msg #6969

wants to merge 6 commits into from

Conversation

tofarr
Copy link
Collaborator

@tofarr tofarr commented Feb 26, 2025

  • This change is worth documenting at https://docs.all-hands.dev/
  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

End-user friendly description of the problem this fixes or functionality that this introduces.
Improves the user experience when running out of credits by displaying a clear message with a direct link to the billing settings page, making it easier for users to manage their subscription.


Give a summary of what the PR does, explaining any non-trivial design decisions.
This PR enhances the handling of out-of-credits scenarios by:

  1. Adding a new expandable message component in the chat interface to display credit-related errors
  2. Implementing internationalization support for the out-of-credits message
  3. Updating the agent controller to properly handle and propagate credit-related error states
  4. Adding a direct link to the billing settings page for convenient credit management

The expandable message format was chosen to provide both a concise error notification and detailed instructions when needed.


Link of any specific issues this addresses.
N/A


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:acd852a-nikolaik   --name openhands-app-acd852a   docker.all-hands.dev/all-hands-ai/openhands:acd852a

@tofarr tofarr marked this pull request as ready for review February 26, 2025 18:03
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.

2 participants