netcatty-bot
a352ca3836
fix: address Codex review on PR #3250
2026-09-02 09:02:06 +00:00
netcatty-bot
1f52f6f399
fix( #3248 ): automated AI fix
2026-09-02 08:30:19 +00:00
陈大猫
a1fce3ad7c
Merge pull request #3238 from ice616/feat/auto-launch-at-login
...
feat(settings): 支持开机自启动并最小化到系统托盘
2026-09-02 13:30:55 +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
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
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
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
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
axe006
0068180204
Merge branch 'main' of https://github.com/binaricat/Netcatty into feat/auto-launch-at-login
2026-09-01 18:24:53 +08:00
axe006 and Claude Sonnet 5
513b2d66af
feat(settings): 支持开机自启动并最小化到系统托盘
...
在「设置 → 系统 → 网络代理」卡片上方新增开机自启动开关,开启后
系统启动时自动运行 Netcatty,并隐藏到系统托盘(不占用任务栏)。
- 新增 electron/autoLaunch.cjs 封装 app.setLoginItemSettings,
通过 --hidden 启动参数标记本次是登录项冷启动;开发环境
(process.defaultApp)下判定为不支持,避免误操作系统登录项。
- 主窗口首次冷启动读取该标志后跳过 win.show(),并在托管桥注册
完成后强制创建托盘图标(不依赖用户是否开启「关闭时最小化到
托盘」),确保隐藏窗口始终可被找到;后续任何窗口复用/深链接/
托盘点击路径不受影响。
- 开关真实状态以主进程 app.getLoginItemSettings() 为准,设置页
挂载时向主进程查询校准,而非只信任本地缓存。
- 新增单测覆盖 autoLaunch 纯逻辑及 startHidden 透传/托盘保底
行为,过程中发现并修复一处因未走依赖注入直接 require 模块
导致的隐患。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-01 18:16:42 +08:00
陈大猫 and netcatty-bot
fb034f08bb
fix(sftp): keep bulk queues and large-file resume responsive ( #3226 )
...
* fix(sftp): keep bulk queues and large-file resume responsive
* fix(sftp): preserve resume compatibility and timeout cleanup
* test(sftp): verify fixture cleanup in fresh environments
* fix: address Codex review on PR #3226
* fix(sftp): remove blocking periodic history persistence
---------
Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com >
2026-08-31 19:27:41 +08:00
Netcatty-Bot
e8c291373b
fix(terminal): add duplicate-session option that opens a fresh connection ( #3222 )
...
Add Duplicate Session as an explicit fresh-login alternative to Copy Tab. Keep authenticated transport reuse for Copy Tab and double-clicks, preserve fresh intent across session restoration, and avoid sending a previous target's directory command to a fresh bastion login.
Verified with focused and full tests, lint/build, independent local reviews, and real Electron menu operations against a local SSH server.
Fixes #3221 .
2026-08-31 14:28:16 +08:00
netcatty-bot
3adf86bcd9
fix( #3211 ): automated AI fix
2026-08-29 13:24:14 +00:00
陈大猫
b11dc42a10
Merge pull request #3045 from binaricat/feat/2988-mobaconf-password-import
...
feat(vault): import saved MobaXterm passwords from .mobaconf
2026-08-29 15:44:29 +08:00
陈大猫
f11378afbc
Merge pull request #3203 from binaricat/fix/2295-stored-key-reconnect-decrypt-race
...
fix(vault): wait for stored-key decrypt before reconnect auth
2026-08-29 14:55:49 +08:00
netcatty-bot
ae2014ddf5
fix: address Codex review on PR #3203
2026-08-29 06:45:15 +00:00
bincxz
5d2e15eab6
fix: address Codex review on PR #3200
...
Normalize lastConnectedAt on every merge side and restore this device's
Recently Connected timestamps when applying a sanitized cloud payload.
2026-08-29 14:19:24 +08:00
netcatty-bot
a5e61ca1d3
fix: address Codex review on PR #3200
2026-08-29 06:15:02 +00:00
bincxz
0c9a22bed5
fix(sync): stop SSH connects from dirtying WebDAV auto-sync
...
Strip lastConnectedAt from cloud sync hosts so Recently Connected updates
do not change the auto-sync hash. Local backups still keep the timestamp.
2026-08-29 13:52:17 +08:00
netcatty-bot
06c954f6f3
fix: address Codex review on PR #3192
2026-08-28 22:55:53 +00:00
netcatty-bot
acc06fbfd1
fix: address Codex review on PR #3192
2026-08-28 22:38:23 +00:00
netcatty-bot
9381642ac1
fix: address Codex review on PR #3192
2026-08-28 22:18:05 +00:00
netcatty-bot
7c9cbe2d41
fix: address Codex review on PR #3192
2026-08-28 20:51:28 +00:00
netcatty-bot
70a95a2f22
fix: address Codex review on PR #3192
2026-08-28 16:50:37 +00:00
bincxz
dc2242f453
fix(port-forwarding): refresh bulk stop availability
2026-08-28 13:08:01 +08:00
bincxz
9029144e83
fix(port-forwarding): harden bulk stop cleanup
2026-08-28 12:21:42 +08:00
bincxz
8a5c423b81
fix(port-forwarding): localize bulk start missing-host error
2026-08-27 21:34:04 +08:00
bincxz
0f3ca3c4dc
fix(port-forwarding): revalidate bulk start and stop error runtimes
2026-08-27 21:17:12 +08:00
bincxz
1f5816a0e1
feat(port-forwarding): add start all and stop all actions
2026-08-27 21:02:37 +08:00
陈大猫
eaacd01055
Merge pull request #3120 from Sammsai/main
...
feat(notes): add source mode, formulas, outline, and export tools
2026-08-24 22:51:55 +08:00
bincxz
0fd7bed991
feat(notes): polish editor workflow and presentation
2026-08-24 18:32:56 +08:00
bincxz
af1b624747
fix(ai): restore New Chat in persisted workspaces
2026-08-24 15:22:57 +08:00
bincxz
88387b9c2b
fix: respect close-tab binding in editor
2026-08-23 22:56:36 +08:00
bincxz
4ff20453f2
fix: preserve Cmd+W focus and settings behavior
2026-08-23 22:51:42 +08:00
bincxz
13b1bf506e
fix: honor disabled close-tab shortcut on macOS
2026-08-23 22:42:29 +08:00
bincxz
b11eaa172f
fix: disable reconnect menus during preparation
2026-08-23 00:52:39 +08:00
陈大猫
e4c1ab2a8f
Merge pull request #3094 from binaricat/codex/issue-3092-sftp-folder-conflict
...
fix(sftp): make folder conflict merge the safe default
2026-08-22 15:45:15 +08:00
Sammsai
acfc581719
1
2026-08-22 12:28:01 +08:00
bincxz
79aafcdb1a
feat(ai): make response wait configurable
2026-08-21 15:39:01 +08:00
Sammsai
3632b42e8e
修复界面无显示
2026-08-21 08:18:01 +08:00
bincxz
5245ebbaa0
fix(sftp): open filter with search shortcut
2026-08-20 16:08:41 +08:00
bincxz
e9f2a7c883
fix(sftp): align folder conflict actions
2026-08-20 16:07:32 +08:00
bincxz
0288d1610a
fix(ai): skip no-op AI config updates and simplify permission picker
...
Avoid rewriting thinking/provider maps when values are unchanged so
mounted AI panels do not re-render. Put permission title and short
description on one line and drop the Cursor CLI parenthetical.
2026-08-20 11:52:29 +08:00
bincxz
b7b35afa24
fix(ai): persist explicit Off and omit unset thinking options
...
Codex P2: missing agentThinkingMap was treated as Off, so GPT-5.1+
got reasoningEffort=none and Gemini 2.5 Flash got thinkingBudget=0
without a user choice. Store Off as an explicit value and leave an
absent preference unset so the provider default is used.
2026-08-19 23:34:28 +08:00
bincxz
4acf254f72
feat(ai): unify sidebar provider, model, and thinking pickers
...
Give Catty a two-column provider/model menu in the composer, add search
plus recent/pinned models, and move thinking effort onto its own chip
so Claude, Codex, Grok, and Catty share the same compact controls.
Closes #2137
Closes #2637
Closes #1884
2026-08-19 17:23:06 +08:00
bincxz
7b8c944510
feat(sftp): show owner column in the file list
...
Surface the remote file owner in the SFTP list and tree, using the
existing toggleable column menu. Parse the username from SFTP longname
or ls output, then fall back to uid when a name is unavailable.
Closes #3073
2026-08-19 14:39:17 +08:00