queue-daemon: delegate with just issue ref causes confusing agent behavior #209
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
When
kugetsu delegateis called with just an issue ref as the message (e.g.,kugetsu delegate "git.fbrns.co/shoko/kugetsu#118"), the agent receives the issue ref as both the issue_ref AND the message, causing confusing behavior.Steps to Reproduce
kugetsu delegate "git.fbrns.co/shoko/kugetsu#118"issue_ref: "git.fbrns.co/shoko/kugetsu#118"message: "git.fbrns.co/shoko/kugetsu#118"cmd_continue "git.fbrns.co/shoko/kugetsu#118" "git.fbrns.co/shoko/kugetsu#118"Root Cause
In
cmd_delegate(kugetsu-session.sh:205-208):When
message == issue_ref, both get stored identically in the queue item.Related Problem: Partial Issue Refs
Additionally,
extract_issue_ref_from_messagedoes not handle:user/repo#81orrepo#81#81or81Proposed resolution order for partial refs:
Ambiguity handling (TBD): If issue number exists in multiple repos, should pick most recent session/worktree OR error listing matches.
Suggested Fix
TBD - requires deciding on partial ref resolution strategy above.