Skip to content

Fix broken web commands by updating to new Anthropic APIs#93

Open
drewvolz wants to merge 2 commits intosimonw:mainfrom
drewvolz:fix/drewvolz/web-list-web-session
Open

Fix broken web commands by updating to new Anthropic APIs#93
drewvolz wants to merge 2 commits intosimonw:mainfrom
drewvolz:fix/drewvolz/web-list-web-session

Conversation

@drewvolz
Copy link
Copy Markdown

@drewvolz drewvolz commented Apr 7, 2026

Fixes #77

Anthropic changed two undocumented APIs that the web commands relied on:

  1. Listing sessions (GET /v1/sessions) now requires an anthropic-beta: ccr-byoc-2025-07-29 header. Without it, the endpoint rejects requests.

  2. Fetching session transcript via (GET /v1/session_ingress/session/{id}) was retired entirely. It has been replaced by a new paginated endpoint: GET /v1/code/sessions/{id}/teleport-events.

The getTeleportEvents() function and the beta header usage are reverse engineered from Claude Code's --teleport mechanism.

drewvolz added 2 commits April 6, 2026 22:34
The web listing and session fetch commands broke because Anthropic
changed two undocumented APIs:

1. GET /v1/sessions now requires an anthropic-beta header
2. GET /v1/session_ingress/session/{id} was replaced by
   GET /v1/code/sessions/{id}/teleport-events (paginated)

The teleport-events endpoint returns paginated events whose payload field
contains the logline entry directly, replacing the old single-shot
session_ingress response.

Falls back to session_ingress on 404 for the migration period.
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.

web listing and web session conversion command currently broken

1 participant