Selecting a command in the chat quick select list sends the message immediately instead of completing the word

Offen
#359 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
70/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
react, typescript
Bereich
frontend, testing

Rechercherichtung

Start with src/renderer/carbon-conversation.tsx and src/renderer/command-composer.tsx to trace how / and $ selections reach the composer and send handler. Then read the browser test in test/browser-features.e2e.ts; extend coverage for pointer, Enter, and Tab selection, confirming the command is inserted, focus remains in the composer, and the message is sent only after explicit submission.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug needs-triage

What happened?

In a new chat, selecting a command from the chat composer quick select list automatically sends the message instead of completing the command word and allowing the user to continue typing.

What should have happened?

Selecting a command from the quick select list should complete/insert the command token into the composer and keep focus in the input so the user can continue typing arguments or additional text before explicitly sending the message.

Steps to reproduce

  1. Open a project and start a new chat in Code60.
  2. Focus the chat composer and open the command quick select list (typing / or $).
  3. Select a command from the quick select list.
  4. Observe that the message is sent immediately instead of completing the command token and allowing the user to keep typing.

Reported by user; a fresh live browser reproduction has not been run for this issue.

App version or commit

Inspected origin/main: package.json version 0.5.0-beta, commit 10fb26f. Exact running build was not independently verified.

Affected interface

Desktop

Environment

  • Operating system: macOS (exact running build/browser not independently captured)

Impact and frequency

Prevents adding arguments or context after selecting a command from the quick select list and causes unintended premature sends. Workaround is typing the command manually without selecting from the quick select list.

Code pointers

  • src/renderer/carbon-conversation.tsx — @carbon/ai-chat ChatCustomElement input.command (trigger: "/") and input.mention (trigger: "$") setup and customSendMessage
  • src/renderer/command-composer.tsx — commandSuggestions() (Carbon inserts the canonical command token, leaving subsequent arguments editable)
  • test/browser-features.e2e.ts — browser: Carbon project commands retain arguments after a rejected send and render once (currently clicks an option rather than exercising keyboard selection such as Enter/Tab across both / and $ triggers)

Acceptance criteria

  • Selecting a command from the chat quick select list (via pointer click, Enter, or Tab, for both / and $ triggers) inserts/completes the command token without sending the message.
  • Focus stays in the composer after command completion so the user can continue typing before explicitly sending.
  • Add regression test coverage verifying that selecting a command from the quick select list does not send the message prematurely.
Vorherrschende Sprache
TypeScript
Sterne
1
Forks
1
Ø Merge
5 Std. 34 Min.
Gemergte PRs (30 T.)
136

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CodeManufactoryLLC/Code60

Alle Issues in CodeManufactoryLLC/Code60

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.