Skip to content

Commit 53f5a8b

Browse files
Refactor event handler connections in browser_use_agent_tab
Removed redundant event handler connections for buttons.
1 parent c4e3ea3 commit 53f5a8b

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/webui/components/browser_use_agent_tab.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,19 +1081,6 @@ async def clear_wrapper() -> AsyncGenerator[Dict[Component, Any], None]:
10811081
update_dict = await handle_clear(webui_manager)
10821082
yield update_dict
10831083

1084-
# --- Your existing Event Handlers (UNCHANGED) ---
1085-
run_button.click(
1086-
fn=submit_wrapper, inputs=all_managed_components, outputs=run_tab_outputs, trigger_mode="multiple"
1087-
)
1088-
user_input.submit(
1089-
fn=submit_wrapper, inputs=all_managed_components, outputs=run_tab_outputs
1090-
)
1091-
stop_button.click(fn=stop_wrapper, inputs=None, outputs=run_tab_outputs)
1092-
pause_resume_button.click(
1093-
fn=pause_resume_wrapper, inputs=None, outputs=run_tab_outputs
1094-
)
1095-
clear_button.click(fn=clear_wrapper, inputs=None, outputs=run_tab_outputs)
1096-
10971084
# --- Connect Event Handlers using the Wrappers --
10981085
run_button.click(
10991086
fn=submit_wrapper, inputs=all_managed_components, outputs=run_tab_outputs, trigger_mode="multiple"

0 commit comments

Comments
 (0)