Group of 2 Under the hood
SDK control responses like get_context_usage and get_usage now strip sensitive detail for hosted/background sessions
What
- New helper functions check whether a session
redactsPersistedLane()(true for hosted/background sessions where the transport persists) and, when true, strip sensitive detail from SDK control responses. get_context_usageresponses omitmemoryFiles, andget_usageresponses exclude usagebehaviorsdata when the session's lane is redacted.- MCP server config secrets are also stripped from responses in this case.
Why
This prevents potentially sensitive details, such as memory file contents, MCP config secrets, or usage behavior data, from being returned over the SDK control channel for hosted or background sessions where that data shouldn't be exposed.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
The finding does not say which sessions or lanes trigger redactsPersistedLane, or why.