From 9feaa2e83156f6566bb77d99b0fcc62c6daef975 Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Thu, 11 Sep 2025 20:21:23 +0300 Subject: [PATCH] fix: focus chat input --- src/uipath/_cli/_dev/_terminal/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/uipath/_cli/_dev/_terminal/__init__.py b/src/uipath/_cli/_dev/_terminal/__init__.py index e1c63a6b2..9413a91a7 100644 --- a/src/uipath/_cli/_dev/_terminal/__init__.py +++ b/src/uipath/_cli/_dev/_terminal/__init__.py @@ -189,6 +189,8 @@ async def action_execute_run(self) -> None: if not run.conversational: asyncio.create_task(self._execute_runtime(run)) + else: + self._focus_chat_input() async def action_clear_history(self) -> None: """Clear run history.""" @@ -285,6 +287,13 @@ def _show_run_details(self, run: ExecutionRun): # Populate the details panel with run data details_panel.update_run(run) + def _focus_chat_input(self): + """Focus the chat input box.""" + details_panel = self.query_one("#details-panel", RunDetailsPanel) + details_panel.switch_tab("chat-tab") + chat_input = details_panel.query_one("#chat-input", Input) + chat_input.focus() + def _add_run_in_history(self, run: ExecutionRun): """Add run to history panel.""" history_panel = self.query_one("#history-panel", RunHistoryPanel)