Describe the bug
When passing a state_delta to the agent runner, I need to include a temp_state. However, in the current ADK flow, the session service ignores the provided temp_state when creating the invocation and injecting events. As a result, temp-only state cannot be applied for a single turn and is effectively dropped.
To Reproduce
- Create an agent invocation through the agent runner with state_delta that includes a temp_state payload intended only for the current turn.
- Observe that the session service builds the invocation and injects events without applying the provided temp_state.
- The agent runs as if temp_state was never provided.
Impact
- Cannot apply ephemeral, per-turn overrides or sandboxed state adjustments.
- Forces callers to mutate persistent state for transient needs, which is undesirable and error-prone.