Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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 9 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()
cristipufu marked this conversation as resolved.
Show resolved Hide resolved

def _add_run_in_history(self, run: ExecutionRun):
"""Add run to history panel."""
history_panel = self.query_one("#history-panel", RunHistoryPanel)
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.