bincxz
2d9890a92e
fix: disarm global broadcast when orphan group disappears
2026-09-05 12:53:39 +08:00
Meow-Emperor
1ef7b026a6
Enable global broadcast for orphan terminal tabs
...
Allow global broadcast hotkeys for visible orphan sessions and centralize target resolution with coverage for workspace, global, and direct-target modes.
2026-09-05 01:06:36 +08:00
Meow-Emperor
f9eded887f
Fix global broadcast for orphan sessions
...
Keep stored boolean updates pure and propagate global broadcast state through terminal panes so orphan sessions can toggle and receive broadcasts correctly.
2026-09-05 00:11:52 +08:00
Meow-Emperor
701e35dac0
feat: 支持多标签直接启用广播模式
...
- 新增全局广播状态管理(globalBroadcastEnabled)
- 修改广播按钮显示逻辑:工作区内或孤立标签数 ≥2 时显示
- 修改广播输入处理:支持工作区广播和全局广播两种模式
- 工作区广播优先级高于全局广播,两种模式互不干扰
- 孤立标签(未加入工作区)可独立启用全局广播功能
2026-09-04 21:08:04 +08:00
JasonWen
5c5fa4f27e
fix(ai): make the command blocklist shell-aware
...
Select default command-safety rules from the live session shell so legal
PowerShell subexpressions are allowed and PowerShell-native dangerous
commands are blocked. Untouched pre-shell-aware lists gain the new
defaults on read.
Closes #3256
2026-09-03 15:21:45 +08:00
陈大猫
c9b40d98c2
Merge pull request #3245 from binaricat/feat/3240-sftp-ux-and-folder-scan
...
feat(sftp): bookmarks, compact list, dual-pane entry, and faster folder scans
2026-09-03 14:06:23 +08:00
bincxz
82e62c8c1d
fix(sftp): preserve bookmark scope in actions
2026-09-03 13:42:51 +08:00
bincxz
48780fcd09
fix(sftp): route bookmark changes by scope
2026-09-03 13:36:14 +08:00
陈大猫
f3f89edad5
Merge pull request #3251 from binaricat/ai/issue-3249-33607924553
...
fix(ai): run Responses API turns stateless to stop rs_ item replay errors
2026-09-03 11:55:10 +08:00
陈大猫
5a05da0b4a
Merge pull request #3260 from binaricat/ai/issue-3259-33708519760
...
fix(vault): sync managed ssh_config with latest host edits
2026-09-03 11:45:52 +08:00
bincxz
969da6aa88
fix(sftp): apply saved folder upload concurrency
2026-09-03 11:38:38 +08:00
bincxz
4fc97ce96e
fix(sftp): honor concurrency for ordinary uploads
2026-09-03 11:29:18 +08:00
bincxz
e7b59ad768
fix(ai): trim stored history at tool-safe boundaries
2026-09-03 11:20:12 +08:00
bincxz
b285200798
fix(ai): keep compaction boundaries aligned after trimming
2026-09-03 11:15:28 +08:00
bincxz
02f5729ab7
fix(ai): discard compacted replay ciphertext
2026-09-03 11:11:14 +08:00
陈大猫
74c1cd063b
Merge pull request #3250 from binaricat/ai/issue-3248-33607677408
...
fix(workspace): auto-name merged tab workspaces from both tab labels
2026-09-03 11:08:35 +08:00
bincxz
b2c72d607b
fix(sftp): add accessible bookmark reordering
2026-09-03 10:58:14 +08:00
netcatty-bot
b83f3ee17a
fix( #3259 ): automated AI fix
2026-09-03 02:56:54 +00:00
bincxz
c6c769acc3
perf(ai): prune continuations in one pass
2026-09-03 10:54:19 +08:00
bincxz
47bef3c9d9
fix(vault): expose host operating system in editor
2026-09-03 10:51:45 +08:00
bincxz
2faa30d79b
fix(sftp): apply shared transfer limit everywhere
2026-09-03 10:50:48 +08:00
bincxz
d19ddce4ff
fix(ai): preserve newest continuation within long chats
2026-09-03 10:49:19 +08:00
bincxz
ae26219fdd
fix(sftp): align transfer concurrency defaults
2026-09-03 10:46:58 +08:00
bincxz
2ff47eafce
fix(ai): prioritize active chat continuation
2026-09-03 10:40:49 +08:00
bincxz
7440e66ea8
fix(ai): retain newest replay data when pruning chats
2026-09-03 10:37:21 +08:00
bincxz
e84ef25720
fix(sftp): complete issue 3240 workflows
2026-09-03 10:35:09 +08:00
bincxz
2189f6c820
test(workspace): cover merged title boundaries
2026-09-03 10:31:47 +08:00
bincxz
7e3960f561
fix(ai): preserve newest chat under tight quotas
2026-09-03 10:29:06 +08:00
bincxz
acb29e0791
fix(ai): make session quota retries converge
2026-09-03 10:26:43 +08:00
bincxz
d350f2746a
test(workspace): cover merged title lifecycle
2026-09-03 10:24:41 +08:00
bincxz
89dab1394d
fix(ai): keep stateless Responses replay data intact
2026-09-03 10:22:29 +08:00
netcatty-bot
3936d8b7f3
fix: address Codex review on PR #3251
2026-09-02 12:07:00 +00:00
netcatty-bot
f66c098c9b
fix: address Codex review on PR #3250
2026-09-02 09:59:49 +00:00
netcatty-bot
47667e80f5
fix: address Codex review on PR #3250
2026-09-02 09:36:22 +00:00
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
bincxz
25b79a6947
feat(sftp): tighten bookmarks, compact list, dual-pane entry, and folder scans
...
Address the SFTP UX list in #3240 : wider bookmark management with
confirm/reorder/rename, a compact file-list density, a host-list shortcut
into the existing local/remote dual pane, faster local folder discovery,
and higher small-file upload concurrency.
Tree view already supports double-click to enter directories, so that
item is left as-is.
2026-09-02 14:26:14 +08: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
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
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