Commit b028857
fix: propagate app_user_email when global context already exists (#1590)
When invoke_tool receives an existing plugin_global_context from middleware,
the user email was not being propagated to the global context. This caused
plugins to receive user: null in their GlobalContext.
This fix ensures the user email is always propagated to the global context
when available, enabling security plugins to properly track which user
made each request.
Closes #1550
Supersedes #1551
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Ilia Manolov <iliamanolov@outlook.com>1 parent cdb373f commit b028857
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1466 | 1466 | | |
1467 | 1467 | | |
1468 | 1468 | | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1469 | 1472 | | |
1470 | 1473 | | |
1471 | 1474 | | |
| |||
0 commit comments