mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-21 16:05:19 +08:00
The NDJSON debug stream emits its frames after the request handler returned, so the request-scoped tenant scope is already closed by then. The deferred execution therefore failed with TenantScopeRequiredError on its first persistence access and the client only saw a generic runner_error frame with no log entry. Re-enter the Workspace tenant scope around the deferred execution and log unexpected failures with their traceback.