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

refactor: move session initialization from WebSocket to REST API #5493

Merged
merged 90 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
a734768
refactor: move session initialization from WebSocket to REST API
openhands-agent Dec 9, 2024
636b53d
refactor: move protected endpoints under /api/conversation/{convo_id}…
openhands-agent Dec 9, 2024
f6971dd
fix: ensure conversation is initialized before sending first message
openhands-agent Dec 9, 2024
50b0cc4
fix: initialize session in TaskForm instead of ChatInterface
openhands-agent Dec 9, 2024
dcafd16
rename middleware
rbren Dec 9, 2024
c26fb9f
refactor: move session initialization to separate router
openhands-agent Dec 9, 2024
d6940f7
refactor: use conversation ID in websocket path
openhands-agent Dec 9, 2024
0ddff4d
fix: move ConversationProvider to root component
openhands-agent Dec 9, 2024
118189e
refactor: change app route to /conversation/{conversation_id}
openhands-agent Dec 9, 2024
7c15f33
refactor: use explicit conversation ID instead of extracting from token
openhands-agent Dec 9, 2024
9359a03
fix: use existing session ID logic and fix websocket auth
openhands-agent Dec 9, 2024
f0fc4cb
revert some stuff
rbren Dec 10, 2024
0aac59f
revert socket
rbren Dec 10, 2024
6779403
remove param
rbren Dec 10, 2024
181c318
refactor server side
rbren Dec 10, 2024
19c9531
fix initSession params
rbren Dec 10, 2024
348516e
add some logging and fix url
rbren Dec 10, 2024
1b6d2bf
fix: properly pass conversationId from URL to WsClientProvider
openhands-agent Dec 10, 2024
f58f9d9
refactor: simplify conversation context and fix provider placement
openhands-agent Dec 10, 2024
26b2c98
refactor: remove setConversationId usage from components
openhands-agent Dec 10, 2024
9de723e
fix: type errors in task form and app route
openhands-agent Dec 10, 2024
6931a05
refacter last event id
rbren Dec 10, 2024
fb2c927
remove auth from attach session
rbren Dec 10, 2024
2219774
add convo ids
rbren Dec 10, 2024
cb64a66
fix middleware
rbren Dec 10, 2024
ac116db
change api calls
rbren Dec 10, 2024
7d27cab
change api calls
rbren Dec 10, 2024
277deae
fix some lint
rbren Dec 10, 2024
57053b5
refactor: add conversationId param to API calls and remove unused tok…
openhands-agent Dec 10, 2024
e48246b
middleware working
rbren Dec 10, 2024
8c36835
fix: frontend tests for session init API changes
openhands-agent Dec 10, 2024
9aa1429
fix: use useMemo for conversation context value
openhands-agent Dec 10, 2024
bfe4313
refactor: move session initialization to useMutation hook
openhands-agent Dec 13, 2024
2ed16e7
fix: add conversationId to WebSocket effect dependencies
openhands-agent Dec 13, 2024
1075510
refactor: remove redundant en.ts file in favor of translation.json
openhands-agent Dec 13, 2024
8b826de
refactor: remove unnecessary useEffect in route.tsx
openhands-agent Dec 13, 2024
dcbe1c9
fix: resolve merge conflicts with main branch
openhands-agent Dec 13, 2024
110b234
style: fix lint errors
openhands-agent Dec 13, 2024
8778c93
test: fix i18next mock in browser test
openhands-agent Dec 13, 2024
e5a5358
fix: update react-i18next mock to properly handle I18nextProvider
openhands-agent Dec 13, 2024
abb115b
Merge branch 'main' into refactor/session-init-api
rbren Dec 18, 2024
bd87371
fix convo ID
rbren Dec 18, 2024
6aefa00
factor out some file locations
rbren Dec 18, 2024
89a2864
add metadata to sessions
rbren Dec 18, 2024
f0a7efb
add multi-tenant warning
rbren Dec 18, 2024
407831d
Merge branch 'main' into refactor/session-init-api
rbren Dec 18, 2024
b33e76b
delint
rbren Dec 18, 2024
f57baf0
fix build
rbren Dec 18, 2024
40847df
fix tests
rbren Dec 18, 2024
c1b561a
add log
rbren Dec 18, 2024
81559af
Merge branch 'main' into refactor/session-init-api
rbren Dec 18, 2024
0773e8b
rename to AttachConversation
rbren Dec 18, 2024
aab55d3
add logging
rbren Dec 18, 2024
ef5f8d2
Merge branch 'main' into refactor/session-init-api
rbren Dec 18, 2024
28fde38
add conversation store
rbren Dec 18, 2024
606b89d
auth working better
rbren Dec 18, 2024
25d475a
Merge branch 'main' into refactor/session-init-api
rbren Dec 18, 2024
3dfaa13
remove github_auth method
rbren Dec 18, 2024
eef58ac
revert jwt
rbren Dec 18, 2024
502ab84
fix tests
rbren Dec 18, 2024
36ce05e
no clear
rbren Dec 19, 2024
8577cdd
Update openhands/server/middleware.py
rbren Dec 19, 2024
719841c
fix for settings store
rbren Dec 19, 2024
c73ea89
Merge branch 'refactor/session-init-api' of ssh://github.com/all-hand…
rbren Dec 19, 2024
fa7d5af
add log
rbren Dec 19, 2024
b69c957
better error handling
rbren Dec 19, 2024
cb59cb3
Merge branch 'main' into refactor/session-init-api
rbren Dec 19, 2024
4d58e9f
Update frontend/test-utils.tsx
rbren Dec 19, 2024
105d32c
frontend feedback
rbren Dec 19, 2024
766e421
fix slash
rbren Dec 19, 2024
a95e82d
import
rbren Dec 19, 2024
e815358
Update frontend/src/components/shared/task-form.tsx
rbren Dec 19, 2024
4ca1235
Merge branch 'main' into refactor/session-init-api
rbren Dec 19, 2024
409c32f
add logging
rbren Dec 19, 2024
6e4ac70
add a terrible hack
rbren Dec 19, 2024
aa0b427
fix lint
rbren Dec 19, 2024
74563cb
fix mem filestore
rbren Dec 19, 2024
24e9ca7
Merge branch 'main' into refactor/session-init-api
rbren Dec 19, 2024
8dbec4b
fix new convo args
rbren Dec 19, 2024
e922a2f
fix new convo args
rbren Dec 19, 2024
b6b5087
revert file
rbren Dec 19, 2024
6484f5f
fix lint
rbren Dec 19, 2024
ed4f419
Merge branch 'main' into refactor/session-init-api
rbren Dec 19, 2024
fe5baba
rename attach_session
rbren Dec 19, 2024
7a6330f
clear file store during tests
rbren Dec 19, 2024
26fe166
lint
rbren Dec 20, 2024
dd6b5a2
pluralize path
rbren Dec 20, 2024
7e1abdc
more plurals
rbren Dec 20, 2024
2a75d53
delint
rbren Dec 20, 2024
9e9e308
Merge branch 'main' into refactor/session-init-api
rbren Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ or run it on tagged issues with [a github action](https://github.com/All-Hands-A

Visit [Installation](https://docs.all-hands.dev/modules/usage/installation) for more information and setup instructions.

> [!CAUTION]
> OpenHands is meant to be run by a single user on their local workstation.
> It is not appropriate for multi-tenant deployments, where multiple users share the same instance--there is no built-in isolation or scalability.
>
> If you're interested in running OpenHands in a multi-tenant environment, please
> [get in touch with us](https://docs.google.com/forms/d/e/1FAIpQLSet3VbGaz8z32gW9Wm-Grl4jpt5WgMXPgJ4EDPVmCETCBpJtQ/viewform)
> for advanced deployment options.

If you want to modify the OpenHands source code, check out [Development.md](https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md).

Having issues? The [Troubleshooting Guide](https://docs.all-hands.dev/modules/usage/troubleshooting) can help.
Expand Down

This file was deleted.

Loading
Loading