Bug: opencode session list does not show forked sessions created by kugetsu init #38
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?
Problem
After running
kugetsu init, BOTHkugetsu statusANDkugetsu delegatereport failure even though the PM agent is fully functional.Root Cause
kugetsuusesopencode session list --format json | grepto verify if a session exists before using it. However, forked sessions created viaopencode run --fork --sessiondo not appear inopencode session listoutput at all — regardless of format (table or JSON).This breaks both
kugetsu statusANDkugetsu delegatebecause both functions callcheck_opencode_session_exists()before proceeding.The sessions ARE accessible and fully functional via
opencode run --continue --session <session_id>directly, butsession listdoes not return them.Reproduction (Minimal)
Extended Verification
Environment
Fix Options
Option A (kugetsu): Replace existence check with a no-op run call:
Option B (opencode): Include forked sessions in
opencode session listoutput.Workaround
Call
opencode run --continue --session <id>directly instead of usingkugetsu delegate. The PM agent is alive and functional — only the existence check is broken.