Skip to content

fix: restore the /v1 prefix on the stream URL, dot glyph for a flat tool fold - #130

Merged
hbrooks merged 1 commit into
mainfrom
fix/v1-stream-url-and-flat-fold-glyph
Aug 21, 2026
Merged

fix: restore the /v1 prefix on the stream URL, dot glyph for a flat tool fold#130
hbrooks merged 1 commit into
mainfrom
fix/v1-stream-url-and-flat-fold-glyph

Conversation

@hbrooks

@hbrooks hbrooks commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

  • The WebSocket stream URL is the one route the CLI builds by hand; api: drop the /v1 prefix from every route #103 dropped its /v1 prefix on the belief the backend had, but v1_router.py still mounts at prefix="/v1" (/v1/me answers 401, /me answers 404). Restored.
  • Corrected every apiRoutes help line and the two prose route mentions, which advertised prefix-free paths. Verified each against the router's real paths.
  • A tool run that opens a turn branches off nothing, so its collapsed fold takes the assistant's dot instead of .

Test plan

  • bun run typecheck
  • bunx vitest run (427 passing)
  • agent session start --watch against prod: the stream connects instead of 404ing

Important

Restores the /v1 prefix on the WebSocket stream URL and corrects all CLI route documentation to match the backend's actual paths.

  • The stream URL in buildStreamUrl() now includes /v1 (/v1/sessions/{id}/stream instead of /sessions/{id}/stream), fixing the 404 that occurred when streaming sessions.
  • All apiRoutes() documentation strings across 18 command files updated to show /v1/ prefix — these were advertising prefix-free paths but the backend router mounts at prefix="/v1", making them incorrect.
  • Collapsed fold glyphs adjusted: tool runs that open a turn now show instead of , since they branch off nothing (only nested folds get the branch glyph).

This description was created by Ellipsis for 47bb670. It will automatically update as commits are pushed.

…with a dot

The backend never dropped the /v1 prefix, so the WebSocket URL the CLI builds
by hand (the one route not owned by the SDK) has been 404ing since #103. Put
the prefix back and correct every apiRoutes help line, which advertised the
prefix-free paths.

Also: a tool run that opens a turn branches off nothing, so its collapsed fold
(Ran 1 tool call) takes the assistant's dot instead of the branch glyph. The
branch is reserved for a run that hangs off a message.
@hbrooks
hbrooks merged commit 77739a2 into main Aug 21, 2026
1 check passed

@ellipsis-dev ellipsis-dev Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed 47bb670 in 4 minutes, 20 seconds.
  • Reviewed 1 commit with 412 lines of code in 24 files
  • Ran 1 review agent producing 0 comments where 0 were posted
  • This pipeline runs no gatekeeper, so findings are posted as written.
  • View full details on ellipsis.dev

This review was created by Ellipsis. You can tag @ellipsis in this pull request.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant