continue icon indicating copy to clipboard operation
continue copied to clipboard

fix: remove duplicate-word typos in error message, prompt, and test label

Open devteamaegis opened this issue 6 months ago • 2 comments

Summary

Three small duplicated-word typos, each one self-contained:

File:line Fix Why it matters
`core/llm/index.ts:459` `use the the Codestral API` → `use the Codestral API` User-facing error message. The sibling branch one line up (line 455) already reads "use the Mistral API" correctly, so this fixes an asymmetry users hit when their API-key/apiBase combination is wrong.
`core/commands/slash/built-in-legacy/draftIssue.ts:10` `If the the user request` → `If the user request` Part of the LLM prompt for the draft-issue slash command — gets sent to the model verbatim.
`core/autocomplete/context/root-path-context/test/testCases/typescript.ts:301` `method_declaration with with generic params` → `method_declaration with generic params` `nodeType` label only — checked the file: `nodeType` is descriptive metadata, never matched against parsed source. Sibling entries on lines 252/262/271/280 follow the singular-`with` pattern.

Diff is exactly 3 lines.

Novelty

`gh search prs --repo continuedev/continue` against `use the the`, `the the user`, and `with with generic` all return empty. The only open typo PR (#12062) fixes a different message in another file — no overlap.

Test plan

  • [x] `grep -rn "the the \| with with " --include='*.ts' core/` (excluding node_modules) returns no matches after the fix.
  • [x] The error message in `core/llm/index.ts` continues to be the same shape as its sibling branch on line 455.

Summary by cubic

Fixed duplicate-word typos ("the the", "with with") in a user-facing error message, the draft-issue LLM prompt, and a test label to improve clarity and consistency.

Written for commit 274510e9dae7bdb87bd146668b79805200ac0ce4. Summary will update on new commits. Review in cubic

devteamaegis avatar May 21 '26 23:05 devteamaegis

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar May 21 '26 23:05 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

devteamaegis avatar Jun 16 '26 22:06 devteamaegis