React state for the agent chat: settings, threads (persisted through chat/store), the MCP connection, one in-flight turn at a time, and the write-tool confirmation gate.
React state for the agent chat: settings, threads (persisted through chat/store), the MCP connection, one in-flight turn at a time, and the write-tool confirmation gate.