<APP-47> Refactor components to support V1 types -...
# proj-sdk
m
APP-47 Refactor components to support V1 types - WebSocket issue đź§µ
Hi @freezing-spoon-14104, I have created a new V1 conversation using the following API endpoint: /api/v1/app-conversations. Afterward, when accessing the conversation through the UI, I encountered an issue related to the WebSocket connection. Please refer to the image and link below for additional details. For reference, I’m running the latest backend code from the v1-integration branch. Do you have any insights or suggestions regarding this issue? Thank you! thankyou > ws://localhost:50095/socket.io/?latest_event_id=-1&conversation_id=d6edaccf-ea7d-4505-a305-49320cef2083&providers_set=github%2Cgitlab&session_api_key=QuTHtAGRuKUlJJ225NGRmi82FBS67DzuG2zPY0MpCCR&EIO=4&transport=websocket
f
It looks like it is using the v0 WS handler. You probably need to update the version passed in https://github.com/All-Hands-AI/OpenHands/blob/2bbe15a329e35f5156cdafcbe63c3fd54978ff98/frontend/src/routes/conversation.tsx#L109 to property use the V1 handler
đź‘€ 1
m
I have encountered another error: “Connection lost – unexpected disconnect.” ws://localhost/events/socket
f
Oh because I haven't implemented the logic to build the URL. We need to pass the PORT and session ID to properly connect to the WS. Right now it attempts to connect to
ws://localhost/events/socket
❤️ 1
thankyou 1
m
Yeah, I’ll try hardcoding the UR. Thank you! thankyou
f
OK we might be able to start testing it with https://github.com/All-Hands-AI/OpenHands/pull/11336 I still have some work to do in this PR, but the core functionality is established. You just need to merge the v1-integration PR to properly test it. I recommend created a separate branch off of your branch, then merge my and v1-integration PRs into it to test.
Avoid pushing changes that already include the v1-integration changes, I'd rather keep these separate until Tim's PR is merged to main
m
I am currently testing your branch. The conversation feature is not yet ready for message transmission.
f
The conversation feature is not yet ready for message transmission.
What do you mean? Something missing in my PR that prevents from testing V1 components?
m
According to the image above, the server status remains at “Starting”, and the Agent Status continues to show as “Disconnected.” The status does not change to “Waiting for task”; therefore, the chat input remains disabled, preventing us from sending messages.
f
Oh OK, yeah. Just reminded me I have to implement send API
m
Since the Agent Status continues to show as “Disconnected.” I am unable to send messages, I am currently unable to test the V1 components.
f
Yes I'm on this right now thanks on a stick
thankyou 1