You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
runUntil with maxSteps reports $stop as a timeout #1464
Simulation::run_until_bounded (crates/celox/src/simulation.rs) returns false both when the step budget runs out and when a step stops at $stop. The TypeScript Simulation.runUntil(endTime, { maxSteps }) (packages/celox/src/simulation.ts) turns any false into a SimulationTimeoutError. So a design that runs $stop before endTime throws a timeout, and the caller can't get the normal return it needs to check isStopped().
Fix: give the stop its own result, or have the binding check isStopped() before treating false as a timeout. Add a test for $stop under runUntil with maxSteps.
Activity
fix(js): return normally when bounded simulations stop