Repository navigation
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
|
Thanks — read the full diff and ran the affected tests locally at this head. A few notes. On the follow-up in OpenHands#19837 (new-conversation total failure): not covered. The broker only relays what the authoritative store holds; nothing here repairs a present but provider-rejected refresh token (the Nov-20 Verified locally ( Questions
Known scope: the broker serializes writes but does not fence provider refreshes across runtimes, so two runtimes can still race on the same refresh token. That matches the deferred #4171/#4268 decision, but #19837's "concurrent conversations do not invalidate one another" criterion is narrowed, not met. |
|
Good catch on the 409 path. I pushed 20b3204 to remove the unconditional restart. Recovery now reloads the durable execution status and only considers idle/paused/terminal states restartable; running, waiting-for-confirmation, missing, or unreadable state returns 409 without stopping the container. For an eligible state it releases only its own lease and uses the registry generation token plus The affected route suite passes 33/33 here (the symlink test is Windows-only deselected), and mediation passes 23/23. I still cannot claim live Docker evidence: the Docker client is installed, but the Desktop Linux daemon is unavailable on this machine. The PR body now states that limitation and the Windows-only Pyright/asyncio teardown blockers explicitly. The provider-rejected refresh-token case remains outside this PR's scope as noted. |
HUMAN:
I reviewed the Docker credential sync flow and understand how token rotation works.
AGENT:
Why
Existing Docker conversations keep the Codex credential snapshot captured when the container starts. After OAuth rotation on the host, those conversations continue using the stale token while newly created conversations work.
Summary
Issue Number
Closes #6533
Related to OpenHands/OpenHands#19837
How to Test
uv run pytest tests/agent_server/docker_runtime/test_routes.py -q -k "not test_a_symlinked_conversation_dir_is_rejected"-> 33 passed, 1 deselected.uv run pytest tests/agent_server/docker_runtime/test_mediation.py -q-> 23 passed.egistry.py:749.
Video/Screenshots
Not applicable; this changes server-side credential synchronization.
Design Doc
Not included. The implementation reuses the existing versioned credential-binding contract and limits the new broker to one authenticated internal route.
Type
Notes
The broker exposes only
CODEX_AUTH_JSON, validates the requesting runtime's per-conversation key, and does not log credential values.