axe006 and Claude Sonnet 5
ee47c9e15c
fix(auto-launch): 修复隐藏启动托盘保活、macOS 检测与跨平台支持
...
针对 PR #3238 的 4 条 Codex review 意见逐一修复:
- 隐藏启动时新增 pinTrayForHiddenLaunch/releaseHiddenLaunchTrayPin
机制:托盘在窗口首次显示前始终保持存在,不再被渲染进程挂载时
下发的 close-to-tray=false 提前销毁,避免开机自启+关闭托盘最小化
组合下出现无窗口无托盘的僵尸进程。窗口首次 show 后自动释放钉住,
交还给用户的正常 close-to-tray 偏好。
- wasLaunchedHidden 补充 macOS 检测:--hidden 启动参数只在 Windows
生效(openAsHidden 是 macOS 专属设置,不会体现在 argv 里),macOS
上改为读取 app.getLoginItemSettings().wasOpenedAsHidden。
- isAutoLaunchSupported 收紧为仅 macOS/Windows:Linux 打包(AppImage/
deb/rpm/pacman)没有对应的系统登录项钩子,setLoginItemSettings 在
该平台上静默失效,之前会误报"支持"。
- 新增 resolveEffectiveLoginState:Windows 上以
executableWillLaunchAtLogin(考虑任务管理器"启动应用"里被禁用的
情况)作为真实生效状态,而非只看 openAtLogin(仅反映注册表项
是否存在)。
新增/更新单测覆盖以上全部场景,共 149 项相关测试通过。
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com >
2026-09-01 18:35:21 +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
Netcatty-Bot and netcatty-bot
715487b2a0
fix(sftp): keep side panel directory and filter across terminal tab switches ( #3232 )
...
* fix(#3230 ): automated AI fix
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
* fix: address Codex review on PR #3232
---------
Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com >
2026-09-01 16:46:21 +08:00
陈大猫
8f34d2a31f
fix(ssh): identify concurrent terminal joins ( #3234 )
2026-09-01 14:37:28 +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
陈大猫
39d7c38a6a
fix(ai): preserve resumed terminal chats after workspace merge ( #3225 )
2026-08-31 15:03:01 +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
陈大猫
162b028d39
fix(cli): release consumed second-instance argument copies ( #3223 )
...
Release consumed second-instance argument buffers after deriving connection requests from an independent ordered copy. This closes the late password-retention finding on #3220 without changing connection or Explorer path routing.
Verified with regression tests, the full local suite, lint/build, two independent local reviews, and a real two-process Electron SSH connection that checks credential delivery and removal of both transport copies.
Related to #3218 and #3220 .
2026-08-31 12:47:34 +08:00
2d494e794e
fix(ssh): connect PuTTY-style CLI launches into the running instance ( #3220 )
...
* fix(#3218 ): automated AI fix
* fix: address Codex review on PR #3220
* fix(ssh): permanently cancel disabled scheme launch requests
* fix(ssh): release plaintext launch snapshot after handoff
---------
Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com >
Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com >
2026-08-31 12:06:15 +08:00
Netcatty-Bot
8f2c51cbcd
fix(tray): restore full panel height through the app lock wrapper ( #3209 )
...
Restore full height through the AppLockGate background wrapper, which otherwise lets the tray content collapse to about half of its window height. Preserve the existing lock-screen interaction restrictions.
Add real Electron regression coverage for repeated opening, session lists, lock/unlock, short windows, and Escape. Run it on macOS and Windows, including 100% and 200% device scale on Windows, and trigger it for the relevant renderer changes.
Fixes #3181
2026-08-31 11:44:08 +08:00
陈大猫
b71c75ed07
Merge pull request #3212 from binaricat/ai/issue-3211-33254121557
...
fix(sftp): add breadcrumb go-to-root button beside home icon
2026-08-31 10:36:18 +08:00
bincxz
03a8c4921b
fix(sftp): keep root navigation enabled for double-slash paths
2026-08-31 10:22:57 +08:00
陈大猫
8df0965066
Merge pull request #3215 from binaricat/codex/fix-3205-notes-comparison-markdown
...
fix(notes): render numeric comparisons without changing source
2026-08-31 10:14:15 +08:00
github-actions[bot] and github-actions[bot]
75eefa50c3
chore: update star history charts [skip ci] ( #3216 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-31 00:10:52 +00:00
陈大猫
e052f22148
Merge pull request #3208 from binaricat/ai/issue-3206-33245376344
...
fix(terminal-worker): keep one stray async error from killing every session
2026-08-30 23:08:13 +08:00
bincxz
46aa537c0e
test(notes): provide the browser image element constructor
2026-08-30 22:59:52 +08:00
bincxz
ccb63165c9
fix(terminal-worker): fail all errors before startup completes
2026-08-30 22:54:30 +08:00
bincxz
611f9cca3e
fix(notes): render numeric comparisons without changing source
2026-08-30 22:45:47 +08:00
netcatty-bot
3adf86bcd9
fix( #3211 ): automated AI fix
2026-08-29 13:24:14 +00:00
netcatty-bot
a20065a6a8
fix: address Codex review on PR #3208
2026-08-29 10:00:43 +00:00
netcatty-bot
76fa1c7a2d
fix( #3206 ): automated AI fix
2026-08-29 09:38: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
bincxz
13dedcf17a
fix(vault): reject Moba AES plaintext truncated at an interior NUL
...
A wrong master password can decrypt to a NUL mid-buffer and leave a short
printable UTF-8 prefix. Treat only a trailing NUL pad as a C string so
vectors like wrong25 no longer save garbage host passwords.
2026-08-29 15:28:44 +08:00
bincxz
4d685557b1
fix(vault): reject wrong MobaXterm master passwords
...
AES-CFB has no authentication, so a mistyped master password can decrypt
to printable Latin-1 junk that was previously saved as a host password.
Require valid UTF-8 plaintext, fail closed if any ciphertext does not
decrypt, and keep leading or trailing whitespace in the master password.
2026-08-29 15:22:14 +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
陈大猫
5b0f949101
Merge pull request #3204 from binaricat/fix/3061-autocomplete-popup-follow-wrap
...
fix(terminal): keep autocomplete popup on the wrapped command start
2026-08-29 14:51:11 +08:00
陈大猫
9de90a6a02
Merge pull request #3202 from binaricat/fix/2954-sftp-replace-preserve-mode
...
fix(sftp): restore remote mode after replace upload
2026-08-29 14:48:52 +08:00
陈大猫
8ce19700fa
Merge pull request #3200 from binaricat/fix/2629-strip-last-connected-from-sync
...
fix(sync): stop SSH connects from dirtying WebDAV auto-sync
2026-08-29 14:48:46 +08:00
netcatty-bot
ae2014ddf5
fix: address Codex review on PR #3203
2026-08-29 06:45:15 +00:00
bincxz
be63f6de88
fix: address Codex review on PR #3204
2026-08-29 14:39:21 +08:00
bincxz
23d66e5d43
fix: address Codex review on PR #3200
...
Sanitize lastConnectedAt in convergent equality, change summaries, and
v1-to-v2 conversion so legacy telemetry cannot block migration or leak
into CRDT state.
2026-08-29 14:38:01 +08:00
bincxz
35d0b16e21
fix: address Codex review on PR #3202
...
Bound the post-commit remote chmod with the same best-effort timeout
used for destination mtime stamps. A stalled chmod after promotion
now warns and lets completion/cleanup continue instead of pinning
the transfer, SFTP lease, and admission slot.
2026-08-29 14:35:20 +08:00
bincxz
cf84e61451
fix(terminal): keep autocomplete popup on the wrapped command start
...
Fixes #3061
2026-08-29 14:21:46 +08: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
bincxz
8ecced6d32
fix: address Codex review on PR #3203
2026-08-29 14:18:09 +08:00
bincxz
7e51b94686
fix: address Codex review on PR #3202
...
Drop the extra pre-transaction mode stat so cancel can settle and
existing call-count tests keep their first stat as the planner/final
size check. Restore replace mode from the transactional upload plan
snapshot instead, and hang the in-place cancel regression on the
post-OPEN size verification.
2026-08-29 14:15:53 +08:00
netcatty-bot
a5e61ca1d3
fix: address Codex review on PR #3200
2026-08-29 06:15:02 +00:00
陈大猫
467e548ad8
Merge pull request #3201 from binaricat/fix/1193-disable-live-preview-on-network-devices
...
fix(terminal): skip autocomplete live preview on network devices
2026-08-29 14:10:07 +08:00
bincxz
c3bc173aa5
fix(vault): wait for stored-key decrypt before reconnect auth
...
Fixes #2295
2026-08-29 14:04:39 +08:00
bincxz
cc2bdb5b7e
fix(sftp): restore remote mode after replace upload
...
Replace uploads recreate the remote file via fastPut / pipelined WRITE
with umask defaults, which dropped executable and other mode bits.
Capture the existing remote mode before the transfer and chmod it back
on the published final path after success.
Fixes #2954
2026-08-29 14:00:04 +08:00
bincxz
c165fb4c71
fix(terminal): skip autocomplete live preview on network devices
...
Vendor bastion/network-device CLIs disconnect when live-preview injects
Ctrl-U or backspaces while typing cd/cat. Keep the popup, but treat
network-device sessions as preview-off until the user accepts.
Fixes #1193
2026-08-29 13:58:33 +08: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
陈大猫
1aba3d2851
Merge pull request #3176 from binaricat/fix/3171-temp-dir-identity-changed
...
fix(sftp): recover when temp directory inode is replaced
2026-08-29 12:22:07 +08:00
陈大猫
7215e9db98
Merge pull request #3175 from binaricat/fix/3167-notes-unrenderable-markdown
...
fix(notes): keep unrenderable markdown visible in the notes editor
2026-08-29 12:22:04 +08:00
陈大猫
970eb7e9de
Merge pull request #3196 from binaricat/ai/issue-3195-33179972870
...
fix(settings): render large font dropdowns incrementally to stop UI freeze
2026-08-29 12:22:00 +08:00
陈大猫
82f99c71f8
Merge pull request #3193 from binaricat/ai/issue-3187-33160401475
...
fix(ssh): self-terminate abandoned remote probes to cut CPU on slow hosts
2026-08-29 12:21:55 +08:00
陈大猫
2fb69eb562
Merge pull request #3191 from binaricat/ai/issue-3184-33160410254
...
fix(terminal): clear Windows command hints correctly when the host OS flag is mislabeled
2026-08-29 12:21:51 +08:00
bincxz
b781a474ca
fix: address Codex review on PR #3193
2026-08-29 11:40:51 +08:00
bincxz
b3a7dd4882
fix: address Codex review on PR #3175
2026-08-29 11:37:12 +08:00