[Bug]: Home and Cmd+Left cannot move before a leading skill chip
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 23k
- Forks
- 5.9k
- Avg merge
- 11h 14m
- Merged PRs (30d)
- 357
Description
Area
apps/web, desktop composer
Steps to reproduce
- Insert a skill chip at the start of an empty composer, for example
$claude-review. - Type
testafter it. - Move the caret to the end, then press Cmd+Left or Home.
Expected behavior
The caret moves to the beginning of the line, before the chip.
Actual behavior
The caret stops after the chip, before the following text. Plain Left can move before it.
With test $claude-review test, Cmd+Left works. The failure occurs when the chip is first.
Environment
Reported on Windows and reconfirmed during subsequent testing. Current Mac installation: 0.0.41-nightly.20260914.1687; original reproduction build not recorded.
Investigation
The composer source handles arrow navigation across chips explicitly, while macOS Home uses Selection.modify(..., "lineboundary"). This may explain the difference; root cause is not confirmed.
Impact/workaround
Minor editing bug. Use plain Left to reach before the chip.
Screenshot
Caret after the leading chip:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in apps/web/src/components/ComposerPromptEditor.tsx, especially the arrow-navigation logic around the cited lines, and compare it with the Home handling that uses Selection.modify("lineboundary"). Reproduce a leading skill chip followed by text, then verify that Home and Cmd+Left place the caret before the chip while ordinary Left continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100