Skip to content

Commit 5796e61

Browse files
committed
fix: use auth.env for bundle resolution instead of client-controlled query param
Prefer the authenticated API key's environment over the raw env query parameter when resolving assignment rules. Falls back to query param only if auth.env is not set (shouldn't happen with require_api_key).
1 parent 3e249d1 commit 5796e61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/edictum_server/routes/stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def stream(
7979
agent_id,
8080
agent_tags=parsed_tags,
8181
agent_provided_bundle=None,
82-
env=env,
82+
env=auth.env or env,
8383
)
8484
effective_bundle = resolved
8585

0 commit comments

Comments
 (0)