Repro (v0.44.0 and v0.45.0)
td comment ea7757 "x" # FK-787
td comment td-ea7757 "x" # OK
td review ea7757 # FK-787 on auto-handoff insert
Root cause
GetIssue normalizes via NormalizeIssueID, but CLI insert paths pass the raw args[0]:
cmd/tree.go commentCmd / commentsAddCmd: comment.IssueID = issueID instead of issue.ID from GetIssue
cmd/review.go: newAutoReviewHandoff(issueID, ...) uses raw arg; GetLatestHandoff(issueID) same
API path HandleAddComment already uses issue.ID correctly (internal/serve/handlers_write.go:690).
Suggested fix
Use canonical issue.ID after GetIssue, or call db.NormalizeIssueID in AddComment/AddHandoff at DB layer.
Workaround
Always pass full td-xxxxxx ids to td comment and td review.
Repro (v0.44.0 and v0.45.0)
Root cause
GetIssuenormalizes viaNormalizeIssueID, but CLI insert paths pass the rawargs[0]:cmd/tree.gocommentCmd/commentsAddCmd:comment.IssueID = issueIDinstead ofissue.IDfromGetIssuecmd/review.go:newAutoReviewHandoff(issueID, ...)uses raw arg;GetLatestHandoff(issueID)sameAPI path
HandleAddCommentalready usesissue.IDcorrectly (internal/serve/handlers_write.go:690).Suggested fix
Use canonical
issue.IDafterGetIssue, or calldb.NormalizeIssueIDinAddComment/AddHandoffat DB layer.Workaround
Always pass full
td-xxxxxxids totd commentandtd review.