refine: working_checkpoint desc优化(增量更新/坑排首/全新任务清旧) + CLI最小启动 + web_execute_js兼容tab_id + mem_scanner坑点更新

This commit is contained in:
Liang Jiaqing
2026-02-26 12:11:31 +08:00
parent d417cecc45
commit f0ce7215ff
4 changed files with 19 additions and 11 deletions

2
ga.py
View File

@@ -304,7 +304,7 @@ class GenericAgentHandler(BaseHandler):
script = args.get("script", "")
if not script: return StepOutcome(None, next_prompt="[Error] Empty script param. Check your tool call arguments.")
save_to_file = args.get("save_to_file", "")
switch_tab_id = args.get("switch_tab_id")
switch_tab_id = args.get("switch_tab_id") or args.get("tab_id")
result = web_execute_js(script, switch_tab_id=switch_tab_id)
if save_to_file and "js_return" in result:
content = str(result["js_return"] or '')