rename: update_working_mem->update_working_ckp, trigger_memory_update->start_long_term_update; add tab_id to execute_js_rich; remove debug print

This commit is contained in:
Liang Jiaqing
2026-02-24 22:27:18 +08:00
parent 3570489ba6
commit 708ffb3248
3 changed files with 10 additions and 10 deletions

View File

@@ -879,9 +879,9 @@ def execute_js_rich(script, driver):
rr = {
"status": "failed" if error_msg else "success",
"js_return": result,
"environment": {"newTabs": newTabs, "reloaded": reloaded}
"environment": {"newTabs": newTabs, "reloaded": reloaded},
"tab_id": driver.default_session_id
}
print(reloaded, newTabs)
if reloaded and len(newTabs) == 0:
after = driver.get_session_dict()
new_sids = {k: v for k, v in after.items() if k not in before_sids}