mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-26 18:51:35 +08:00
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]>