Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/uipath/_cli/_dev/_terminal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down Expand Up @@ -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)
Expand Down
Loading