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

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Dec 6, 2025

Description

This PR enables stdout redirection to files for uipath run and uipath debug CLI commands by detecting when output is redirected (via sys.stdout.isatty()) and adjusting output formatting accordingly. This allows commands like uipath run agent '{"messages": [...]}' > output.logs to work properly by outputting plain text instead of rich-formatted/colored output when stdout is not a TTY.

Ref: UiPath/uipath-runtime-python#46

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath==2.2.27.dev1009983310",

  # Any version from PR
  "uipath>=2.2.27.dev1009980000,<2.2.27.dev1009990000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

@cristipufu cristipufu requested a review from Copilot December 6, 2025 13:13
@cristipufu cristipufu self-assigned this Dec 6, 2025
@cristipufu cristipufu added the build:dev Create a dev build from the pr label Dec 6, 2025
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Dec 6, 2025

This comment was marked as outdated.

@cristipufu cristipufu force-pushed the fix/run_stdout_redirect branch 2 times, most recently from 4ca0f62 to 884c396 Compare December 7, 2025 12:28
@cristipufu cristipufu force-pushed the fix/run_stdout_redirect branch from 884c396 to 22f7b09 Compare December 7, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.