multi oai config support, timeout fix, execute_js_rich optimization

This commit is contained in:
Liang Jiaqing committed 2026-02-12 16:56:11 +08:00
1 parent 1276021422
commit 69153f7a42
5 files changed
+58 -42

No files matched your search

+2 -1
View File
@@ -223,8 +223,9 @@ class TMWebDriver:
if hasjump and session.is_active():
if not self.is_remote and auto_switch_newtab: self.last_cmd_time = time.time()
return {"result": f"Session {session_id} reloaded.", "closed":1}
if time.time() - start_time > timeout + 10:
if time.time() - start_time > timeout:
if tp == 'ws':
if hasjump: return {"result": f"Session {session_id} reloaded and new page is loading...", "closed":1}
return {"result": f"No response data in {timeout}s"}
elif tp == 'http':
return {"result": f"Session {session_id} no response."}