Skip to content

Commit 490c958

Browse files
authored
Merge pull request #22 from UiPath/fix/chat_agents
fix: update textual 6.7.1
2 parents 2bf6f0f + 6754796 commit 490c958

File tree

5 files changed

+17
-7
lines changed

5 files changed

+17
-7
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[project]
22
name = "uipath-dev"
3-
version = "0.0.8"
3+
version = "0.0.9"
44
description = "UiPath Developer Console"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
88
"uipath-core>=0.0.6, <0.1.0",
99
"uipath-runtime>=0.1.2, <0.2.0",
10-
"textual>=6.6.0, <7.0.0",
10+
"textual>=6.7.1, <7.0.0",
1111
"pyperclip>=1.11.0, <2.0.0",
1212
]
1313
classifiers = [

src/uipath/dev/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,15 @@ async def handle_chat_input(self, event: Input.Submitted) -> None:
151151
msg_ev = get_user_message_event(
152152
user_text, conversation_id=details_panel.current_run.id
153153
)
154+
154155
self._on_chat_for_ui(
155156
ChatMessage(
156157
event=msg_ev,
157158
message=msg,
158159
run_id=details_panel.current_run.id,
159160
)
160161
)
162+
details_panel.current_run.add_event(msg_ev)
161163
details_panel.current_run.input_data = {"messages": [msg]}
162164

163165
asyncio.create_task(self._execute_runtime(details_panel.current_run))

src/uipath/dev/ui/panels/run_details_panel.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ def show_run(self, run: ExecutionRun):
157157
"""Display traces and logs for a specific run."""
158158
self._show_run_details(run)
159159

160+
self._show_run_chat(run)
161+
160162
logs_log = self.query_one("#logs-log", RichLog)
161163
logs_log.clear()
162164
for log in run.logs:
@@ -236,6 +238,7 @@ def _write_block(
236238
def _show_run_details(self, run: ExecutionRun):
237239
"""Display detailed information about the run in the Details tab."""
238240
self.update_debug_controls_visibility(run)
241+
239242
run_details_log = self.query_one("#run-details-log", RichLog)
240243
run_details_log.clear()
241244

@@ -302,6 +305,10 @@ def _show_run_details(self, run: ExecutionRun):
302305
run_details_log.write(f"[red]\n{run.error.detail}[/red]")
303306
run_details_log.write("")
304307

308+
def _show_run_chat(self, run: ExecutionRun) -> None:
309+
chat_panel = self.query_one("#chat-panel", ChatPanel)
310+
chat_panel.update_messages(run)
311+
305312
def _rebuild_spans_tree(self):
306313
"""Rebuild the spans tree from current run's traces."""
307314
spans_tree = self.query_one("#spans-tree", Tree)

src/uipath/dev/ui/styles/terminal.tcss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ Response, Tool {
297297

298298
#chat-container{
299299
background: $surface;
300+
margin-bottom: 1;
300301
}
301302

302303
#chat-input{

uv.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)