Bug: Contact AI assistant - Chat input and file upload unresponsive #176

Closed
opened 2026-05-22 18:24:05 +00:00 by Zhekrom · 1 comment
Title: C# Bug: Contact AI assistant - Chat input and file upload unresponsive
Severity: High
Mode: Contact / AI Assistant
Lesson ID / File: Contact page - AI assistant widget
Environment: Browser (specify version), OS (specify version)
Date/Time: 2026-05-22

Source Code

(Not applicable � UI/interaction issue)

Steps to Reproduce

1. Navigate to the Contact page.
2. Locate the AI assistant widget.
3. Try to click on the chat input field to type a message.
4. Try to click the file attachment button.

Expected Output

The chat input should be focusable and allow typing. The file attachment button should open a file picker.

Actual Output

The AI assistant looks like an interactable component, but neither the chat input field nor the file attachment button respond to clicks. The entire widget appears visually interactive but is functionally inert.

Suggested Priority

High � The AI assistant feature is completely non-functional. Users cannot send messages or attach files.

Additional Notes

Related to issue #175 (AI chat empty square). This appears to be a different widget or a different state of the same chat feature where the UI renders but click handlers are not wired up. The components appear visually but have no event listeners attached.

Title: C# Bug: Contact AI assistant - Chat input and file upload unresponsive Severity: High Mode: Contact / AI Assistant Lesson ID / File: Contact page - AI assistant widget Environment: Browser (specify version), OS (specify version) Date/Time: 2026-05-22 Source Code (Not applicable � UI/interaction issue) Steps to Reproduce 1. Navigate to the Contact page. 2. Locate the AI assistant widget. 3. Try to click on the chat input field to type a message. 4. Try to click the file attachment button. Expected Output The chat input should be focusable and allow typing. The file attachment button should open a file picker. Actual Output The AI assistant looks like an interactable component, but neither the chat input field nor the file attachment button respond to clicks. The entire widget appears visually interactive but is functionally inert. Suggested Priority High � The AI assistant feature is completely non-functional. Users cannot send messages or attach files. Additional Notes Related to issue #175 (AI chat empty square). This appears to be a different widget or a different state of the same chat feature where the UI renders but click handlers are not wired up. The components appear visually but have no event listeners attached.
Zhekrom changed title from C# Bug: Contact AI assistant - Chat input and file upload unresponsive to Bug: Contact AI assistant - Chat input and file upload unresponsive 2026-05-22 18:24:34 +00:00
Owner

Fixed in spikersoft-angular PR #15.

Root cause: the chat textarea was two-way bound with [(ngModel)] directly to a signal, which reassigned the signal field to a raw string on the first keystroke and then threw when the input handlers called currentMessage() — so the field couldn't be used. It now binds with [ngModel]="currentMessage()" + (ngModelChange)="...set($event)".

The attachment button also had no handler; it now opens a native file picker, shows the chosen file as a removable chip, and includes the file name in the sent message (the chat backend is text-only, so the file is referenced inline rather than uploaded). Regression tests added.

Fixed in spikersoft-angular PR #15. Root cause: the chat textarea was two-way bound with `[(ngModel)]` directly to a signal, which reassigned the signal field to a raw string on the first keystroke and then threw when the input handlers called `currentMessage()` — so the field couldn't be used. It now binds with `[ngModel]="currentMessage()"` + `(ngModelChange)="...set($event)"`. The attachment button also had no handler; it now opens a native file picker, shows the chosen file as a removable chip, and includes the file name in the sent message (the chat backend is text-only, so the file is referenced inline rather than uploaded). Regression tests added.
Sign in to join this conversation.