pingdotgg / pingdotgg/t3code

[Bug]: Home and Cmd+Left cannot move before a leading skill chip

Open
#11,892 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug via-triage
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
  1. Insert a skill chip at the start of an empty composer, for example $claude-review.
  2. Type test after it.
  3. 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:

Caret after the leading skill chip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.