Skip to content

fix(agent-server): align hybrid UUID routing - #6125

Merged
VascoSch92 merged 1 commit into
OpenHands:mainfrom
Fieldnote-Echo:fix/hybrid-runtime-uuid-routing
Oct 21, 2026
Merged

VascoSch92 merged 1 commit into
OpenHands:mainfrom
Fieldnote-Echo:fix/hybrid-runtime-uuid-routing

Conversation

@Fieldnote-Echo

@Fieldnote-Echo Fieldnote-Echo commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

HUMAN:

This follow-up to #5977 keeps selectable Docker conversations on their selected runtime for every UUID form that the API accepts.


AGENT:

Why

Follow-up to #5977. Selectable runtime dispatch used a narrower UUID grammar than the typed FastAPI routes. Braced and URN forms resolved to a Docker conversation in FastAPI, but the middleware left those requests on the local route.

Summary

  • Capture one non-slash conversation ID segment and parse it with the shared UUID helper.
  • Apply the same parsing rule to HTTP and WebSocket dispatch.
  • Cover canonical, braced, URN, and invalid UUID path values.

Issue Number

Fixes #6124

How to Test

  • On the merged feat(agent-server): per-conversation runtime choice and runtime settings #5977 implementation, the new HTTP regression fails for both braced and URN UUID forms.
  • uv run pytest -q tests/agent_server/docker_runtime/test_hybrid.py -k dispatch -> 12 passed, 2 deselected.
  • uv run pre-commit run --files openhands-agent-server/openhands/agent_server/docker_runtime/hybrid.py tests/agent_server/docker_runtime/test_hybrid.py -> passed.

Video/Screenshots

Not applicable. This change affects request routing only.

Design Doc

Not needed. The change aligns two existing parsers and does not change the public API.

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

Notes

This is a release follow-up to #5977. Invalid UUID values still reach normal FastAPI validation, and bare GET and HEAD requests still use the shared catalog route.

Parse path IDs with the same UUID rules as the typed routes. Route alternate valid forms to Docker and leave invalid values for normal route validation.

Co-authored-by: openhands <openhands@all-hands.dev>
@Fieldnote-Echo
Fieldnote-Echo marked this pull request as ready for review October 21, 2026 14:27
@VascoSch92
VascoSch92 enabled auto-merge (squash) October 21, 2026 14:29
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

🧹 PR Artifact Cleanup Queued

The .pr/ directory reached main after merge. A cleanup PR has been opened or updated: #6122

@VascoSch92
VascoSch92 merged commit 6cb7424 into OpenHands:main Oct 21, 2026
39 of 42 checks passed
VascoSch92 pushed a commit that referenced this pull request Oct 21, 2026
Co-authored-by: openhands <openhands@all-hands.dev>
(cherry picked from commit 6cb7424)
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.

[Bug]: Alternate UUID forms bypass Docker runtime dispatch

2 participants