Content-Length: 293391 | pFad | https://github.com/All-Hands-AI/OpenHands/pull/10033

E1 perf: remove the sleep before runtime initialization by hereisok · Pull Request #10033 · All-Hands-AI/OpenHands · GitHub
Skip to content

Conversation

hereisok
Copy link
Contributor

@hereisok hereisok commented Aug 1, 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 this introduces.


Summarize what the PR does, explaining any non-trivial design decisions.

Solve the problem of an extra 1s sleep during runtime initialization. The 1s sleep is to avoid the gap in the front-end WebSocket connection establishment, which may not accurately push messages. The new design checks whether there is a connection on the SIO object when pushing the first message, and shifts the wait here, improving the efficiency of message push.


Link of any specific issues this addresses:

@mamoodi mamoodi requested a review from tofarr August 4, 2025 18:46
@tofarr
Copy link
Collaborator

tofarr commented Aug 14, 2025

Nice work!

@neubig neubig assigned neubig and unassigned neubig Aug 15, 2025
@mamoodi mamoodi merged commit e7aae14 into All-Hands-AI:main Aug 25, 2025
17 checks passed
chuckbutkus pushed a commit that referenced this pull request Aug 26, 2025
Signed-off-by: hereisok <hereisok@angai.wk@gmail.com>
Co-authored-by: mamoodi <mamoodiha@gmail.com>
enyst pushed a commit to enyst/playground that referenced this pull request Sep 4, 2025
)

Signed-off-by: hereisok <hereisok@angai.wk@gmail.com>
Co-authored-by: mamoodi <mamoodiha@gmail.com>
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.

4 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/All-Hands-AI/OpenHands/pull/10033

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy