[BUG]: Inverted Mic icon causes input confusion in Bot Debate Room

Open Beginner friendly
#802 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 20 days

@Rusky-1014 is already working on this.

Since Nov 15, 2026.

  • #803 by @Rusky-1014 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
react, typescript, vite

Research direction

Start in frontend/src/Pages/DebateRoom.tsx and read how isRecognizing controls the microphone button and textarea. Check the existing speech recognition behavior, then make the icon and a written listening message match the recognition state. Done when idle and active states are visually clear and the textarea behavior is no longer surprising; the issue does not name a test to run.

Written by the indexing model from the issue text.

Description

bug
Bug Description
Bug Description :

In the Bot Debate Room (/debate/:roomId), inverted mic icon creates confusion to user :

  1. Inverted Mic Iconography
    In frontend/src/Pages/DebateRoom.tsx, the voice toggle button is currently implemented as:

    <Button onClick={isRecognizing ? stopRecognition : startRecognition}>
      {isRecognizing ? <MicOff className="w-5 h-5" /> : <Mic className="w-5 h-5" />}
    </Button>
    
    • When speech recognition is active (isRecognizing === true), it renders <MicOff />, which visually means the microphone is muted for the user.
    • When speech recognition is idle, it displays <Mic />, meaning users to think that the app is already listening and mic is active.
  2. Confusion with readOnly Input Locking
    The textarea is set to readOnly={isRecognizing} while speech recognition is active to prevent keyboard conflicts with incoming voice transcripts. But when the user tries to type in when <MicOff /> (appearing muted), he gets to know that input is locked, which shows unsynchronized UI defect.

Proposed Solution :

Make the microphone button’s icon match the actual speech‑recognition state and give users a clear written msg that the app is listening, eliminating the confusing read‑only textarea situation.

Steps to Reproduce
  1. Navigate to Practice with Bot (/bot-selection) and enter a debate room.
  2. Observe the microphone button before clicking: it shows an active <Mic /> icon even though recognition is idle.
  3. Click the button to start voice recognition: the icon flips to <MicOff /> while the input becomes locked (readOnly).
  4. Attempt to type: input is disabled while the UI appears to show a muted microphone.
Logs and Screenshots

No response

Environment Details
  • OS: macOS
  • Browser: Chrome (Web Speech API)
  • Frontend: React 18, Vite
  • Branch: main (no local modifications aside from temporary dev config)
Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
TypeScript
Stars
108
Forks
266
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/DebateAI

All issues in AOSSIE-Org/DebateAI

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.