Repository navigation
fix(agent-server): correct WebhookSpec base_url and flush_delay descriptions - #5943
Merged
Merged
Conversation
…iptions
The published descriptions said events go to {base_url}/events and that
the flush timer resets on each new event. Event batches are posted to
{base_url}/events/{conversation_id.hex}, and the timer starts at the first
queued event and is not reset (test_flush_delay_not_reset_on_new_event).
Docs only; drop the F32.webhook-spec-docs known-bug marker.
Fixes #5936
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014MKndVj7XWvRQmvW9w2bDg
Contributor
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
Contributor
enyst
marked this pull request as ready for review
October 14, 2026 02:44
all-hands-bot
approved these changes
Oct 14, 2026
all-hands-bot
left a comment
Collaborator
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Scope: in-repo and correctly owned. This is an agent-server change to the OpenAPI contract (openhands-agent-server/openhands/agent_server/config.py), which this repository owns. No product/architecture decision is required.
What the change does: rewrites two WebhookSpec Field(description=...) strings and one verify-agent-server map entry, plus a metadata-only regression test. No behaviour change.
Verification against the workspace:
base_urlnow says event batches go to{base_url}/events/{conversation_id.hex}(id without dashes) and conversation info to{base_url}/conversations.WebhookSubscriberbuilds exactlyf"{self.spec.base_url.rstrip('/')}/events/{self.conversation_id.hex}"(conversation_service.py:2636) and.../conversations(:2800). Accurate.flush_delaynow says the timer starts with the first queued event and is not reset by later events._start_flush_timeronly creates a timer when_flush_timeris falsy (:2751), andtest_flush_delay_not_reset_on_new_eventasserts this. Accurate.- Grepped the tree: no other in-repo source embeds the old strings; the only remaining copies are the two
not-containsassertions in the F32 map (intended) and the generated TypeScript schema. - The generated
clients/typescript/src/generated/agent-server-schema.tsstill contains the old text. Leaving it untouched is correct:scripts/check-agent-server-api.mjsregenerates fromconfig.agentServerImage(pinned1.54.0-python) and fails if the file differs, so editing it here would break that check. It is unsupported release state until the next agent-server bump. - Metadata-only
Fielddescription edits are explicitly treated as non-breaking under the AGENTS.md API compatibility pointers; no deprecation/migration is needed. - Local focused run:
tests/agent_server/test_config.py(16 passed) andtests/agent_server/test_webhook_subscriber.py(43 passed). Current-head check runs forec3744b0are green, includingagent-server-testsand the OpenAPI REST API breakage check.
No material correctness, security, compatibility, or acceptance-criterion defect found on the current head.
✅ APPROVED
1 of 5 tasks
Co-authored-by: openhands <openhands@all-hands.dev>
Merged
1 of 7 tasks
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:
This PR proposes a fix for a bug uncovered during the first full agentic run of
verify-agent-server.AGENT:
Summary
Conversation metadata still goes to
{base_url}/conversations. Runtime behavior does not change.Why
Published webhook descriptions should match the receiver path and timer behavior already implemented.
Issue Number
Fixes #5936
How to Test
Previously recorded verification:
Reproduction commands, results, and limits
uv run pytest -q tests/agent_server/test_config.py tests/agent_server/test_webhook_subscriber.py: 59 passed. The new test fails on main (old descriptions) and passes here.uv run pre-commit run --files <changed files>: all hooks pass.control-agent-server map run --file F32 --only F32.webhook-spec-docs --fresh --repeat 2 --checkout <main checkout>->xfailin both attempts.xpassin both attempts.control-agent-server map checkok (no problems);map run --file F32 --only F32.webhook-spec-docs --fresh->pass.Video/Screenshots
No UI change; reproduction evidence is above.
Type
Notes
Generated TypeScript descriptions remain pinned to the released Agent Server schema and update with the next server version bump.
Visual explanation by Codex using HumanLayer show-me.
🐳 Agent Server images for this PR — GHCR package, pull/run commands, and all pushed tags (click to expand)
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdkpython-node-runtimepython-node-runtimepython-node-runtimegolang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:124bf91-pythonRun
All tags pushed for this build
About Multi-Architecture Support
124bf91-python) is a multi-arch manifest supporting both amd64 and arm64124bf91-python-amd64) are also available if neededJev-Fast-Audit
⚡ Jev fast audit · estimates · 0.30s · commit ec3744b
Strongest signal: No primary concern selected.
Evidence: No primary concern to locate.
Coverage: complete supplied coverage; 6/6 hunks, 3/3 files.
All estimates and evidence