bincxz
73ed3e02ed
fix: retry recovery after display stabilization
2026-09-03 11:04:21 +08:00
bincxz
0fb15b99c5
fix: match displays across transient identifiers
2026-09-03 10:55:07 +08:00
bincxz
35076fea5d
fix: limit display recovery to Windows
2026-09-03 10:45:18 +08:00
bincxz
192c7043c1
fix: handle transient display identifiers
2026-09-03 10:43:20 +08:00
bincxz
2538da9891
fix: distinguish manual moves after unlock
2026-09-03 10:40:35 +08:00
bincxz
56deb86151
fix: honor immediate post-unlock window moves
2026-09-03 10:32:32 +08:00
bincxz
a6683e23ab
fix: respect post-unlock window moves
2026-09-03 10:26:09 +08:00
bincxz
0326881d85
fix: preserve display recovery through lock teardown
2026-09-03 10:20:37 +08:00
netcatty-bot
cc0fc9ee19
fix: address Codex review on PR #3246
2026-09-02 16:09:27 +00:00
netcatty-bot
c628cb233c
fix: address Codex review on PR #3246
2026-09-02 15:39:40 +00:00
netcatty-bot
5f3a1eaed6
fix: address Codex review on PR #3246
2026-09-02 15:19:14 +00:00
netcatty-bot
5d10f09a0a
fix: address Codex review on PR #3246
2026-09-02 14:58:20 +00:00
netcatty-bot
4abbdd9e48
fix: address Codex review on PR #3246
2026-09-02 14:28:20 +00:00
netcatty-bot
6ff65334d4
fix: address Codex review on PR #3246
2026-09-02 13:57:51 +00:00
netcatty-bot
2c23f445ac
fix: address Codex review on PR #3246
2026-09-02 13:35:57 +00:00
netcatty-bot
e3f56204b2
fix: address Codex review on PR #3246
2026-09-02 13:14:48 +00:00
netcatty-bot
dcc3e0718f
fix: address Codex review on PR #3246
2026-09-02 12:47:36 +00:00
netcatty-bot
b0481e7da0
fix: address Codex review on PR #3246
2026-09-02 12:04:59 +00:00
netcatty-bot
e911792287
fix: address Codex review on PR #3246
2026-09-02 11:46:01 +00:00
netcatty-bot
3b6f185866
fix: address Codex review on PR #3246
2026-09-02 11:17:07 +00:00
netcatty-bot
9c61e46635
fix: address Codex review on PR #3246
2026-09-02 10:56:43 +00:00
netcatty-bot
f4987550f1
fix: address Codex review on PR #3246
2026-09-02 10:31:01 +00:00
netcatty-bot
8332aa2dbd
fix: address Codex review on PR #3246
2026-09-02 09:58:58 +00:00
netcatty-bot
da8b13471f
fix: address Codex review on PR #3246
2026-09-02 09:35:02 +00:00
netcatty-bot
4fad9b8dcf
fix: address Codex review on PR #3246
2026-09-02 08:59:57 +00:00
netcatty-bot
2569c6c3c4
fix: address Codex review on PR #3246
2026-09-02 08:40:57 +00:00
netcatty-bot
606c53d7fa
fix: address Codex review on PR #3246
2026-09-02 08:05:18 +00:00
netcatty-bot
0556e493f8
fix: address Codex review on PR #3246
2026-09-02 07:39:15 +00:00
netcatty-bot
ae59c32888
fix: address Codex review on PR #3246
2026-09-02 06:58:09 +00:00
netcatty-bot
0a3d001f47
fix( #3244 ): automated AI fix
2026-09-02 06:38:18 +00:00
陈大猫
a1fce3ad7c
Merge pull request #3238 from ice616/feat/auto-launch-at-login
...
feat(settings): 支持开机自启动并最小化到系统托盘
2026-09-02 13:30:55 +08:00
陈大猫
7db5a21e3e
Merge pull request #3241 from binaricat/fix/sftp-sudo-i-drag-and-reconnect
...
fix: elevate /root drops after sudo -i
2026-09-02 13:12:59 +08:00
bincxz
10f1c02c5c
fix(sftp): use resolved identity username for /root elevation
...
Keychain identities can change after the host copied username. Use the
same resolveHostAuth username as sudo autofill so a stale host.username
does not skip or force elevation.
2026-09-02 11:58:09 +08:00
bincxz
ffb4d94aec
fix(sftp): use resolved identity passwords for /root drops
...
Keychain identities clear host.password. Reuse the same host-auth
resolution as sudo autofill so those saved identity passwords can
elevate a terminal drop into /root.
2026-09-02 11:53:00 +08:00
bincxz
b818db5f0c
fix(sftp): elevate /root drops and allow sudo reconnect fallback
...
After sudo -i, terminal drag into /root uses the host's saved password for
SFTP sudo. If no usable password is saved, the drop fails with guidance to
enable host Sudo elevation or return to the user directory.
Automatic SFTP reconnect still prefers the originating session, then falls
through to a fresh open so a dead channel after sudo -i can re-elevate.
2026-09-02 11:46:27 +08:00
陈大猫
ce1cdab559
Merge pull request #3239 from binaricat/codex/fix-sftp-drag-drop-routes
...
fix: make terminal drag uploads route-safe
2026-09-02 11:37:37 +08:00
bincxz
d79643d31c
fix(sftp): wait for origin focus before drop cancel or bind
...
Do not treat a lagging split-pane focus as the user leaving the drop
origin, and do not bind a Mosh/ET drop to the still-focused SSH session.
First-open follow treats a missing SSH id as bound to the live focused
terminal so a probe from A cannot apply after focus moves to B.
2026-09-02 11:17:22 +08:00
bincxz
4bb8a224b6
fix(sftp): reject follow probes after focused session changes
...
A follow sync that started probing session A must not navigate after
focus moves to session B. Capture the expected session before the
await and reuse the same guard already used for go-to-terminal-cwd.
2026-09-02 10:24:49 +08:00
netcatty-bot
8788803fb5
fix: address Codex review on PR #3239
2026-09-01 15:49:34 +00:00
bincxz
a7342ff7b8
fix(sftp): drop extra drag-upload routing machinery
...
Keep confirmed active-shell destinations, originating-session bind, sudo
fidelity, and the longer ZMODEM start wait. Remove the dormant queue,
routeSessionId identity, and source-regex contracts that only locked
that extra routing in.
2026-09-01 22:54:16 +08:00
bincxz
e5f2519433
fix(sftp): preserve queued upload routes
2026-09-01 22:33:00 +08:00
netcatty-bot
6e56fe5a8d
fix: address Codex review on PR #3239
2026-09-01 13:58:44 +00:00
netcatty-bot
2c35040e79
fix: address Codex review on PR #3239
2026-09-01 13:35:51 +00:00
netcatty-bot
55ceaa3290
fix: address Codex review on PR #3239
2026-09-01 13:13:23 +00:00
netcatty-bot
74abfe28ef
fix: address Codex review on PR #3239
2026-09-01 12:48:51 +00:00
axe006 and Claude Sonnet 5
d92406a9fd
fix(auto-launch): 补齐跨窗口同步、修正连续切换的陈旧响应竞态
...
针对 PR #3238 的 2 条 Codex review 意见修复:
- application/state/settingsIpcSync.ts / useSettingsState.ts:新增
STORAGE_KEY_AUTO_LAUNCH_ENABLED 的跨窗口广播处理。AppLockGate 会
在每个窗口(主窗口、托盘面板、终端弹窗等)都挂载一份
useSettingsState,即使开机自启动开关只在设置窗口的 UI 里展示和
交互。此前该键缺失在 settingsIpcSync.ts 的广播处理里,其他窗口
收到设置窗口推送的 notifySettingsChanged 广播后不会更新自己
内存里的 autoLaunchEnabled,与项目里几乎所有其它布尔类设置的
跨窗口同步约定不一致。新增结构断言测试验证键处理与端到端接线
都已补齐。
- application/state/systemSettingsEffects.ts:新增
autoLaunchWriteGenerationRef,推送 effect 的写入响应只在"没有
更新的写入请求已经发起"时才被采纳。此前连续快速切换开关会启动
多个并发的 bridge.setAutoLaunch 调用,每个回调只跟自己请求时的
闭包值比较,不知道是否已经有更晚的请求覆盖了它——一个陈旧请求
的延迟响应(比如报告了与自己请求不符的状态)可能在更新的请求
已经成功落地之后才到达,用过时的"纠正"把已经确认生效的最新
状态覆盖掉。新增单测覆盖乱序到达、连续三次切换等场景。
新增/更新单测覆盖上述两个场景,199 项相关测试通过。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-01 20:12:36 +08:00
bincxz
ccacb69bb9
fix(sftp): bind terminal drops to active route
2026-09-01 19:58:55 +08:00
axe006 and Claude Sonnet 5
7c419f41de
fix(auto-launch): 修正写入失败回滚、挂载竞态、隐藏启动焦点竞态
...
针对 PR #3238 的 3 条 Codex review 意见修复:
- electron/autoLaunch.cjs:setAutoLaunchEnabled 写入失败时,success
字段改为反映"回退读取本身是否成功"(即返回的 enabled 值是否可信),
而不是"写入操作是否成功",与 getAutoLaunchEnabled 已有的语义保持
一致。此前写入失败一律标记 success:false,导致渲染进程的推送
effect 直接丢弃回退读取到的真实状态(哪怕这次读取本身成功),
乐观开关状态停留在"已开启",即使操作系统层面从未真正创建
登录项。同时修正未支持平台分支的 success 语义(enabled:false
是确定事实,不是未知状态),与 getAutoLaunchEnabled 对齐。
- application/state/systemSettingsEffects.ts:新增
autoLaunchWriteStartedRef,挂载时的水合请求还在等待期间,如果
用户手动切换了开关(触发推送 effect 发起真实写入),水合的
陈旧响应落地时会跳过应用,不再覆盖用户刚做的选择——此前会用
这个陈旧值覆盖用户状态,并连锁触发推送 effect 把陈旧值写回
操作系统,实质上撤销用户刚成功完成的操作。
- electron/main.cjs:second-instance(含 open-terminal-path 无效
路径兜底分支)与 activate(macOS Dock 重新打开/点击)三处调用
createAndShowMainWindow() 后新增 focusMainWindow() 跟随调用。
consumeColdStartHiddenLaunch 是一次性锁存标志,谁先调用
createAndShowMainWindow() 谁就消费掉它——app.whenReady() 之后、
默认冷启动流程真正调用 createAndShowMainWindow() 之前还有若干
await(如应用锁设置加载),期间到达的真实第二实例或 Dock 重新
打开事件可能抢先消费隐藏标志,创建一个隐藏窗口且没有后续动作
让它显示,导致用户显式的重新打开操作看起来毫无反应。深链接和
打开终端路径的四处调用点已经在创建后无条件调用 focusMainWindow()
(因此不受影响),这次是给另外三处缺失该调用的地方补上。
新增/更新单测覆盖上述三个场景,194 项相关测试通过。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-01 19:49:27 +08:00
axe006 and Claude Sonnet 5
151364ce4b
fix(auto-launch): 修正 macOS 待审批状态误触发禁用与 Linux 文案
...
针对 PR #3238 的 2 条 Codex review 意见修复:
- electron/autoLaunch.cjs:resolveEffectiveLoginState 新增对 macOS
status: "requires-approval" 的处理。macOS 13+ 用 SMAppService
注册登录项后,用户在"系统设置"里批准前会处于待审批状态,此时
openAtLogin 报告 false,即使注册本身已经成功。此前代码把这个
false 当作真实状态返回给渲染进程,推送 effect 一看到与用户刚
请求的值不一致就会立刻发起相反的写入,在用户还没来得及批准前
就把这个待审批的登录项注销掉。现在待审批状态统一视为 enabled,
与用户请求保持一致,后续读取会在用户批准或系统丢弃待审批请求后
自然反映真实状态。
- i18n(en/zh-CN/zh-TW/ru):unsupportedDesc 文案此前只提到"开发
环境下不支持",但 isAutoLaunchSupported 在打包后的 Linux 构建
(AppImage/deb/rpm/pacman)上同样会返回 false,对 Linux 用户
显示这句话是错误的。改为同时覆盖平台不支持和开发环境两种情况
的中性表述。
新增单测覆盖 macOS 待审批场景,189 项相关测试通过。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-01 19:19:15 +08:00
axe006 and Claude Sonnet 5
e6df190b98
fix(auto-launch): 隐藏启动的崩溃保护与读取失败状态误覆盖问题
...
针对 PR #3238 的 2 条 Codex review 意见修复:
- electron/main.cjs:隐藏启动成功后不再传 windowShown: !startHidden,
改为固定传 true。processErrorGuards.cjs 的 hasShownMainWindow 是
一次性锁存标志,只要传 false 就会让运行时保护在整个进程生命周期
内永远处于"启动期严格模式"——任何非网络类未捕获异常都会被判定
为致命错误并可能杀掉进程。隐藏启动时 createWindow() 已经成功
创建窗口并加载完页面,是一次完整的启动,不是失败,理应解除
严格模式。新增结构断言测试覆盖成功/失败两条分支。
- electron/autoLaunch.cjs:getAutoLaunchEnabled 读取失败时新增
success: false 字段,区分"确认关闭"与"状态未知"。此前失败时
返回的 { enabled: false, supported: true } 与正常读到关闭状态
完全无法区分,渲染进程挂载时读取一次失败就会把本地缓存的
true 覆盖成 false,并触发相邻的推送 effect 把这个"假关闭"
写回操作系统,可能误删一个原本有效的登录项。
- application/state/systemSettingsEffects.ts:挂载水合与推送两个
effect 都改为通过新导出的纯函数 isAutoLaunchResultTrustworthy
判断,success:false 时保留原状态、不发起写入。该函数已用普通
单测覆盖(react-test-renderer 在当前环境未安装,无法测试完整
hook 生命周期,故将判断逻辑抽成不依赖 React 的纯函数单独验证)。
新增/更新单测覆盖上述场景,177 项相关测试通过。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-01 19:01:30 +08:00