Skip to content

Conversation

@Pradeep-Gopi-E
Copy link

@Pradeep-Gopi-E Pradeep-Gopi-E commented Nov 3, 2025

Summary by cubic

Adds speech-to-text to the Run Agent tab with a mic button, and moves the JavaScript into interface.py for cleaner separation and easier maintenance.

  • New Features

    • Mic button next to the task textbox triggers Web Speech API recognition.
    • Fills the textbox with the transcript and dispatches an input event to update Gradio state.
    • Shows listening/error states; defaults to en-US.
  • Refactors

    • create_browser_use_agent_tab now accepts speech_js and binds it to the mic button.
    • Speech JS centralized in interface.py (js_speech_function) and passed into the tab.
    • UI tidy-up: Row layout for textbox + button, larger textbox, updated placeholders, button stored in manager.

Written for commit 53f5a8b. Summary will update automatically on new commits.

@CLAassistant
Copy link

CLAassistant commented Nov 3, 2025

CLA assistant check
All committers have signed the CLA.

@Pradeep-Gopi-E Pradeep-Gopi-E changed the title refactor: Clean up use agent tab by moving JS to interface feat: add prototype speech-to-text support for AI agent input (experimental) Nov 3, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (all 1 issues)

Understand the root cause of the following 1 issues and fix them.


<file name="src/webui/components/browser_use_agent_tab.py">

<violation number="1" location="src/webui/components/browser_use_agent_tab.py:1085">
These event handlers are now registered twice, so each action (submit, stop, pause, clear) will fire twice, leading to duplicate task runs and inconsistent UI state. Please remove the duplicate registrations.</violation>
</file>

Since this is your first cubic review, here's how it works:

  • cubic automatically reviews your code and comments on bugs and improvements
  • Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
  • Ask questions if you need clarification on any suggestion

React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.

Removed redundant event handler connections for buttons.
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants