Skip to content

'claude-code-transcripts web' should recover from authentication errors #40

Description

@simonw

Sometimes the token it uses has expired. Looks like running a fresh Claude Code session fixes that:

~ % uvx claude-code-transcripts web --gist
Error: API request failed: 401 {"type":"error","error":{"type":"authentication_error","message":"Authentication failed"},"request_id":"req_011CWiyYxyRWoR49zdBFg56U"}
~ % claude -p hi
Hello! How can I help you today?
~ % uvx claude-code-transcripts web --gist
? Select a session to import: 2026-01-02T17:30:01  Link truncation markers to co
lophon
...

So the web command should catch that 401 error and see if it can run a short claude -p prompt to refresh the token, then try again. It should only try this once though.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions