fix: save tmux_window field in register_agent

The register_agent endpoint was silently dropping the tmux_window
parameter, causing agent session lookups to fail when using a
non-default window index.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 16:08:30 +08:00
co-authored by Claude Opus 4.7
parent 930138b1f6
commit b6ce27a462
+1
View File
@@ -149,6 +149,7 @@ async def register_agent(data: dict):
"name": name,
"project": data.get("project", ""),
"tmux_session": data.get("tmux_session", ""),
"tmux_window": data.get("tmux_window", "0"),
"status": data.get("status", "idle"),
"task": data.get("task", ""),
"last_active": datetime.now().isoformat(),