fix(kugetsu): session detection ordering bug and debugging #108

Merged
shoko merged 1 commits from fix/session-detection-v2 into main 2026-04-02 12:26:58 +02:00

1 Commits

Author SHA1 Message Date
shokollm
cd12a0cda8 fix(kugetsu): fix session detection ordering and add DB debugging
1. Move session detection BEFORE checking if fork process is still running.
   Previous code broke out of loop if forked process exited, skipping detection.

2. Add database query debugging when detection fails to help diagnose
   why opencode session list might miss newly created sessions.
2026-04-02 09:57:27 +00:00