Repository navigation
Conversation
RestApiBase offered get/post/put/patch/delete but no head, so a service that wanted a HEAD route (a cheap existence check before a GET) had to write its own decorator. head() tags the method like the other verbs; _wire_routes() already dispatches to APIRouter.head unchanged. Closes #63 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…nsApiClient The agent_token read strips surrounding whitespace at three sites, but only SessionKeyProvider had tests for it. Add the same two cases (padded token, whitespace-only token) for SessionsBus and SessionsApiClient; the client test also checks the Authorization header itself. Separate the changelog title from the first section with a blank line. Closes #107 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Since FastAPI 0.137, include_router() leaves a lazy wrapper in app.routes instead of the routes themselves. RootApi filtered app.routes for APIRoute, so every route of an included router -- all routes the framework mounts -- was missing and the table rendered empty. Build the table from app.openapi() instead, the public view of the same routes on every supported FastAPI version. Operations on one path with the same summary still share a row. Routes with include_in_schema=False are no longer listed. The tests now use a real application with an included router instead of a mocked app.routes, which could not see the bug. Closes #42 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A publishing service is registered only beside an event-bus client. With event_bus = "sessions", or no event bus, a handler returning an event_type made process_event() raise after the handler had finished, and every successful sessions job was logged as an unexpected ERROR. Look the publisher up through _publisher_for(), which returns None when neither the agent nor the root has one; the event is then skipped, with a WARNING once per agent and DEBUG afterwards. Absence is checked before the registry lookup rather than by catching its ValueError, so two publishing services at one level still fail the delivery. Closes #40 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Generated by Claude Code |
This branch has not been deployed
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.
Four small open issues, one commit each. No dependency on another team, and nothing that the 0.10.0 refactor is about to move.
Changes
fix(eventing): a handler's event is skipped where nothing can publish it. A publishing service exists only beside an event-bus client. Withevent_bus = "sessions", or with no event bus,EventProcessingService.process_event()raised after the handler had finished, so every successful sessions job was logged asUnexpected error processing jobat ERROR._publisher_for()now returnsNonewhen neither the agent nor the root has a publishing service. The event is then skipped, with a WARNING once per agent and DEBUG after that. Absence is checked before the registry lookup rather than by catching itsValueError, so two publishing services at one level still fail the delivery.fix(api): the/service page lists the routes again. Since FastAPI 0.137,include_router()leaves a lazy wrapper inapp.routes, and every route the framework mounts comes from an included router, so the table was empty.RootApinow builds the table fromapp.openapi(), which works on every supported FastAPI version. Routes declared withinclude_in_schema=Falseare no longer listed.headroute decorator to RestApiBase #63,feat(api):@RestApiBase.head(path, **kwargs). It mirrors the other verb decorators, and_wire_routes()needed no change.test(sessions):agent_tokenstripping is covered inSessionsBusandSessionsApiClient. Until now onlySessionKeyProviderhad these tests. The commit also adds a blank line after the changelog title.Each change has a
CHANGELOG.mdentry under Unreleased.Verification
PYTHONPATH=src: two tests start a generated project in a separate interpreter. Re-run with it set, they pass.mypy src/is clean.ruff check,ruff format --checkandblack --checkare clean on the changed files.developcode. The oldRootApitests used a mockedapp.routesand could not see RootApi.root() renders an empty route table with FastAPI >= 0.13x (isinstance(route, APIRoute) check no longer matches sub-router routes) #42, so they now use a real application with an included router.developran the same app.developevent_typeGET /HEAD /api/probe/items/42The run also covered agent registration, the SSE stream, the reconnect catch-up listing,
/health/ready, and unregistering on shutdown.Closes #40, closes #42, closes #63, closes #107.
🤖 Generated with Claude Code