Skip to content

docs(agents): open join_url to try a session, token lifetime, safer session examples - #358

Draft
virgoone wants to merge 1 commit into
mainfrom
claude/agent-session-join-url
Draft

virgoone wants to merge 1 commit into
mainfrom
claude/agent-session-join-url

Conversation

@virgoone

@virgoone virgoone commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

The pages on creating and joining an agent session now say what actually happens, and the Quickstart no longer leaves you with a session nobody can join.

  • Quickstart. The API path creates a session and opens the join_url from the response, so the first session is a conversation. The following steps cover connecting from your own app. The example checks the backend response, reports errors on the page, and disables the start button while a call is starting.
  • Token lifetime. A session token and its join_url are valid for about 5 minutes and belong to one conversation. Until they expire, anyone who has them can join that session. Every create call makes a new session. A session no client joins ends as failed with room_join_timeout, is not billed, and sends no call.ended webhook.
  • Microphone. The page must be on https or localhost. A plain http LAN address does not get the microphone.
  • Other pages with a session-creation sample (deploy overview, authenticated sessions, protocol, public agents, dynamic variables, time and timezone, Web SDK, React SDK, widget) say what to do with the response and check it before handing it to the SDK.
  • Overview. REST creates and manages sessions. The conversation itself happens in a client.
  • Corrections checked against the implementation: dynamic_variables limit is 500, the protocol package version is 1.0.0, llm_endpoint_failure is in the end reason tables, API-key requests can get 429 when every concurrent line is in use, 402 wording is the same everywhere, and the llms.txt link to the renamed page is fixed.
  • Web SDK error codes: invalid_session_token, insecure_context, mic_unavailable, and the narrower meaning of unsupported_transport.

api-reference/openapi.json is not touched.

Before merging

  • The API returns join_url in production and the page it points to is live.
  • Replace NEXT_SDK_VERSION (6 places: agents/deploy/authenticated-sessions.mdx, agents/deploy/web-sdk.mdx) with the @fishaudio/agent-client version that ships the new error codes. If that version also bumps @fishaudio/agent-protocol, update the version named on the wire protocol page.

The commit docs(agents): correct limits, versions, and error statuses on session pages does not depend on either and can be taken on its own.

Checks

  • Every code block on the changed pages parses (JS, TSX, JSON, Python, bash). The changed JS and TSX samples type-check against the SDK sources.
  • The Quickstart backend and frontend samples were run against a fake upstream and a fake SDK: success, upstream error, network failure, and microphone denied.
  • All added internal links and anchors resolve.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@mintlify

mintlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
hanabiaiinc 🟢 Ready View Preview Nov 22, 2026, 2:30 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…ession examples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
staging — 296e8539 Deployed Nov 22, 2026 by mintlify[bot]
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