Commit 5e5f3b8
committed
fix: prefer sessionKey over label instead of rejecting both in sessions_send
LLMs consistently provide both optional sessionKey and label params
when calling sessions_send, triggering an unnecessary "Provide either
sessionKey or label (not both)" error. This breaks agent-to-agent
communication across multiple models (GPT, Kimi, DeepSeek).
When both are provided, prefer sessionKey and ignore label — the
existing fallback logic already handles the label-only path correctly.
Fixes #41199 (sessions_send portion)1 parent 54be30e commit 5e5f3b8
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
74 | 70 | | |
75 | 71 | | |
76 | 72 | | |
| |||
0 commit comments