Repository navigation
Commit 446fb93
fix(server): honor logging/setLevel when sendLoggingMessage omits sessionId
The logging/setLevel handler stores the level under the transport's
session id, but sendLoggingMessage(params) looked it up under an undefined
key. On session-bearing transports (Streamable HTTP, SSE) the client's
level was therefore ignored and every message was sent, while the same
call filtered correctly on stdio. Default the lookup to the connected
transport's session id.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 7f7a94c commit 446fb93
3 files changed
Lines changed: 36 additions & 1 deletion
File tree
- .changeset
- packages/server/src/server
- test/integration/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
438 | 441 | | |
439 | | - | |
| 442 | + | |
440 | 443 | | |
441 | 444 | | |
442 | 445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1956 | 1956 | | |
1957 | 1957 | | |
1958 | 1958 | | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
1959 | 1986 | | |
1960 | 1987 | | |
1961 | 1988 | | |
| |||
0 commit comments