mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Fix for issues where callbacks are not batched (#10235)
This commit is contained in:
@@ -260,10 +260,11 @@ def _load_runtime(
|
||||
config.mcp = override_mcp_config
|
||||
|
||||
file_store = file_store = get_file_store(
|
||||
config.file_store,
|
||||
config.file_store_path,
|
||||
config.file_store_web_hook_url,
|
||||
config.file_store_web_hook_headers,
|
||||
file_store_type=config.file_store,
|
||||
file_store_path=config.file_store_path,
|
||||
file_store_web_hook_url=config.file_store_web_hook_url,
|
||||
file_store_web_hook_headers=config.file_store_web_hook_headers,
|
||||
file_store_web_hook_batch=config.file_store_web_hook_batch,
|
||||
)
|
||||
event_stream = EventStream(sid, file_store)
|
||||
|
||||
|
||||
@@ -86,4 +86,10 @@ async def test_get_instance():
|
||||
|
||||
assert isinstance(store, FileSettingsStore)
|
||||
assert store.file_store == mock_store
|
||||
mock_get_store.assert_called_once_with('local', '/test/path', None, None)
|
||||
mock_get_store.assert_called_once_with(
|
||||
file_store_type='local',
|
||||
file_store_path='/test/path',
|
||||
file_store_web_hook_url=None,
|
||||
file_store_web_hook_headers=None,
|
||||
file_store_web_hook_batch=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user