Skip to content

docs(ai-transport): Add Troubleshooting page#3390

Merged
zknill merged 2 commits into
mainfrom
zak/ait-docs-troubleshooting
Jun 1, 2026
Merged

docs(ai-transport): Add Troubleshooting page#3390
zknill merged 2 commits into
mainfrom
zak/ait-docs-troubleshooting

Conversation

@zknill
Copy link
Copy Markdown
Contributor

@zknill zknill commented May 28, 2026

Add a single flat troubleshooting page covering the failure modes that produce most AI Transport support tickets. Entries follow the same shape — symptom, confirm, fix — and lead with the three must-check items: channel namespace rule, capability or token scope mismatch, and history retention.

The operational entries below cover stuck turns, cancel-not-stopping, duplicate turns, oversized payloads, shared clientId across devices, out-of-sync branch selection, reconnect loops, mid-stream agent crashes, and suspended-state publishes. Each is verified against the ai-transport-js source so symptom and fix match real SDK behaviour (for example, the message status is streaming / finished — there is no aborted state).

Link the page from the nav between "Going to production" and "API reference".

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 28, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 45e9c353-f362-4249-9866-418120bd70ee

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch zak/ait-docs-troubleshooting

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@zknill zknill force-pushed the zak/ait-docs-troubleshooting branch from 4b6495d to d013624 Compare May 28, 2026 13:24
@zknill zknill requested a review from rainbowFi May 28, 2026 13:25
Copy link
Copy Markdown
Contributor

@rainbowFi rainbowFi left a comment

Choose a reason for hiding this comment

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

Couple of suggestions but nothing blocking. Thanks!


## Channel namespace not configured for AI Transport <a id="namespace-not-configured"/>

**Symptom:** Clients see an empty assistant message, or a message containing only the first token. The server errors on subsequent publishes. The initial `message.create` succeeds, but the `message.append` operations that AI Transport uses to stream tokens fail because the namespace does not permit appends. This is the single most common AI Transport failure.
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.

I think we should include error code/error text here for searchability

**Fix:**

- Enable the *Message annotations, updates, deletes, and appends* rule on the namespace. See [enable message updates and deletes](/docs/ai-transport/concepts/authentication#enable-updates-deletes) for the dashboard, Control API, and CLI steps.
- Note that enabling this rule causes messages to be persisted regardless of whether persistence is enabled, which increases usage.
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.

Suggested change
- Note that enabling this rule causes messages to be persisted regardless of whether persistence is enabled, which increases usage.
- Note that enabling this rule automatically enables [message persistence](https://ably.com/docs/storage-history/storage#all-message-persistence) for all channels in the namespace, which increases usage.

zknill added a commit that referenced this pull request Jun 1, 2026
Apply review feedback from PR #3390 on the namespace section of the
AI Transport troubleshooting page.

- Add the literal server error code (93002) and message text emitted
  when message.append is rejected on a namespace without the Message
  annotations, updates, deletes, and appends rule, so users hitting
  the failure find the page by searching their server logs.
- Link the persistence note to the message-persistence reference, and
  clarify the rule causes persistence regardless of the namespace
  persistence toggle.
zknill added 2 commits June 1, 2026 13:16
Add a single flat troubleshooting page covering the failure modes that
produce most AI Transport support tickets. Entries follow the same
shape — symptom, confirm, fix — and lead with the three must-check
items: channel namespace rule, capability or token scope mismatch, and
history retention.

The operational entries below cover stuck turns, cancel-not-stopping,
duplicate turns, oversized payloads, shared clientId across devices,
out-of-sync branch selection, reconnect loops, mid-stream agent
crashes, and suspended-state publishes. Each is verified against the
ai-transport-js source so symptom and fix match real SDK behaviour
(for example, the message status is streaming / finished — there is
no aborted state).

Link the page from the nav between "Going to production" and "API
reference".
Apply review feedback from PR #3390 on the namespace section of the
AI Transport troubleshooting page.

- Add the literal server error code (93002) and message text emitted
  when message.append is rejected on a namespace without the Message
  annotations, updates, deletes, and appends rule, so users hitting
  the failure find the page by searching their server logs.
- Link the persistence note to the message-persistence reference, and
  clarify the rule causes persistence regardless of the namespace
  persistence toggle.
@zknill zknill force-pushed the zak/ait-docs-troubleshooting branch from 57cddca to 5281a79 Compare June 1, 2026 12:16
@zknill zknill enabled auto-merge June 1, 2026 12:16
@zknill zknill merged commit 48087b7 into main Jun 1, 2026
7 checks passed
@zknill zknill deleted the zak/ait-docs-troubleshooting branch June 1, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants