mirror of
https://github.com/wu736139669/OpsPilot.git
synced 2026-08-05 06:23:35 +00:00
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user