Files
LangBot/src
Hyu e3e45d7b34 fix(api): keep the Workspace tenant scope for streamed Agent debug runs
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.
2026-09-30 15:47:59 +08:00
..