CommandDash / commanddash

AI assist to integrate APIs and SDKs without reading docs.

Home Page:https://commanddash.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Empty Text Response Bug in Chat View

superiorsd10 opened this issue · comments

What version are you using?

I'm using FlutterGPT: AI Copilot with Gemini inside Dart v0.2.0

What happened?

When using the chat view in the FlutterGPT VSCode extension, I observed a bug where it responds even when the user enters empty text (whitespace) and presses Enter. This behavior is unexpected, and I believe it would be better to prompt the user to enter something meaningful before pressing Enter when the user doesn't type anything and presses Enter.

Expected Behavior

I expect that it should not respond when the user enters empty text, and instead, a prompt or notification (e.g., snack bar) should be displayed, indicating that the user needs to type something before pressing Enter.

Steps to reproduce

1. Open the chat view in the FlutterGPT extension.
2. Enter whitespace or leave the text input empty.
3. Press Enter.

Supporting info to reproduce

I'm attaching an image depicting the above-described behavior

Relevant log output

No response

Hello @yatendra2001 👋
I want to work on this issue, so please consider assigning it to me.

hey @superiorsd10 , thanks for opening this bug. Assigned to you.

Hello @yatendra2001 👋
Thanks for assigning this issue to me. I have submitted a PR for your review.

Thank you,

closing this issue, resolved by PR #144