You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Commit message panel renders with inverted corner glyphs #77
Configure commit-msg with any provider (e.g., commit llm setup with OpenAI).
Stage a change (for example, echo test > demo.txt && git add demo.txt).
Run commit . (or go run cmd/commit-msg/main.go .) to generate a message.
Observe the commit message panel corners in the terminal output.
Expected Behavior
The panel should use the correct box-drawing characters: ┌ and ┐ on the top edge, └ and ┘ on the bottom edge.
Actual Behavior
The top edge uses ┘ and └, while the bottom edge uses ┐ and ┌, making the panel look inverted.
Environment
OS: Windows 11 (Build 23H2)
Go Version: 1.24.7 toolchain (module declares go 1.24.0)
commit-msg Version: latest from main (46f1d13)
LLM Provider: OpenAI
Additional Context
Screenshot / sample output:
┘───────────────────── Commit Message ──────────────────────└
│ Add index.html file │
│ │
│ - Creates a basic HTML template with a title and heading. │
┐───────────────────────────────────────────────────────────┌
Related code lives in internal/display/display.go around lines 109-113 where the box corner strings are set.
Possible Solution
Swap the corner glyph assignments in ShowCommitMessage so that:
WithTopLeftCornerString("┌")
WithTopRightCornerString("┐")
WithBottomLeftCornerString("└")
WithBottomRightCornerString("┘")
This change restores the expected orientation of the panel borders.
I'd like to work on the issue, so you can assign me this.
Activity
DFanso commentedon Oct 7, 2025
Hey @Muneer320 can u work on this if u have spare time