Commit 09c9dbb
fix(agents): use first @ after last slash in splitTrailingAuthProfile
The parser used `lastIndexOf("@")` which incorrectly split email-based
Auth Profile IDs like `google-gemini-cli:[email protected]`. By searching
for the first `@` after the last `/` instead, both scoped model paths
(e.g. `@cf/...`) and email-containing profiles are handled correctly.
Closes #30912
Co-Authored-By: Claude Opus 4.6 <[email protected]>1 parent 907c09e commit 09c9dbb
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments