GitHub issue #15912 in cline/cline, created 2026-11-29 by Pablo-aps and titled "CLI file autocomplete leaves query text after a multi-code-point character", reports that accepting an `@` file completion can leave part of the query behind when text before it contains a multi-code-point grapheme. With a README.md in the workspace, typing an emoji followed by `@REA` and selecting the README.md completion produces the emoji followed by `@./README.md REA`, while the completed path should replace the whole `@REA`. The report concerns CLI 3.0.76 source, with the same completion handler on main at `d92f939`. The author verified this with a real OpenTUI textarea on Windows 11, running the unchanged `@` selection branch from `use-prompt-input-controller.ts`: for this prompt, `cursorOffset` is 7, but the JS string ends at offset 10, and the handler uses 7 for `text.slice(offset)`, so it appends `REA` back to the replacement. A decomposed `e` with a combining acute accent before the query leaves a trailing `A`, while the ASCII control works. The author states the handler should keep the editor's cursor coordinates separate from JS string indices, and notes that in the same fixture, `textarea.getTextRange(0, textarea.cursorOffset)` reads the full prefix. The report states this happens during local input editing before a model request, with the textarea and selection code verified in isolation.
Verbatim Excerpts from Cited Records
“For this prompt, `cursorOffset` is 7, but the JS string ends at offset 10. The handler uses 7 for `text.slice(offset)`, so it appends `REA` back to the replacement.”
·
cline/cline (issue 15912 opening body, Steps to reproduce section)
·
2026-11-29T16:02:55Z
·GitHub Issue ↗
“I verified this with a real OpenTUI textarea on Windows 11, running the unchanged `@` selection branch from `use-prompt-input-controller.ts`.”
·
cline/cline (issue 15912 opening body, Steps to reproduce section)
·
2026-11-29T16:02:55Z
·GitHub Issue ↗
“The handler should keep the editor's cursor coordinates separate from JS string indices. In the same fixture, `textarea.getTextRange(0, textarea.cursorOffset)` reads the full prefix.”
·
cline/cline (issue 15912 opening body, Steps to reproduce section)
·
2026-11-29T16:02:55Z
·GitHub Issue ↗
“This happens during local input editing before a model request. Verified the textarea and selection code in isolation. Codex assisted with the reproduction.”
·
cline/cline (issue 15912 opening body, Provider/Model section)
·
2026-11-29T16:02:55Z
·GitHub Issue ↗
Counter-record: Issue remains open as of 2026-11-30 (last updated 2026-11-29T16:38:24Z). 2 comments read in total. linear-code[bot] (2026-11-29) linked the report to CLINE-3866. four1er (2026-11-29) said they are reproducing this now and will open a PR with a fix shortly. No maintainer response appears in the surveyed thread beyond that note. The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #15912 is closed as fixed, as a duplicate, or as not planned, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn.
Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by
scripts/verify_claim_verbatim.py.