Charis
da1a3ae948
fix(studio): thread auth headers through getReadReplicas ( #49327 )
...
## Summary
- `getReadReplicas` now accepts an optional `headers?: HeadersInit`
param, forwarded to the underlying `get()` call — mirrors
`getContentById`/`getNotebook`.
- Pure plumbing: no behavior change for existing (browser/cookie-auth)
callers.
Part 1/6 of the stack for FE-4225 (expose valid database identifiers to
the notebook AI agent). This PR lets a server-side AI tool call
`getReadReplicas` with the request's bearer token in a later PR in the
stack.
## Test plan
- [x] `getReadReplicas` unit test verifying the header is forwarded on
the outgoing request
- [x] `pnpm --filter studio exec tsc --noEmit` passes
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved read-replica data requests by forwarding authorization
headers correctly.
* Maintained existing request cancellation and error-handling behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-08-21 11:24:03 +08:00
..
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-06-16 00:21:40 +02:00
2026-07-14 14:35:32 +02:00
2026-08-06 16:06:38 +07:00
2026-08-13 09:48:13 +02:00
2026-06-16 00:07:16 +08:00
2026-07-17 17:21:55 +08:00
2026-08-17 11:06:26 +10:00
2026-04-20 10:33:56 +10:00
2026-08-13 09:48:13 +02:00
2026-04-03 09:15:57 +02:00
2026-06-23 19:50:43 +08:00
2026-08-20 16:26:12 -04:00
2026-04-03 09:15:57 +02:00
2026-08-13 09:48:13 +02:00
2026-08-12 10:14:59 +07:00
2026-07-24 08:07:08 +02:00
2026-07-24 16:43:00 +08:00
2026-06-16 00:07:16 +08:00
2026-07-02 08:38:17 +00:00
2026-06-17 19:15:54 +08:00
2026-06-16 00:07:16 +08:00
2026-06-16 00:07:16 +08:00
2026-07-09 17:09:03 +08:00
2026-07-09 17:09:03 +08:00
2026-06-18 07:47:33 -06:00
2026-06-16 00:07:16 +08:00
2026-07-09 17:09:03 +08:00
2026-04-03 09:15:57 +02:00
2026-07-31 16:18:25 +08:00
2026-07-08 17:16:08 +02:00
2026-07-02 08:38:17 +00:00
2026-06-16 00:07:16 +08:00
2026-07-24 08:07:08 +02:00
2026-07-02 08:38:17 +00:00
2026-07-08 12:41:53 +02:00
2026-07-09 17:09:03 +08:00
2026-04-03 09:15:57 +02:00
2026-08-05 16:06:58 +10:00
2026-04-15 12:34:28 -03:00
2026-05-18 09:47:59 +02:00
2026-04-03 09:15:57 +02:00
2026-07-02 08:38:17 +00:00
2026-06-09 12:18:52 +02:00
2026-08-04 09:02:40 -04:00
2026-06-23 11:16:58 -04:00
2026-07-09 17:09:03 +08:00
2026-08-03 21:14:50 +07:00
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-06-22 20:51:14 +00:00
2026-06-02 11:02:38 -06:00
2026-04-03 09:15:57 +02:00
2026-06-04 11:17:14 +02:00
2026-04-03 09:15:57 +02:00
2026-08-06 16:06:38 +07:00
2026-08-20 14:39:38 +02:00
2026-08-06 16:06:38 +07:00
2026-06-23 21:14:27 +00:00
2026-06-16 00:07:16 +08:00
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-07-14 13:16:11 +02:00
2026-07-31 15:26:37 -04:00
2026-08-14 14:56:23 +02:00
2026-08-03 21:14:50 +07:00
2026-08-14 15:09:29 +07:00
2026-08-21 11:24:03 +08:00
2026-04-03 09:15:57 +02:00
2026-08-06 09:02:10 +00:00
2026-08-05 18:25:41 +02:00
2026-08-18 12:29:12 +01:00
2026-04-03 09:15:57 +02:00
2026-04-03 09:15:57 +02:00
2026-08-14 11:29:39 +07:00
2026-08-06 10:52:37 +02:00
2026-04-27 17:42:34 +08:00
2026-08-13 09:48:13 +02:00
2026-04-03 09:15:57 +02:00
2026-07-02 08:38:17 +00:00
2026-05-26 14:02:14 +02:00
2026-07-14 13:16:11 +02:00
2026-07-24 08:07:08 +02:00
2026-07-24 08:07:08 +02:00
2026-05-27 15:19:54 +08:00
2026-04-03 09:15:57 +02:00
2026-07-02 08:38:17 +00:00
2026-07-16 23:46:40 +08:00
2026-06-29 17:43:38 +08:00
2026-07-09 17:09:03 +08:00
2026-08-20 17:54:57 +02:00
2024-07-04 14:48:10 +08:00
2026-01-22 11:17:49 -05:00
2026-03-16 11:22:30 +01:00
2026-04-03 09:15:57 +02:00
2026-06-16 14:58:48 +00:00
2026-04-20 22:32:35 +08:00
2026-06-12 11:16:12 -06:00
2026-06-16 08:02:04 -06:00
2026-07-24 08:07:08 +02:00
2026-07-24 08:07:08 +02:00