-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Description
In the AI Chat window, typing a ? (question mark) causes the text input to lose focus. This breaks the workflow because:
- The cursor disappears from the input
- Pressing Enter no longer sends the message
- User must click back into the input to continue
Current Behavior
After typing ?, focus is lost from the MonacoEditorView component.
Expected Behavior
Focus should remain in the input after typing any character, including punctuation marks like ?.
Files to Investigate
src/MeshWeaver.Blazor.Chat/ChatInput.razor(lines 10-18)src/MeshWeaver.Blazor/MonacoEditorView.razor- Check
CompletionProviderandAsyncCompletionCallbackparameters
Possible Causes
- Monaco editor autocomplete/suggestion popup stealing focus on
? - Event handler treating
?as a help/command trigger - Blazor re-render causing focus loss
- Autocomplete completion callback interfering
Implementation Hint
Check if ? triggers autocomplete in MonacoEditorView. If so, either:
- Prevent
?from triggering autocomplete - Ensure focus returns after autocomplete dismisses
- Check
OnSubmithandler for focus side effects
Acceptance Criteria
- Focus remains in chat input after typing
? - Focus remains after typing other punctuation (
.,!, etc.) - Enter key sends message correctly after typing punctuation
- Autocomplete still works for
@mentions if applicable
Reactions are currently unavailable