Skip to content

chore: bump uipath floor to 2.10.57#106

Merged
JoshParkSJ merged 3 commits intomainfrom
josh/uipath-floor-bump
May 1, 2026
Merged

chore: bump uipath floor to 2.10.57#106
JoshParkSJ merged 3 commits intomainfrom
josh/uipath-floor-bump

Conversation

@JoshParkSJ
Copy link
Copy Markdown
Contributor

@JoshParkSJ JoshParkSJ commented Apr 30, 2026

Fixes the uipath-dev-python import crash that broke the dev-console cross-repo tests in uipath-langchain-python after uipath-langchain-python#703 landed.

Root cause

uipath >= 2.10.57 removed UiPathConversationToolCallConfirmationValue from uipath.core.chat. The dev console imported it at module load time, causing an ImportError on startup before any TUI could render.

What changed

  • pyproject.toml / uv.lock — bumps uipath floor to >=2.10.57, <2.11.0 and refreshes lock file.
  • models/chat.py — drops the interrupts=[] kwarg from two UiPathConversationMessage(...) calls (field removed upstream in 2.10.57).
  • run_service.py — replaces the removed UiPathConversationToolCallConfirmationValue with UiPathConversationToolCallConfirmationEvent. Removes the old interrupt-based confirmation path (_handle_interrupt, _try_parse_tool_call_confirmation, on_interrupt, resume_chat) and adds confirm_tool_call(run_id, approved, input).
  • chat_bridge.py — replaces _resume_event/resume() with _tool_confirmation_event/set_tool_confirmation(); emit_interrupt_event becomes a no-op (confirmations now arrive via confirmToolCall WS message).
  • server/__init__.py — removes on_interrupt wiring to RunService.
  • ws/handler.py — handles the new CHAT_CONFIRM_TOOL_CALL client command and calls run_service.confirm_tool_call().
  • ws/protocol.py — adds CHAT_CONFIRM_TOOL_CALL to ClientCommand.
  • ws/manager.py — removes the now-deleted CHAT_INTERRUPT server event.

Verification

  • uv run mypy src/ clean
  • uv run ruff check src/ clean
  • uv run pytest tests/ --ignore=tests/e2e → 11 passed
  • uv run uipath-dev-server boots, GET / returns 200

Tightens the uipath dependency to >=2.10.57 so this repo installs
cleanly alongside the recently-merged CAS tool-confirmation migration
in uipath-python. The only source change required at this floor is
dropping the now-removed `interrupts` kwarg from
`UiPathConversationMessage` constructor calls in models/chat.py.

The full migration of the interrupt → event-based confirmation flow
in the dev console is tracked separately (see closed reference PR
#105 on josh/cas-tc-migration).
@JoshParkSJ JoshParkSJ marked this pull request as ready for review May 1, 2026 15:23
JoshParkSJ and others added 2 commits May 1, 2026 11:37
… new event type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…as-tc)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JoshParkSJ JoshParkSJ merged commit 553064d into main May 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant