[Phase 2] Fix cmd_list worktree detection bug #245

Open
opened 2026-04-08 06:34:35 +02:00 by shoko · 0 comments
Owner

Problem

In kugetsu list, the "Worktrees without sessions" section incorrectly shows worktrees as having no session even when they do have sessions.

Root Cause

At kugetsu-session.sh:568-569:

  • Python output has trailing newline/whitespace
  • Path comparison fails due to whitespace/newlines

Solution

  1. Add rstrip() to Python output to remove trailing whitespace/newlines
  2. Use realpath to normalize both paths for comparison

Status

READY - No dependencies

Files

  • skills/kugetsu/scripts/kugetsu-session.sh

Parent: #235

## Problem In `kugetsu list`, the "Worktrees without sessions" section incorrectly shows worktrees as having no session even when they do have sessions. ## Root Cause At kugetsu-session.sh:568-569: - Python output has trailing newline/whitespace - Path comparison fails due to whitespace/newlines ## Solution 1. Add rstrip() to Python output to remove trailing whitespace/newlines 2. Use realpath to normalize both paths for comparison ## Status **READY** - No dependencies ## Files - skills/kugetsu/scripts/kugetsu-session.sh ## Related Issue Parent: #235
shoko added the bug label 2026-04-08 06:34:35 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#245