From 6754796710d358d204a9f5a9688ea221175c8038 Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Tue, 2 Dec 2025 22:06:50 +0200 Subject: [PATCH] fix: update textual 6.7.1 --- pyproject.toml | 4 ++-- src/uipath/dev/__init__.py | 2 ++ src/uipath/dev/ui/panels/run_details_panel.py | 7 +++++++ src/uipath/dev/ui/styles/terminal.tcss | 1 + uv.lock | 10 +++++----- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f04eb75..95290f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [project] name = "uipath-dev" -version = "0.0.8" +version = "0.0.9" description = "UiPath Developer Console" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" dependencies = [ "uipath-core>=0.0.6, <0.1.0", "uipath-runtime>=0.1.2, <0.2.0", - "textual>=6.6.0, <7.0.0", + "textual>=6.7.1, <7.0.0", "pyperclip>=1.11.0, <2.0.0", ] classifiers = [ diff --git a/src/uipath/dev/__init__.py b/src/uipath/dev/__init__.py index 8def569..e1ffbcf 100644 --- a/src/uipath/dev/__init__.py +++ b/src/uipath/dev/__init__.py @@ -151,6 +151,7 @@ async def handle_chat_input(self, event: Input.Submitted) -> None: msg_ev = get_user_message_event( user_text, conversation_id=details_panel.current_run.id ) + self._on_chat_for_ui( ChatMessage( event=msg_ev, @@ -158,6 +159,7 @@ async def handle_chat_input(self, event: Input.Submitted) -> None: run_id=details_panel.current_run.id, ) ) + details_panel.current_run.add_event(msg_ev) details_panel.current_run.input_data = {"messages": [msg]} asyncio.create_task(self._execute_runtime(details_panel.current_run)) diff --git a/src/uipath/dev/ui/panels/run_details_panel.py b/src/uipath/dev/ui/panels/run_details_panel.py index e3752ed..7b2f7fc 100644 --- a/src/uipath/dev/ui/panels/run_details_panel.py +++ b/src/uipath/dev/ui/panels/run_details_panel.py @@ -157,6 +157,8 @@ def show_run(self, run: ExecutionRun): """Display traces and logs for a specific run.""" self._show_run_details(run) + self._show_run_chat(run) + logs_log = self.query_one("#logs-log", RichLog) logs_log.clear() for log in run.logs: @@ -236,6 +238,7 @@ def _write_block( def _show_run_details(self, run: ExecutionRun): """Display detailed information about the run in the Details tab.""" self.update_debug_controls_visibility(run) + run_details_log = self.query_one("#run-details-log", RichLog) run_details_log.clear() @@ -302,6 +305,10 @@ def _show_run_details(self, run: ExecutionRun): run_details_log.write(f"[red]\n{run.error.detail}[/red]") run_details_log.write("") + def _show_run_chat(self, run: ExecutionRun) -> None: + chat_panel = self.query_one("#chat-panel", ChatPanel) + chat_panel.update_messages(run) + def _rebuild_spans_tree(self): """Rebuild the spans tree from current run's traces.""" spans_tree = self.query_one("#spans-tree", Tree) diff --git a/src/uipath/dev/ui/styles/terminal.tcss b/src/uipath/dev/ui/styles/terminal.tcss index cae2b2b..627883d 100644 --- a/src/uipath/dev/ui/styles/terminal.tcss +++ b/src/uipath/dev/ui/styles/terminal.tcss @@ -297,6 +297,7 @@ Response, Tool { #chat-container{ background: $surface; + margin-bottom: 1; } #chat-input{ diff --git a/uv.lock b/uv.lock index 5d0dd78..7bd2132 100644 --- a/uv.lock +++ b/uv.lock @@ -875,7 +875,7 @@ wheels = [ [[package]] name = "textual" -version = "6.6.0" +version = "6.7.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markdown-it-py", extra = ["linkify"] }, @@ -885,9 +885,9 @@ dependencies = [ { name = "rich" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/f6/2f/f0b408f227edca21d1996c1cd0b65309f0cbff44264aa40aded3ff9ce2e1/textual-6.6.0.tar.gz", hash = "sha256:53345166d6b0f9fd028ed0217d73b8f47c3a26679a18ba3b67616dcacb470eec", size = 1579327, upload-time = "2025-11-10T17:50:00.038Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ab/00/9520327698acb6d8ae120b311ef1901840d55a6c41580e377f36261daf7a/textual-6.7.1.tar.gz", hash = "sha256:2a5acb0ab316a7ba9e74b0a291fab8933d681d7cf6f4e1eeb45c39a731b094cf", size = 1580916, upload-time = "2025-12-01T20:57:25.578Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/53/b3/95ab646b0c908823d71e49ab8b5949ec9f33346cee3897d1af6be28a8d91/textual-6.6.0-py3-none-any.whl", hash = "sha256:5a9484bd15ee8a6fd8ac4ed4849fb25ee56bed2cecc7b8a83c4cd7d5f19515e5", size = 712606, upload-time = "2025-11-10T17:49:58.391Z" }, + { url = "https://files.pythonhosted.org/packages/2f/7a/7f3ea5e6f26d546ee4bd107df8fc9eef9f149dab0f6f15e1fc9f9413231f/textual-6.7.1-py3-none-any.whl", hash = "sha256:b92977ac5941dd37b6b7dc0ac021850ce8d9bf2e123c5bab7ff2016f215272e0", size = 713993, upload-time = "2025-12-01T20:57:23.698Z" }, ] [[package]] @@ -1002,7 +1002,7 @@ wheels = [ [[package]] name = "uipath-dev" -version = "0.0.8" +version = "0.0.9" source = { editable = "." } dependencies = [ { name = "pyperclip" }, @@ -1029,7 +1029,7 @@ dev = [ [package.metadata] requires-dist = [ { name = "pyperclip", specifier = ">=1.11.0,<2.0.0" }, - { name = "textual", specifier = ">=6.6.0,<7.0.0" }, + { name = "textual", specifier = ">=6.7.1,<7.0.0" }, { name = "uipath-core", specifier = ">=0.0.6,<0.1.0" }, { name = "uipath-runtime", specifier = ">=0.1.2,<0.2.0" }, ]