color in issue create response #7
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
nagonag
nagonag/ignore
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/fj#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
The response after creating a bug somehow gets misinterpreted:
Plan
\xffbytes leaking through.coloredLabelNamesininternal/cli/root.gowraps each label's ANSI color codes inside
\xffmarkers sotext/tabwriter(withStripEscape) can treat them as zero-width whilecomputing column widths. The two list views (
issueListRun,prListRun)use a tabwriter so the escapes get stripped on flush. The
postIssue/postPRconfirmation lines use plainfmt.Printf— the\xffbytes hit the terminal verbatim and render as��.Fix: split into two helpers.
coloredLabelNames(labels)→ plain ANSI, no\xff. Forfmt.Printf.coloredLabelNamesTabwriter(labels)→\xff-wrapped ANSI. For tabwriter.Internally one shared implementation gated by a bool.
Call sites:
issue.go:151(issueListRun),pr.go:141(prListRun) → switch tocoloredLabelNamesTabwriter.issue.go:315(postIssue),pr.go:323(postPR) → keepcoloredLabelNames(now plain).Branch:
issue-7-color-create-response. Closes #7.ius:ai:claude-opus-4-7