Repository navigation
Conversation
With the caret right after `@err`, `#Home`, `+30m` or `p1`, Backspace highlighted the token's chip, then dismissed it, and only the third press deleted a character. chipAtCaret now leaves an attribute token the caret touches to Backspace; after a space the two-press dismissal is unchanged. OpenSpec change backspace-edits-typed-token, archived. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
Links had the same three presses as the other tokens: add 'link' to TOKEN_KINDS, with unit and component tests. The caret/selection test ends in a phrase again so it tests the check. The spec says whitespace, the keyboard dismissal scenario names a phrase or a space, the links requirement's Backspace scenario ends with a space, and the docs read as one sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
pixari
marked this pull request as ready for review
November 28, 2026 17:41
pixari
enabled auto-merge
November 28, 2026 17:41
pixari
added this pull request to the merge queue
Nov 28, 2026
Any commits made after this event will not be merged.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Fixes #2219.
If the caret sat right after
@err,#Home,+30morp1, it took three presses of Backspace to delete one character. The token had already been parsed into a chip, so the keyboard dismissal took over Backspace. The first press highlighted the chip, which looked like focus leaving the field. The second press dismissed it. Only the third press deleted a character. Text with no match produced no chip, so Backspace worked there.We changed
chipAtCaret(web/src/lib/nlp/quickadd.ts). It now returns no chip for an attribute token (#project,@label,p1–p4,+duration,spent/estimate,~energy) when the caret touches it with no space after it, so Backspace deletes normally. The two-press dismissal still works in these cases:OpenSpec change
backspace-edits-typed-tokenis archived in this PR. It modifies natural-language-capture "Dismiss and escape parsed tokens" and adds two scenarios.docs/quick-add.mdis updated, and the fix has a changelog fragment.Tests:
quickAdd.test.tsx"Backspace while typing a token":@err,@errand,#Home,+30mandp1each delete on one press. After a space, two presses still dismiss.quickadd.test.tsgets a newchipAtCaretcase. Two existing cases now typep2last with a space after it, or end on a date.No UI or layout change, so no visual baselines change.
Checklist
openspec/changes/<name>/), or this PR has nonemake checkpasses locally (we ran typecheck, eslint on the touched files, the quick add and nlp vitest suites,openspec validate --all --strict,make docsandmake docs-check; we left the fullmake checkto CI)Co-Authored-Bytrailerinternal/httpapi/policy.go(public("reason")only when the spec says so)changelog.d/<Section>/<name>.md(not inCHANGELOG.md); size impact noted for new dependenciestemplates/(or may license it) and agree to publish it under CC BY 4.0;make templatesis committedGenerated by Claude Code