opencode session list doesn't show sessions in ~/.kugetsu-worktrees/ directories. This caused detection to fail even though sessions were being created. Now we query the database directly for sessions matching the worktree path. Also fixed database path in fix_session_permissions (was ~/.opencode/, should be ~/.local/share/opencode/).