[Bug]: 更新到1.19.1进入安全模式,没法退出
Version line
v2 — Go rewrite (1.x), main-v2 (active development)
Exact version
1.19.1
What happened?
Steps to reproduce
更新1.19.1自动开启了
OS / platform
Windows 11
Relevant logs or output
一样的BUG。而且还有另一个bug:网页下载后安装完成,打开界面后还会提示更新到1.19.1,更新后就一直安全模式,重启软件和电脑都不能退出,让Reasonix直接改配置也不行
同问,没法关闭这个安全模式,怎么回退到1.19.0版本
同问,没法关闭这个安全模式,怎么回退到1.19.0版本
在发布版里下载对应版本重装就行
AI如是回答: 诊断结果:不是配置损坏,是"更新后异常退出"触发的保护机制 证据链:
startup-state.json(程序自己记录的状态):
"safeMode": true "updateFromVersion": "v1.17.21" → "updateToVersion": "v1.19.1" "phase": "healthy" —— 程序本身健康,只是被标记为安全模式 崩溃记录(crash-pending...-17588-1.json,PID 与你当前进程一致):
[desktop.abnormal_exit] Reasonix detected that the previous desktop process ended without a clean shutdown. update transition: v1.17.21 -> v1.19.1 errorType: AbnormalDesktopExit
—— 上一次进程没有"干净退出"(更新过程中被中断/强杀),下次启动时被检测到,于是自动进入安全模式。之后每次在安全模式下关闭,又会产生新的 abnormal_exit 记录,所以一直循环困在安全模式里(9:24、9:30、9:55 有多次记录)。
两份配置都语法完好:config.toml 和 config.toml.last-known-good 均被正常解析(20 个 section),没有损坏。
pending-update.json:更新到 v1.19.1 的记录完整,旧版 exe 备份在 repair\updates*.previous。
结论:你的配置、MCP、skills、对话记录应该都完好。这更像更新流程没走干净留下的"安全模式锁",理论上不需要重装。
一样的BUG。而且还有另一个bug:网页下载后安装完成,打开界面后还会提示更新到1.19.1,更新后就一直安全模式,重启软件和电脑都不能退出,让Reasonix直接改配置也不行
我还有更新失败的bug,准备回退了
已经回退至1.19.0,这个版本还是可用的。1.19.1的安全模式关不了,影响正常使用
他家的更新一直很迷 经常软件内OTA会卡死 只能官网重新下更新 即便这样也经常出幺蛾子
甚至直接回退至1.18.0了,因为1.19.0引用历史会话的那个框被遮盖了
+1
你处于的是 Reasonix 应用的安全模式(不是 Windows 安全模式) 原因:8 月 2 日凌晨你的 Reasonix 从 v1.17.21 自动升级到 v1.19.1,升级后桌面进程崩溃过一次(崩溃记录在 crash-pending,是 DPI 缩放相关的 ScaleToDefaultDPI panic),导致上次进程非正常退出。Reasonix 检测到异常关闭后,自动以 --safe-mode 参数启动(当前进程 PID 21628 命令行就是 reasonix-desktop.exe --safe-mode),并禁用了插件、MCP、Hooks、机器人、自动化和上次保存的标签页。
关键点:安全模式不是持久设置,而是启动参数。REASONIX_SAFE_MODE=1 只存在于当前进程环境里,用户/系统环境变量里都没有。
退出步骤 完全退出 Reasonix(这一步最关键):
点击 Reasonix 窗口右上角关闭后,它只是转入后台(你的配置 close_behavior = "background"),所以还要从系统托盘右键 Reasonix 图标选择退出;或者 在任务管理器里结束 reasonix-desktop.exe 进程(结束前先保存好正在进行的会话)。 重新启动 Reasonix(从开始菜单或桌面图标正常打开,不带任何参数)。
正常启动后安全模式即消失,插件、MCP、Hooks 等会恢复。
如果重启后仍然进入安全模式 说明崩溃问题还没解决(启动时又异常退出了一次)。崩溃发生在保存窗口状态的 DPI 缩放逻辑,常见于远程桌面/多显示器/显示缩放场景。可以尝试:
调整 Windows 显示缩放(设置 → 系统 → 显示 → 缩放),或换个缩放比例后重启应用; 检查显卡驱动是否有更新; 若反复出现,可在 Reasonix 里用 reasonix report list 查看崩溃报告,或考虑回滚到旧版本。
Same issue here (English report) — Reasonix Desktop on Windows, updated to v1.19.1.
After the update, every start shows:
Reasonix started in Safe Mode. Plugins, MCP servers, hooks, bots, automations, and saved tabs are disabled for this run.
Consequences:
- Plugins, MCP servers, hooks, bots, and automations are all disabled.
- Saved tabs are not restored.
- There is no obvious way to leave Safe Mode and get back to normal operation.
Expected behavior: after a normal update the app should start with plugins, MCP servers, hooks, bots, automations, and saved tabs enabled, as before. Safe Mode should only be a one-time recovery path after repeated failed startups (per docs/RECOVERY.md), with a clear way to exit it.
Setup: Reasonix Desktop v1.19.1, Windows, plugins + MCP servers + skills configured in the user config ("%APPDATA%\reasonix\config.toml") and in the project reasonix.toml.
Happy to provide diagnostics (e.g. repair/startup-state.json or reasonix-guard check output) if that helps.
Same issue here (English report) — Reasonix Desktop on Windows, updated to v1.19.1.
After the update, every start shows:
Reasonix started in Safe Mode. Plugins, MCP servers, hooks, bots, automations, and saved tabs are disabled for this run.
Consequences:
- Plugins, MCP servers, hooks, bots, and automations are all disabled.
- Saved tabs are not restored.
- There is no obvious way to leave Safe Mode and get back to normal operation.
Expected behavior: after a normal update the app should start with plugins, MCP servers, hooks, bots, automations, and saved tabs enabled, as before. Safe Mode should only be a one-time recovery path after repeated failed startups (per docs/RECOVERY.md), with a clear way to exit it.
Setup: Reasonix Desktop v1.19.1, Windows, plugins + MCP servers + skills configured in the user config ("%APPDATA%\reasonix\config.toml") and in the project reasonix.toml.
Happy to provide diagnostics (e.g. repair/startup-state.json or reasonix-guard check output) if that helps.
@immerzu @beibingyangliuying @zhao2596989641 #7188
先装1.19.0,再装1.19.1就可以了
Same root cause reproduced on v1.19.2 (Windows 11, 125% DPI scaling). Sharing the complete panic stack plus a verified rollback procedure that fixed it — hope this helps the maintainers narrow it down.
Full crash stack (v1.19.2, from crash-fatal log)
panic: runtime error: integer divide by zero
goroutine 1 [running, locked to thread]:
github.com/wailsapp/wails/v2/internal/frontend/desktop/windows/winc.ScaleToDefaultDPI(...)
.../wails/[email protected]/internal/frontend/desktop/windows/winc/utils.go:155
github.com/wailsapp/wails/v2/internal/frontend/desktop/windows/winc.(*ControlBase).scaleToDefaultDPI(0x7ff60805a920?, 0x0, 0x0)
.../wails/[email protected]/internal/frontend/desktop/windows/winc/controlbase.go:528 +0x97
github.com/wailsapp/wails/v2/internal/frontend/desktop/windows/winc.(*ControlBase).Size(0x2048050241c0)
.../wails/[email protected]/internal/frontend/desktop/windows/winc/controlbase.go:261 +0x90
github.com/wailsapp/wails/v2/internal/frontend/desktop/windows.(*Frontend).WindowGetSize(0x204805092800)
.../wails/[email protected]/internal/frontend/desktop/windows/frontend.go:273 +0x5b
github.com/wailsapp/wails/v2/pkg/runtime.WindowGetSize(...)
.../wails/[email protected]/pkg/runtime/window.go:80 +0x29
main.(*App).saveWindowStateSync(0x204804ccd188)
desktop/window_state.go:76 +0x32
main.(*App).shutdown(0x204804ccd188, ...)
desktop/app.go:879 +0xe8
Key detail: the panic happens on shutdown (App.shutdown → saveWindowStateSync → WindowGetSize), not at startup. ScaleToDefaultDPI divides by zero when the window handle is already gone / DPI is 0 during teardown. This is a Wails v2.12.0 bug, triggered by the v1.19.x upgrade (v1.17.21 worked fine at the same 125% DPI).
Repro conditions: Windows 11, display scaling 125% (AppliedDPI=144), update v1.17.21 → v1.19.2. Two consecutive crashes on exit → Safe Mode lock (safeMode=true in repair/startup-state.json).
Verified rollback procedure (no reinstall needed)
Reasonix keeps official backups of the previous version — I used them successfully:
- Fully exit Reasonix (tray icon too, since close_behavior=background).
- Restore the 6 binaries from the update backups:
→ copy each over the matching binary in the install dir (e.g.%APPDATA%\reasonix\repair\updates\reasonix-desktop.exe.previous %APPDATA%\reasonix\repair\updates\reasonix-guard.exe.previous %APPDATA%\reasonix\repair\updates\reasonix-launcher.exe.previous %APPDATA%\reasonix\repair\updates\reasonix-update-helper.exe.previous %APPDATA%\reasonix\repair\updates\reasonix-cli.exe.previous %APPDATA%\reasonix\repair\updates\Reasonix.exe.previousG:\Reasonix\reasonix-desktop.exe). - Rename
repair/pending-update.json(e.g. add.disabled) so it won't auto-re-upgrade. - Set
check_updates = falsein%APPDATA%\reasonix\config.tomlto prevent auto-upgrading back into the bug. - (Optional) set
safeMode: falseinrepair/startup-state.json.
Note: one user reported that simply editing safeMode back to false in startup-state.json gets reverted to true on next start — that's because the underlying crash still happens on exit. Rolling back the binaries is the durable fix; the safeMode flag edit alone is not.
Feature request for the team: guard App.shutdown / saveWindowStateSync against the teardown window (check window handle validity before WindowGetSize), or pin Wails to a version where ScaleToDefaultDPI handles dpi=0. Also, Safe Mode should be clearly exit-able / one-time (per docs/RECOVERY.md) instead of a persistent lock after a routine auto-update.
已经彻底修复该问题,麻烦到官网下载新版覆盖安装,网址是https://reasonix.io/#start