The --fork flag outputs the new session ID. Parse that instead of relying on session list which may return wrong session when multiple exist. Added fallback to session list parsing.
The --fork flag outputs the new session ID. Parse that instead of relying on session list which may return wrong session when multiple exist. Added fallback to session list parsing.