Repository navigation
Replies: 3 comments 1 reply
中文翻译 / Chinese Translation问题在运行中(或暂停/失败的)模拟过程中刷新浏览器会触发完全重新启动。前端似乎检测到未完成的状态,并自动发送
这是破坏性的且出乎意料的。页面刷新(GET)不应该触发销毁数据的副作用。 复现步骤
补充说明
改进建议
喜欢这个项目——这个问题是在真实的研究模拟中遇到的,数据丢失非常痛苦。欢迎进一步讨论。 |
|
Note 🤖 Automated maintainer response — Generated by the MiroFish triage agent and checked against Thank you for the detailed report and for documenting the data-loss path. We revalidated the behavior against the current main branch. Step 3 still starts automatically when the component mounts, sends Issue #9 tracks the broader interrupted-run requirement, but this Discussion identifies an additional destructive refresh and graph-consistency problem. We are keeping it open. For now, avoid refreshing or re-entering Step 3 after a run starts, and treat starting the step again as a destructive restart. No implementation date is being promised. |
The destructive refresh path is still present in main@7657031a. Issue #757 now tracks the data-loss defect, and PR #758 offers a focused proposal; #693 and #718 contain overlapping work that also needs review. None is merged. We are keeping this discussion open because it additionally covers resume/checkpoint behavior and consistency between retained graph memory and local run data. A page refresh must preserve an existing run, including when its status cannot be read. Please avoid refreshing or re-entering Step 3 during an existing run until that behavior is corrected and verified. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
Refreshing the browser during a running (or paused/failed) simulation triggers a full simulation restart. The frontend appears to detect an incomplete state and automatically fires
POST /api/simulation/start, which:actions.jsonl)twitter_simulation.db,reddit_simulation.db)This is destructive and unexpected. A page refresh (GET) should never trigger side effects that destroy data.
How I hit this
POST /api/simulation/stop(which correctly sets status toPAUSED).Additional context
stopendpoint setsSimulationStatus.PAUSEDbut there is no correspondingresumeendpoint (line 203 ofsimulation_runner.pymentions resume support in the docstring, but no implementation exists).run_parallel_simulation.pyscript deletes the existing database on startup (lines 1152-1153), making resume impossible at the OASIS level.Suggested improvements
os.remove(db_path), useCREATE TABLE IF NOT EXISTS, and start the simulation loop from the last completed round.Love the project — this came up during a real research simulation and the data loss was painful. Happy to discuss further.
Filed from the CLI via
ghAll reactions