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

Allow sending messages while client is connecting #6999

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

xingyaoww
Copy link
Collaborator

@xingyaoww xingyaoww commented Feb 27, 2025

Description

This PR implements a feature that allows users to send messages while the OpenHands client is still connecting. Messages are queued and automatically sent once the connection is established.

Changes

  • Added message queuing system in WebSocket client provider
  • Updated UI to show pending message count
  • Modified input disabling logic to allow message input during loading
  • Enhanced status indicators to provide better feedback

Benefits

  • Improved user experience by allowing immediate interaction
  • Reduced perceived latency
  • Better feedback about connection status
  • Seamless transition when connection is established

Fixes the issue where users see "Waiting for client to become ready..." and cannot interact with the chat interface.


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:d5a996a-nikolaik   --name openhands-app-d5a996a   docker.all-hands.dev/all-hands-ai/openhands:d5a996a

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