diff --git a/.agents/skills/multi-agent-mux-monitor/scripts/reconcile.sh b/.agents/skills/multi-agent-mux-monitor/scripts/reconcile.sh index 4544be4..a1c3adf 100755 --- a/.agents/skills/multi-agent-mux-monitor/scripts/reconcile.sh +++ b/.agents/skills/multi-agent-mux-monitor/scripts/reconcile.sh @@ -656,6 +656,14 @@ if herdr_confirmed: continue _adapter = get_adapter(agent) cmd_full = _adapter.spawn_spec(agent) if _adapter else agent + # The row names the server that answered. A `default` scan runs without + # -L, so the shim answers it from the inherited HERDR_SESSION_NAME (a + # create's reconcile --once inherits the create's server): that server, + # not `default`, is this pane's - create matches its own pane's row by + # it (Issue #50, review 1e25cf2f F2). + _ambient = os.environ.get('HERDR_SESSION_NAME', '') + if srv == 'default' and _ambient and _ambient != 'default': + srv = _ambient server_opt = f"-L {srv} " if srv != 'default' else "" # The shim resolves this from the pane's root process. Fall back to now # only if that failed: 'now' can merely over-estimate creation time, diff --git a/tests/data/skill_code_blocks.json b/tests/data/skill_code_blocks.json index 2f116f0..c07ca2e 100644 --- a/tests/data/skill_code_blocks.json +++ b/tests/data/skill_code_blocks.json @@ -617,7 +617,7 @@ "other" ], "passthrough": { - "4": "multi-agent-mux-create/scripts/create_session.sh:546" + "4": "multi-agent-mux-create/scripts/create_session.sh:550" } } },