Skip to content

Conversation

@newhook
Copy link
Owner

@newhook newhook commented Jan 15, 2026

Summary

Adds a description textarea field to the Create New Issue dialog in Plan Mode TUI, allowing users to optionally provide a description when creating new issues directly from the TUI.

  • Added createDescTextarea field to the plan model for description input
  • Updated field cycling to support 4 fields (title → type → priority → description)
  • Description textarea supports multi-line input with Ctrl+Enter to submit
  • Passes description to bd create command when provided

Changes

cmd/tui_plan.go (+62/-11 lines):

  • Added createDescTextarea textarea.Model to planModel struct
  • Initialized textarea in newPlanModel() with placeholder, character limit, and dimensions
  • Updated updateCreateBead() to handle Tab/Shift+Tab cycling through 4 fields
  • Added Ctrl+Enter support for submitting from the description textarea
  • Updated renderCreateBeadDialogContent() to display the description field with focus indication
  • Modified createBead() function signature to accept description parameter and pass it to bd create

Issues Resolved

  • ac-9qrm: New issue should also have text entry boxes for description

Testing

  • Create new issue dialog now shows description field below priority
  • Tab cycles through: Title → Type → Priority → Description → Title
  • Enter submits from title/type/priority fields
  • Ctrl+Enter submits from description textarea (Enter adds newlines in textarea)
  • Description is passed to bd create --description= when non-empty
  • Textarea resets after issue creation

🤖 Generated with Claude Code

newhook and others added 2 commits January 15, 2026 08:13
- Added createDescTextarea field to planModel struct for description input
- Initialized textarea with placeholder and 4-line height in newPlanModel()
- Updated field cycling in updateCreateBead() to cycle through 4 fields:
  title(0) -> type(1) -> priority(2) -> description(3)
- Added Ctrl+Enter support for submitting from description textarea
- Updated renderCreateBeadDialogContent() to display description field
- Modified createBead() to pass description to bd create --description flag
- Textarea is cleared after successful bead creation

Closes ac-9qrm

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Added indentLines helper function to properly indent all lines of
textarea views in create and edit issue dialogs. Previously, only
the first line of multi-line textareas was indented, causing the
left border to misalign with labels.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@newhook newhook merged commit 93a9ef2 into main Jan 15, 2026
@newhook newhook deleted the feat/new-issue-should-also-have-text-entry-boxes-for-de branch January 15, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants