255 Commits

Author SHA1 Message Date
Xingyao Wang
d6cbdb68f6
Update openhands/controller/agent_controller.py 2024-11-06 23:38:53 +08:00
Xingyao Wang
32f241fe63
Update openhands/events/serialization/event.py 2024-11-06 23:38:48 +08:00
openhands
1068d9c1be refactor: Simplify truncate_content function
- Remove directory creation logic since /openhands/outputs is created by server
- Remove chmod calls since permissions are handled by server
- Keep core functionality of saving full content and truncating
2024-11-06 14:56:00 +00:00
openhands
45ccf9463f feat: Save full content when truncating
- Save full content to /openhands/outputs/ when truncation occurs
- Use timestamp in filename for uniqueness
- Add file path to truncation message
- Create outputs directory with proper permissions if needed
2024-11-06 14:55:10 +00:00
openhands
7edcf49790 refactor: Move truncate_content to action_execution_server
- Move truncate_content function to action_execution_server.py
- Remove truncation from event.py and agent_controller.py
- Centralize all truncation at the server level
2024-11-06 14:48:46 +00:00
openhands
eedfd253fb feat: Add message truncation to action execution server
- Add MAX_CHARS_MESSAGES constant (30_000) to server
- Truncate observation content in execute_action endpoint
- Centralize truncation in one place instead of client implementations
2024-11-06 14:44:27 +00:00
openhands
c848aa8db9 refactor: Move truncation to runtime level only
- Update MAX_CHARS_MESSAGES to 30_000 to match LLM config default
- Remove truncation from event serialization as it's now handled at runtime level
- Keep truncate_content function for reuse but don't call it in event.py
2024-11-06 14:29:45 +00:00
openhands
986f2e4b14 feat: Add message truncation to runtime observations
- Add MAX_CHARS_MESSAGES constant to base Runtime class
- Implement truncate_content for all runtime observations
- Apply truncation in both eventstream and remote runtime implementations
2024-11-06 14:26:19 +00:00
Robert Brennan
74b3335b7d
Bugfix: fix session close (#4765) 2024-11-05 14:11:15 -05:00
Xingyao Wang
55c41212c8
chore: update browser message to be more human-readable in UI (#4761) 2024-11-05 17:05:19 +00:00
Rohit Malhotra
436ecb80a3
Logger fixes for openhands-resolver (#4710)
Co-authored-by: Graham Neubig <neubig@gmail.com>
2024-11-05 16:49:32 +00:00
tofarr
df9e9fca5a
Refactor: Shorter syntax. (#4753) 2024-11-05 16:09:14 +00:00
Engel Nyst
eeb2342509
Refactor history/event stream (#3808) 2024-11-05 03:36:14 +01:00
Robert Brennan
98751a3ee2
Refactor of error handling (#4575)
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
2024-11-04 23:30:53 +00:00
Xingyao Wang
24117143ae
feat(llm): add new haiku into func calling support model (#4738) 2024-11-04 22:38:00 +00:00
Xingyao Wang
1d2a616be7
Fix issue #4739: '[Bug]: The agent doesn'"'"'t know its name' (#4740)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Graham Neubig <neubig@gmail.com>
2024-11-04 21:24:35 +00:00
Xingyao Wang
966da7b7c8
feat(agent, CodeAct 2.2): native CodeAct support for Browsing (#4667)
Co-authored-by: tofarr <tofarr@gmail.com>
2024-11-05 00:27:27 +08:00
Engel Nyst
1638968509
History microfixes (#4728) 2024-11-04 16:37:22 +01:00
Robert Brennan
250fcbe62c
Various async fixes (#4722) 2024-11-04 10:08:09 -05:00
Polygons1
f6c2b287bc
Fix for #4717 (#4721) 2024-11-04 08:24:00 +08:00
Xingyao Wang
ab188d026d
Revert "Fix permissions on __init__.py" (#4718) 2024-11-04 05:10:43 +08:00
Robert Brennan
316fc260f6
Fix list-files async calls (#4720)
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
2024-11-03 10:52:53 -08:00
Robert Brennan
aab7fa483b
Fix permissions on __init__.py (#4713) 2024-11-03 22:14:42 +08:00
Ryan H. Tran
4446d3180f
fix: use None check instead of falsy (#4705) 2024-11-02 12:44:03 -04:00
Robert Brennan
7b8241e424
fix auth when there are no allow lists (#4707) 2024-11-02 16:25:35 +00:00
Xingyao Wang
1747b3d6b2
fix: prompt caching (#4704) 2024-11-02 07:21:21 -04:00
Robert Brennan
36623a16da
Minor auth fixes (#4699) 2024-11-01 18:33:29 -07:00
Robert Brennan
b27fabe504
Add Google Sheets integration for GitHub user verification (#4671)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Graham Neubig <neubig@gmail.com>
2024-11-01 15:17:15 -07:00
Xingyao Wang
adf7ab5849
fix: handle the case where LLM assistant return None instead of empty string (#4690) 2024-11-01 19:13:01 +00:00
tofarr
6414b1af6e
Fix agent session error in logs (#4669) 2024-11-01 10:50:56 +08:00
tofarr
dd55290f4e
Fix : app unresponsive on startup (#4668) 2024-10-31 14:30:33 -07:00
tofarr
be77baea31
refactor: remove unused methods and constants from Session class (#4662)
Co-authored-by: openhands <openhands@all-hands.dev>
2024-10-31 14:55:37 -06:00
Robert Brennan
a812e2b5f1
Add cookie-based authentication to all routes (#4642)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com>
2024-10-31 12:18:42 -07:00
tofarr
4ebff5aaf3
Fix unawaited (#4665) 2024-10-31 19:16:37 +00:00
Engel Nyst
0687608feb
[Arch proposal] ENVIRONMENT event source (#4584)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
2024-11-01 02:33:13 +08:00
Ziru "Ron" Chen
db4e1dbbec
[eval] Add ScienceAgentBench. (#4645)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
2024-11-01 02:30:55 +08:00
Robert Brennan
e17f7b22a6
Remove hidden commands from feedback (#4597)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu>
Co-authored-by: Graham Neubig <neubig@gmail.com>
2024-10-31 08:49:47 -07:00
Engel Nyst
0ea5dcc781
Remove console leak (#4648) 2024-10-30 20:33:42 +00:00
Engel Nyst
1c9cdaf1a2
Fix old string serializer (#4644) 2024-10-30 19:26:26 +00:00
Engel Nyst
bde978cf0f
Fix Openrouter (#4641) 2024-10-30 18:31:24 +00:00
Xingyao Wang
2587220b12
fix(llm): fallback when model is out of function calling supported list (#4617)
Co-authored-by: openhands <openhands@all-hands.dev>
2024-10-31 01:54:50 +08:00
OpenHands
866ba6e3b2
Fix issue #4629: [Bug]: Replace claude-3-5-sonnet-20240620 with claude-3-5-sonnet-20241022 (#4631)
Co-authored-by: Graham Neubig <neubig@gmail.com>
2024-10-30 17:16:04 +00:00
Xingyao Wang
2b0eada176 agent: enable browsing & jupyter by default 2024-10-30 12:53:16 -04:00
Robert Brennan
2e50a5bef5
Document various runtimes (#4536)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
2024-10-30 16:18:42 +00:00
tofarr
05645d1bbd
Refactor CORS middleware and enhance localhost handling (#4624)
Co-authored-by: openhands <openhands@all-hands.dev>
2024-10-30 08:46:22 -06:00
Robert Brennan
e21abce786
Load GitHub users list at startup for improved authentication performance (#4567)
Co-authored-by: openhands <openhands@all-hands.dev>
2024-10-30 10:27:25 -04:00
Robert Brennan
572b3ad682
safer model info access (#4619) 2024-10-29 17:44:51 -04:00
Robert Brennan
997dc80d18
chance default model to 3.5 sonnet new (#4612)
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
2024-10-29 17:43:25 +00:00
Xingyao Wang
d50425865a
fix(runtime): only accept one request at a time for exec action requests (#4589) 2024-10-29 23:48:50 +08:00
Xingyao Wang
6d19c93d19
[eval] add evaluation workflow (#4489)
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
2024-10-29 13:52:25 +00:00