Skip to content

Add command strip above chat input#116

Merged
dimakis merged 4 commits intomainfrom
feat/command-strip
Apr 6, 2026
Merged

Add command strip above chat input#116
dimakis merged 4 commits intomainfrom
feat/command-strip

Conversation

@dimakis
Copy link
Copy Markdown
Owner

@dimakis dimakis commented Apr 6, 2026

Summary

  • New command strip row above the textarea with /, +, mic, and branch pill
  • Branch pill moved from header to command strip (center-left position)
  • Mic position is context-aware: right-aligned (above send) when idle, shifts left next to + when text is entered
  • Input row simplified: just textarea + send/stop/interrupt buttons
  • Extracted micProps to avoid duplicating MicButton prop blocks

Test plan

  • 640/640 tests pass
  • Lint clean (0 errors)
  • Visual check on mobile: command strip layout, mic position swap on text input, branch pill display
  • Verify slash picker still opens correctly from command strip
  • Verify image attach still works from command strip

🤖 Generated with Claude Code

dimakis and others added 4 commits April 6, 2026 20:26
Move /, +, and mic buttons into a command strip row above the textarea.
Branch pill moves from the header to the command strip (center-left).

Mic behavior:
- Idle (no text): mic sits right-aligned in command strip, above send
- Has text: mic shifts left next to + in command strip, send button appears
- No voice: disabled send button shown instead

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove the dual-render mic position swap (idle vs typing). The mic now
stays in a single spot on the command strip, preventing unmount/remount
on each keystroke which could interrupt active recordings.

Also removes dead comment from ChatView.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove redundant `?? undefined` on branch prop
- Add vertical padding to command strip to prevent cramped layout
- Add title attribute on branch pill for long-press/hover on truncated names
- Add ChatInputCommandStrip test suite (8 tests): strip buttons, branch
  pill rendering, worktree class, title attr, mic stability across input

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dimakis dimakis merged commit 90d50d6 into main Apr 6, 2026
1 check passed
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.

1 participant