Skip to content

fix: four small open issues (#40, #42, #63, #107) - #115

Open
Astrasu wants to merge 4 commits into
developfrom
fix/small-open-issues
Open

Astrasu wants to merge 4 commits into
developfrom
fix/small-open-issues

Conversation

@Astrasu

@Astrasu Astrasu commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

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

Each change has a CHANGELOG.md entry under Unreleased.

Verification

branch develop
#40: two jobs whose handler returns an event_type both run, one WARNING, no ERROR ERROR on every job
#42: GET / 9 rows 0 rows
#63: HEAD /api/probe/items/42 200 405

The 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

Astrasu and others added 4 commits October 23, 2026 13:36
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>

SawwR commented Oct 23, 2026

Copy link
Copy Markdown

⚠️ Version not bumped

pyproject.toml has [project].version = "0.8.2" on both this branch (fix/small-open-issues) and the target branch (develop). Please bump the version (e.g. to 0.8.3 for a fix) before merging.


Generated by Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment