DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

[Bug]: 更新到1.19.1进入安全模式,没法退出

Open zhao2596989641 opened this issue 4 months ago • 15 comments

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

1.19.1

What happened?

Image 安全模式是啥啊,没找到关闭按钮

Steps to reproduce

更新1.19.1自动开启了

OS / platform

Windows 11

Relevant logs or output


zhao2596989641 avatar Aug 02 '26 01:08 zhao2596989641

一样的BUG。而且还有另一个bug:网页下载后安装完成,打开界面后还会提示更新到1.19.1,更新后就一直安全模式,重启软件和电脑都不能退出,让Reasonix直接改配置也不行

zhilengjun avatar Aug 02 '26 01:08 zhilengjun

同问,没法关闭这个安全模式,怎么回退到1.19.0版本

beibingyangliuying avatar Aug 02 '26 01:08 beibingyangliuying

同问,没法关闭这个安全模式,怎么回退到1.19.0版本

在发布版里下载对应版本重装就行

zhilengjun avatar Aug 02 '26 02:08 zhilengjun

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、对话记录应该都完好。这更像更新流程没走干净留下的"安全模式锁",理论上不需要重装。

zhao2596989641 avatar Aug 02 '26 02:08 zhao2596989641

一样的BUG。而且还有另一个bug:网页下载后安装完成,打开界面后还会提示更新到1.19.1,更新后就一直安全模式,重启软件和电脑都不能退出,让Reasonix直接改配置也不行

我还有更新失败的bug,准备回退了

zhao2596989641 avatar Aug 02 '26 02:08 zhao2596989641

已经回退至1.19.0,这个版本还是可用的。1.19.1的安全模式关不了,影响正常使用

beibingyangliuying avatar Aug 02 '26 02:08 beibingyangliuying

他家的更新一直很迷 经常软件内OTA会卡死 只能官网重新下更新 即便这样也经常出幺蛾子

WhitePepperLambSoup avatar Aug 02 '26 02:08 WhitePepperLambSoup

甚至直接回退至1.18.0了,因为1.19.0引用历史会话的那个框被遮盖了

beibingyangliuying avatar Aug 02 '26 02:08 beibingyangliuying

+1

phoenixlucky avatar Aug 02 '26 04:08 phoenixlucky

你处于的是 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 查看崩溃报告,或考虑回滚到旧版本。

phoenixlucky avatar Aug 02 '26 04:08 phoenixlucky

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 avatar Aug 02 '26 04:08 immerzu

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 avatar Aug 02 '26 04:08 immerzu

@immerzu @beibingyangliuying @zhao2596989641 #7188

PeterRock avatar Aug 02 '26 07:08 PeterRock

先装1.19.0,再装1.19.1就可以了

zeed3121 avatar Aug 02 '26 14:08 zeed3121

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:

  1. Fully exit Reasonix (tray icon too, since close_behavior=background).
  2. Restore the 6 binaries from the update backups:
    %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.previous
    
    → copy each over the matching binary in the install dir (e.g. G:\Reasonix\reasonix-desktop.exe).
  3. Rename repair/pending-update.json (e.g. add .disabled) so it won't auto-re-upgrade.
  4. Set check_updates = false in %APPDATA%\reasonix\config.toml to prevent auto-upgrading back into the bug.
  5. (Optional) set safeMode: false in repair/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.

jinyue806 avatar Aug 02 '26 17:08 jinyue806

已经彻底修复该问题,麻烦到官网下载新版覆盖安装,网址是https://reasonix.io/#start

SivanCola avatar Aug 03 '26 14:08 SivanCola