[RESOLVED] Session file detection picks wrong file with multiple active sessions #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Report
Status: ✅ RESOLVED
Problem:
When multiple sessions have lock files (main + subagents), the watcher picked the newest lock file by mtime instead of the main session.
Root Cause:
Priority 1 in
get_current_session_file()selected lock files by newest mtime, which could be a subagent instead ofagent:main:main.Solution (v1.2):
Reordered priorities:
agent:main:mainlookup from sessions.jsonChanges:
is_lock_valid()with PID + age checksCommits:
23d9f3bValidated: Yes - dual subagent validation confirms 100% reliability
Note: This issue is a duplicate of #7. All v1.2+ issues are tracked in GitLab as the primary source.