docs: document Server AI Toolkit session and WebSocket error codes#828
Open
ozdemircibaris wants to merge 1 commit into
Open
docs: document Server AI Toolkit session and WebSocket error codes#828ozdemircibaris wants to merge 1 commit into
ozdemircibaris wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
Do not merge until WS Migration Part 7b (
/stream-tool) ships in the Server AI Toolkit repo. These errors are only reachable via the live-session path that endpoint introduces, so merging earlier would document behavior the API doesn't expose yet. Ready for review now.What
Documents the session and WebSocket error codes introduced by the WebSocket migration in the Server AI Toolkit REST API reference (
rest-api.mdx).{ error: { message, status, code } }) and thecodefield, which wasn't covered before./stream-toolworks on the document over a live connection and surfaces connection/concurrency errors in-band as anerrorevent ({ "type": "error", "code", "status", "message" }), not as an HTTP status. Includes a table of the seven codes with status, cause, and how to handle each:concurrent_edit_conflict,schema_mismatch,websocket_auth_failed,websocket_connection_failed,websocket_sync_timeout,session_limit_reached,session_creation_cancelledconcurrent_edit_conflict(the original issue) with retry guidance and an example, since it's expected behavior in collaborative documents./stream-toolendpoint to the new error section.Why it's blocked
The session layer that throws these errors isn't wired into any merged endpoint yet — only into
/stream-tool(WS Migration Part 7b), which lives in the Server AI Toolkit repo and is still in review, with its response format marked "still being finalized." Documenting against/execute-tool(the REST path) would be inaccurate.Closes TT-494