Application state management.
Centralized state store for the session. Tracks conversation messages, active queries, costs, token usage, and UI state.