Teknium
7e62d683a6
fix: native-http profile scope follows audio and OAuth work onto worker threads
...
native_profile_scope sets a secondary-profile native ticket's home as a
task-local override, so implicit selectors (no ?profile=) resolve in the
ticket's profile. The audio and provider-OAuth routers then moved work onto
run_in_executor or a bare threading.Thread, and neither copies contextvars.
The worker thread therefore resolved the LAUNCH profile:
- /api/audio/voice-config, the elevenlabs voices list, the TTS/STT lease
routes and speak-stream read the launch profile's STT/TTS config and keys.
- The OAuth device-code poller saved provider tokens into the launch profile.
Native-http tickets are new in this PR, so this is not a main regression.
In-process probe: inside the event loop and under to_thread the home is the
secondary; under run_in_executor and in the poller thread it is the process
home. The fix uses asyncio.to_thread, which copies the context, and starts
the poller thread inside contextvars.copy_context().run. Other dashboard
threads (WhatsApp pairing, MCP OAuth) are given explicitly resolved paths and
were left alone.
(cherry picked from commit 57480ee1f5a88692e58b7f076223406356d91dbe)
2026-10-06 16:21:15 -07:00
..
2026-10-06 14:24:24 -07:00
2026-10-03 23:06:58 -04:00
2026-10-06 11:10:43 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 14:24:24 -07:00
2026-10-06 16:21:15 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 06:21:57 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 23:14:10 +05:30
2026-10-06 23:14:10 +05:30
2026-10-05 15:36:14 -07:00
2026-10-05 16:37:14 -05:00
2026-10-05 23:33:41 -07:00
2026-10-05 15:36:14 -07:00
2026-10-05 15:36:14 -07:00
2026-10-05 22:38:27 -05:00
2026-10-06 23:14:10 +05:30
2026-10-03 16:30:59 +05:30
2026-10-05 23:33:41 -07:00
2026-10-05 15:36:14 -07:00
2026-10-06 23:14:10 +05:30
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-05 17:34:36 -07:00
2026-10-03 16:30:59 +05:30
2026-10-06 14:24:24 -07:00
2026-10-05 10:20:42 -05:00
2026-10-03 23:28:02 +05:30
2026-10-06 14:24:24 -07:00
2026-10-04 12:55:11 -04:00
2026-10-03 23:05:48 -07:00
2026-10-05 00:23:05 -07:00
2026-10-03 20:44:07 +05:30
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-03 16:31:09 +05:30
2026-10-05 19:36:32 +05:30
2026-10-06 14:24:24 -07:00
2026-10-03 19:21:54 +05:30
2026-10-06 14:24:24 -07:00
2026-10-06 02:53:00 -07:00
2026-10-03 19:51:54 +05:30
2026-10-05 13:18:19 +05:30
2026-10-06 03:44:49 -07:00
2026-10-06 06:22:28 -07:00
2026-10-03 21:15:17 +05:30
2026-10-05 16:37:14 -05:00
2026-10-05 16:37:14 -05:00
2026-10-06 05:50:08 -07:00
2026-10-04 00:08:20 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 11:58:00 -07:00
2026-10-06 16:21:15 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 14:24:39 -07:00
2026-10-03 21:57:13 -04:00
2026-10-06 16:21:15 -07:00
2026-10-06 14:24:39 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 04:36:02 -07:00
2026-10-03 20:44:07 +05:30
2026-10-04 13:50:13 -05:00
2026-10-06 12:28:00 -04:00
2026-10-06 14:24:24 -07:00
2026-10-03 16:31:23 +05:30
2026-10-06 14:24:24 -07:00
2026-10-03 16:31:23 +05:30
2026-10-04 00:08:20 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 05:44:21 -07:00
2026-10-06 06:22:27 -07:00
2026-10-06 06:18:39 -07:00
2026-10-03 23:05:48 -07:00
2026-10-05 23:33:41 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 11:10:43 -07:00
2026-10-05 16:06:32 -07:00
2026-10-05 00:22:31 -07:00
2026-10-03 22:32:13 -04:00
2026-10-05 23:33:41 -07:00
2026-10-05 16:41:47 -05:00
2026-10-02 22:40:31 -05:00
2026-10-06 08:13:51 -04:00
2026-10-05 16:41:47 -05:00
2026-10-05 23:33:41 -07:00
2026-10-04 00:10:54 +05:30
2026-10-06 23:14:10 +05:30
2026-10-06 02:53:56 -07:00
2026-10-03 19:01:42 -07:00
2026-10-04 00:08:20 -07:00
2026-10-03 10:26:12 -07:00
2026-10-03 10:15:11 -07:00
2026-10-03 10:15:11 -07:00
2026-10-03 10:15:11 -07:00
2026-10-03 10:15:11 -07:00
2026-10-03 10:15:11 -07:00
2026-10-03 10:15:11 -07:00
2026-10-03 13:34:08 -07:00
2026-10-04 17:53:20 -07:00
2026-10-04 12:08:04 -07:00
2026-10-06 14:23:00 -04:00
2026-10-05 17:24:40 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 11:10:43 -07:00
2026-10-03 10:15:11 -07:00
2026-10-06 11:10:43 -07:00
2026-10-05 17:34:36 -07:00
2026-10-05 17:20:30 -07:00
2026-10-06 14:24:24 -07:00
2026-10-05 17:11:30 -07:00
2026-10-05 17:34:36 -07:00
2026-10-05 20:07:25 +05:30
2026-10-05 17:20:30 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 14:24:24 -07:00
2026-10-05 16:41:08 -05:00
2026-10-04 00:08:20 -07:00
2026-10-03 16:29:29 +05:30
2026-10-06 14:24:24 -07:00
2026-10-05 23:33:41 -07:00
2026-10-05 16:42:57 -05:00
2026-10-06 12:46:06 -04:00
2026-10-06 14:24:24 -07:00
2026-10-06 14:25:21 -07:00
2026-10-06 14:25:21 -07:00
2026-10-06 14:25:21 -07:00
2026-10-05 12:37:47 +05:30
2026-10-03 23:28:02 +05:30
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-04 00:08:20 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 11:10:43 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 04:15:29 -07:00
2026-10-06 14:51:26 -04:00
2026-10-03 16:29:54 +05:30
2026-10-06 14:24:24 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:21:10 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 06:22:27 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 06:27:57 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 06:20:29 -07:00
2026-10-06 06:22:28 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:22:29 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 06:18:39 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 03:44:49 -07:00
2026-10-06 14:23:00 -04:00
2026-10-06 04:36:02 -07:00
2026-10-06 11:15:27 -04:00
2026-10-06 12:59:08 -05:00
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 12:27:41 -04:00
2026-10-06 12:27:22 -04:00
2026-10-06 14:25:44 -07:00
2026-10-06 12:30:01 -04:00
2026-10-06 12:28:55 -04:00
2026-10-06 14:24:24 -07:00
2026-10-04 00:08:20 -07:00
2026-10-05 15:36:14 -07:00
2026-10-03 19:51:54 +05:30
2026-10-06 14:24:37 -07:00
2026-10-06 04:36:02 -07:00
2026-10-06 14:24:24 -07:00
2026-10-03 22:03:44 +05:30
2026-10-03 22:03:44 +05:30