## What changed
Track retained command sessions on every turn and mark
`command_sessions_world_state` as a removed compatibility flag. When
`write_stdin` is unavailable, keep reporting retained sessions and indicate
that they cannot be polled.
Omit the command session section when there are no sessions and no prior
section. Still emit an empty update when needed to clear stale handles.
## Testing
Update the Code Mode scenario to exercise retained command session tracking
without enabling the flag. Its snapshot omits the empty section before any
commands are retained.
GitOrigin-RevId: fd953750b06f0098ae6382ce3d3115a1263fd305