fix(lib): use symlink-safe realpath comparison for workspace cwd matching in find_workspace_uuid

This commit is contained in:
Godopu committed 2026-08-07 12:19:45 +09:00
1 parent 778b22b904
commit 55fc7396e2
1 file changed
+2 -1
+2 -1
View File
@@ -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: