Skip to main content

State Management Issues

Symptoms

  • Stateful mock data not persisting between requests
  • Unexpected state values
  • State not resetting properly

Solutions

State Not Persisting

  1. Verify state management is enabled in simulation settings
  2. Check that state write operations use the correct key
  3. Ensure the simulation hasn't been restarted (state resets on restart)

Resetting State

  • UI: Simulation settings > Reset State
  • CLI: surestage simulations reset <id>
  • API: POST /simulations/:id/reset-state

State Debugging

Check current state via the simulation detail view under the State tab to inspect stored key-value pairs.