diff --git a/.agents/skills/lib.sh b/.agents/skills/lib.sh index ca62ae1..5a6f7d5 100644 --- a/.agents/skills/lib.sh +++ b/.agents/skills/lib.sh @@ -1229,7 +1229,8 @@ def emit(u): # Fetch all sessions matching this workspace sessions = [] for s in d.get('herdr_sessions', []): - if isinstance(s, dict) and (s.get('pane') or {}).get('cwd') == ws: + s_cwd = (s.get('pane') or {}).get('cwd', '') if isinstance(s, dict) else '' + if s_cwd and (s_cwd == ws or os.path.realpath(s_cwd) == os.path.realpath(ws)): sessions.append(s) if target: