Repository navigation
fix(app-conversation): let ordinary launches start in sandboxes below the SDK floor (OHE-3838) - #1083
Merged
tofarr merged 2 commits intoOct 30, 2026
Conversation
… the SDK floor (OHE-3838) Since #763 every new conversation start calls the sandbox's /server_info and fails when its agent-server reports openhands-sdk below 1.54.0. On OHE a sandbox cannot change image in place, so after upgrading to 0.92.0 no pre-existing sandbox could host a new conversation: explicit sandbox_id (automations, API, SDK), /new in an old conversation, Plan sub-conversations and grouping into a running old sandbox all ended in the upgrade error. Customers below 0.82 have every sandbox on 1.50.1. An agent-server that old honors everything an ordinary launch sends (checked field by field against the 1.50.1 models and tool registry; the default tool list still resolves because switch_llm is sent through include_default_tools). The two things it cannot run are a profile persona, which it drops silently, and the ACP agent_settings transport, which it rejects on schema version. Keep the fast failure for those two cases, with the message naming the reason, and let every other launch proceed with a warning in the log. Update the upgrade guide accordingly, and cover the start path with a test that runs the real check against a 1.50.1 /server_info instead of the shared stub.
…-blocker-error-conversation-start-failed
Contributor
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
tofarr
deleted the
hiep/ohe-3838-release-blocker-error-conversation-start-failed
branch
October 30, 2026 11:09
Contributor
|
🚀 Released in 1.83.0. |
1 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
Since #763,
_start_app_conversationcalls the sandbox's/server_infoand fails every new conversation start whose agent-server reports openhands-sdk below 1.54.0, before the start request is built. On OHE a sandbox cannot change image in place (resume keeps the image; replacing the sandbox loses/workspace), so after upgrading to 0.92.0 no pre-existing sandbox can host a new conversation. Explicitsandbox_id(automations, API, SDK),/newfrom an old conversation, Plan sub-conversations and grouping into a running old sandbox all end in:Customers below 0.82 have every sandbox on agent-server 1.50.1. This is the release blocker in OHE-3838.
What an agent-server that old actually does with the request, checked field by field against the 1.50.1 models and tool registry:
AgentContext,Tool,MCPServerand the request model are unchanged since 1.49.6 and ignore unknown fields. The default tool list resolves becausecreate_agent()sendsswitch_llmthroughinclude_default_toolsby class name.personais dropped silently (Agent.personalanded in SDK 1.51.0).agent_settingstransport (fix(agent-profiles): align Enterprise launches with the SDK #763 moved ACP off theagenttransport) is rejected on schema version.Nothing profile-related changed between SDK 1.53 and 1.54, so the floor itself is historical. I kept it: no OHE release shipped an agent-server between 1.51 and 1.53 (0.82 went 1.50.1 → 1.55.1), so lowering it would change nothing in practice.
Summary
_ensure_profile_runtimetakes the resolved launch settings. Below the floor it raises only for an ACP agent or a profile persona, with the message naming the reason; every other launch proceeds and logs a warning with the sandbox URL and reported version. Browser detection fromusable_toolsis unchanged.docs/agent-profile-upgrade.mddescribes the narrowed behavior instead of telling operators to replace sandboxes through a lifecycle OHE does not have./server_info(the shared stub insetup_methodhad kept the gate out of every start test).Issue Number
Linear OHE-3838. Refs #763 (introduced the gate) and #902, #903, #965, #966 (the earlier old-sandbox fixes this restores).
How to Test
329 tests pass locally and every hook (ruff, ruff format, mypy) passes.
On Beta, with a sandbox still on
agent-server:1.50.1-python(the long-lived automation sandbox from the ticket):sandbox_idset to that sandbox and the default profile. The start task reachesREADYand the app-server logsSandbox … reports openhands-sdk 1.50.1 (<1.54.0); launching without Agent Profile runtime support.agent_type: plan, and from/newinside one of its conversations. Both start.This sandbox requires openhands-sdk >=1.54.0 to launch an Agent Profile persona. Upgrade its image and start a new sandbox; existing conversations remain readable.I have not run the Beta steps yet; they need an existing pre-0.82 sandbox.
Video/Screenshots
None (backend only).
Type
Notes
sandbox_idunderNO_GROUPINGcreates a fresh one. I did not change_filter_sandboxes_with_known_spec(fix(app-conversation): prefer sandboxes on the advertised image when grouping #966): with this fix old sandboxes work again for ordinary launches, which is what that fallback intended.agent_settingsschema version (schema 9 arrived in SDK 1.56.0); the current floor never covered them.sub_agent_scopeparams that a 1.50.1TaskToolSetdoes not accept, so that combination still fails on the first message. Rare enough to leave ungated./resumewith an image) would remove this class of issue for future bumps; tracked in the ticket as post-release work.Enterprise server image for this PR: