Commit abca662
committed
fix(tools): tolerate duplicate sessionKey/label in sessions_send
LLMs and UI layers (ClawX, Control UI) sometimes mirror the same value
into both `sessionKey` and `label` when calling `sessions_send`. This
triggers the mutual-exclusion guard even though the intent is
unambiguous.
Relax the check: only reject when both params are provided AND they
differ. When they are equal, treat the call as sessionKey-only (the
more specific routing path).
Fixes #646991 parent 3631ec1 commit abca662
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
0 commit comments