A routed platform message was closed twice: the platform handler closed its chain as soon as the query was queued (event_done, a few hundred ms, no Runner/model), and the query-pool task opened a second chain with the same event id (pipeline_done). Space keeps the first closure per event, so the half carrying the Runner, model, plugins, real duration and failure was dropped, and node order/parents were inconsistent. - Hand the in-flight chain to the queued query (handoff/resume): the Pipeline lane continues the same chain, nests under the route step and releases it; the chain closes once the ingress boundary and every handoff finished. Dropped, steered and aggregated queries release their handoff; a handoff that never reports back closes as timeout. - Close reasons are now completed / merged / timeout (merged_into names the chain an aggregated message was folded into). - Open the event route step before delivery so the Pipeline/Agent run nests under it and follows it in the chain order. - Report complete failures: class, message, cause chain and traceback tail (about 4000 chars, both ends kept), with common credential shapes and emails redacted; value-style lane failures carry their text. - Record the adapter at ingress and the Runner/category on Agent paths; runner_category now classifies embedded vs local/cloud services from the Runner config (it was always "unknown"). - Send one Workspace per flush with workspace_uuid on the envelope so OSS batches can be authenticated; drop the legacy per-query sanitizing. - Update the data collection policy (zh/en/ja). Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: multica-agent <[email protected]>
Edit documentation in LangBot/docs. The langbot-docs repository is retained as a historical archive. Run the commands below from
LangBot/docs/.
LangBot Official Documentation
This repository is the documentation repository for LangBot. Code repository:
LangBot Code Repository
This is the documentation for LangBot 4.0. For 3.0 documentation, please see the langbot-docs v3 branch
Contributing to Documentation
The documentation is built with Fumapress and Fumadocs. Local development requires Node.js 24 or later.
Clone LangBot, enter its docs/ directory, and install dependencies:
npm ci
After completion, you can modify the documentation. After modifications, use the following command to start locally:
npm run dev
Using Images
Place images in the images directory, then reference them using the absolute path (relative to the project root), such as:

Deployment Details
The documentation is built as a static site in dist/public and hosted on Cloudflare Pages. Type checking, documentation contract tests, and a full static build run before deployment.
Agent-readable exports
npm run build generates agent text after finalizing the /docs base path and
sitemaps. Every published page has a canonical .md companion, advertised by an
HTML rel="alternate" type="text/markdown" link without changing the visible UI.
/docs/llms.txtand/docs/llms-full.txt: all-language index and complete text./docs/{en,zh,ja}/llms.txtandllms-full.txt: language-specific exports.llm.txtis an identical compatibility alias for eachllms.txtindex./docs/openapi/service-api-{en,zh,ja}.json: complete API specifications.
The generator reads canonical MDX with a Markdown AST (not compiled image
variables), preserves callout titles and literal image URLs, and exports every
API operation with its request/response contract, security and transitive schema
references. Unknown semantic JSX or executable expressions fail the build rather
than silently losing content. Generated files stay in dist/public; edit source
MDX/OpenAPI, not generated Markdown. npm test covers conversion, and
npm run test:static verifies sitemap coverage, discovery, links and API contracts
after a build. Run npm run generate:agent-docs to regenerate text in an existing
finalized build.
Some Standardization Guidelines
- Folder and file naming: Use all lowercase, separate words with
-, such asplugin-intro.mdx - Sub-file (folder) naming: No prefix (i.e., the folder name), such as: in the
deployfolder, the folderlangbot, themanualfile in thelangbotfolder is calledmanual.mdx - Documentation files should use
.mdx; the build adapter converts existing Mintlify-compatible components into Fumadocs-renderable markup. - Configure sidebar navigation structure in
docs.json.