bincxz
de82c0bea3
fix(ai): serialize forwarding rule cleanup
2026-07-15 17:00:06 +08:00
bincxz
500f4cea2c
fix(ai): keep forwarding rules safe on stop failure
2026-07-15 16:48:46 +08:00
bincxz
5f3569778a
fix(ai): preserve supported group and jump settings
2026-07-15 16:48:46 +08:00
bincxz
46ac20f9a5
fix(ai): close final vault review gaps
2026-07-15 16:48:46 +08:00
bincxz
96f5f56035
fix(ai): validate group jump host renames
2026-07-15 16:48:46 +08:00
bincxz
34f63b7103
fix(ai): protect empty group jump defaults
2026-07-15 16:48:46 +08:00
bincxz
1de79b08d2
fix(ai): preserve host jump relationships
2026-07-15 16:48:46 +08:00
bincxz
9c69a3276d
fix(ai): validate inherited jump relationships
2026-07-15 16:48:05 +08:00
bincxz
a16518b587
fix(ai): resolve destination connection defaults
2026-07-15 16:48:05 +08:00
bincxz
a6fb423002
fix(ai): protect referenced jump hosts
2026-07-15 16:48:05 +08:00
bincxz
a11b02e4a2
fix(ai): validate advanced connection transitions
2026-07-15 16:48:05 +08:00
bincxz
5644e2e391
fix(ai): preserve serial backspace settings
2026-07-15 16:48:05 +08:00
bincxz
09d8e17c52
fix(portforward): preserve background cleanup
2026-07-15 16:48:05 +08:00
bincxz
95319be115
fix(ai): validate inherited forwarding protocol
2026-07-15 16:48:05 +08:00
bincxz
b3fe14d9d5
fix(ai): reject unsupported forwarding hosts
2026-07-15 16:48:05 +08:00
bincxz
b1ae300878
fix(ai): persist stopped forwarding status
2026-07-15 16:48:05 +08:00
bincxz
0d35d67fbb
fix(ai): stop all tunnels before rule changes
2026-07-15 16:48:05 +08:00
bincxz
c68296ce56
fix(ai): reject stale serial forwarding rules
2026-07-15 16:48:05 +08:00
bincxz
09f18a4a0e
fix(ai): close forwarding review gaps
2026-07-15 16:48:05 +08:00
bincxz
7aa57fd190
fix(ai): harden forwarding and serial updates
2026-07-15 16:48:05 +08:00
bincxz
1728b208b2
fix(ai): close advanced host review gaps
2026-07-15 16:48:05 +08:00
bincxz
857e9b40e2
fix(ai): harden group management boundaries
2026-07-15 16:48:05 +08:00
bincxz
fb7e7e66d1
fix(ai): preserve vault group semantics
2026-07-15 16:48:05 +08:00
bincxz
e8c1c337b9
fix(ai): validate group mutations
2026-07-15 16:48:04 +08:00
bincxz
13e7a27938
test(ai): harden vault management rules
2026-07-15 16:48:04 +08:00
bincxz
770926cdfa
feat(ai): add vault management capabilities
2026-07-15 16:48:04 +08:00
陈大猫
59a28c3b7e
Merge pull request #2216 from binaricat/feat/scp-mode-remote-file-browser
...
feat(sftp): SCP-mode remote file browsing with Auto fallback
2026-07-15 16:13:20 +08:00
bincxz
cfa6780fd1
fix(sftp): bound SCP capability probes with a timeout
...
Home/scp probes during Auto fallback or forced SCP can hang forever if
the remote accepts exec but never closes. Abort after 15s so the file
panel cannot stay stuck connecting.
2026-07-15 16:04:48 +08:00
bincxz
331776812d
fix(sftp): honor session file protocol; stop upload reader on ACK fail
...
Store host sftpFileProtocol on SSH sessions so openSftpForSession used by
Catty/MCP/clipboard respects SFTP-only or forced SCP without payload.
Destroy the local read stream when the peer ACK loses the upload race.
2026-07-15 15:52:48 +08:00
bincxz
e627f04a9e
fix(sftp): detect GB18030 when decoding SCP home path
...
Auto/utf-8 first-open used lossy UTF-8 on non-UTF-8 $HOME bytes, so
Chinese homes opened as mojibake and failed to list. Strict-decode with
gb18030 fallback and promote session encoding for subsequent shell ops.
2026-07-15 15:44:35 +08:00
bincxz
a54f0ce5c9
fix(sftp): swallow orphaned SCP ACK rejections on write failure
...
When writeAll fails after waitForAck is armed, stream close would reject
the ACK promise unhandled. Centralize write+ACK in writeAndWaitAck and
guard Promise.all losers in uploadFile.
2026-07-15 15:37:41 +08:00
陈大猫
59b54367bf
Merge pull request #2215 from binaricat/codex/fix-2172-serial-backspace
...
fix: support Ctrl+H Backspace in serial sessions
2026-07-15 15:37:09 +08:00
bincxz
5a97403b1d
fix(types): allow encoding argument on getSftpHomeDir bridge
...
Match the preload/homeDir IPC surface used for SCP/GB18030 hosts.
2026-07-15 15:29:21 +08:00
bincxz
535c21757c
fix(sftp): handle early download write errors; preserve mode on watcher sync
...
Listen for local write-stream errors before opening the SCP channel, pass
encoding/signal into download metadata stat, and restore remote mode after
external-editor SCP uploads.
2026-07-15 15:24:32 +08:00
bincxz
1dcb843262
fix serial backspace group inheritance
2026-07-15 15:22:21 +08:00
bincxz
331ee466ad
fix(sftp): pass host encoding into homeDir and external-editor SCP sync
...
Resolve session/host filename encoding for watcher uploads and initial home
directory probe so GB18030 paths work before the first listing.
2026-07-15 15:15:45 +08:00
bincxz
ea08b7c990
fix(sftp): SCP external-editor sync, home encoding state, ls symlink parse
...
Route file-watcher uploads through the SCP backend, decode home with session
encoding state, and strip ls arrow targets only for symlink rows.
2026-07-15 15:07:33 +08:00
bincxz
da1d70dfb4
fix(sftp): harden homeDir encoding, empty-list fallback, directory replace guard
...
Use marked base64 for HOME decoding, fall back when listing basenames are empty,
and reject SCP file uploads that would replace a remote directory.
2026-07-15 15:00:17 +08:00
bincxz
4922959cd7
fix(sftp): reuse auto list result; reject scp+sudo host config
...
Avoid double remote listings under auto encoding, and fail open when forced
SCP is combined with Sudo Mode on persisted host data.
2026-07-15 14:49:03 +08:00
bincxz
cd5922d7c2
fix(sftp): decode GB18030 paths with openssl base64 fallback
...
Minimal NAS hosts may only provide openssl; match listing's base64 fallback
when expanding encoded remote path bytes for shell/SCP commands.
2026-07-15 14:42:22 +08:00
bincxz
a7491245a4
fix(ui): include file protocol in SFTP panel endpoint identity
...
Treat sftpFileProtocol changes as a different endpoint so toggling Auto/SFTP/SCP
reconnects the panel instead of closing it.
2026-07-15 14:36:46 +08:00
bincxz
531cbf158c
fix(sftp): untrack finished SCP streams; preserve gb18030 on probe failure
...
Delete streams from the active set when downloads finish, keep resolved
GB18030 after failed auto probes, and run encoding probes via tracked exec.
2026-07-15 14:31:17 +08:00
bincxz
7e2899bba5
fix(sftp): track SCP shell exec streams for abort-on-close
...
Register list/stat/mkdir exec channels on the client so closeSftp cancels
hung shell ops on shared sessions without ending the terminal SSH socket.
2026-07-15 14:25:59 +08:00
bincxz
0d5c5e815f
fix(sftp): abort in-flight SCP streams on closeSftp for shared sessions
...
Track active SCP exec streams per client and close them when the handle is
released, so agent Stop/timeout cancels transfers without killing the terminal SSH.
2026-07-15 14:19:41 +08:00
bincxz
87333ac85a
fix(sftp): unbreak structural upload assertion; keep gb18030 once detected
...
Relax the transfer options regex and avoid demoting a resolved GB18030 session
when browsing ASCII-only directories under auto encoding.
2026-07-15 14:11:33 +08:00
bincxz
bd53a67cc1
fix(sftp): plumb encoding through remaining SCP transfer paths
...
Pass session filename encoding into progress uploads, AI download/upload,
ensureRemoteDir mkdir, and follow GB18030 directory symlinks for navigation.
2026-07-15 14:08:02 +08:00
bincxz
5074e255b5
fix saved serial backspace inheritance
2026-07-15 14:05:08 +08:00
bincxz
4055a27b24
fix(sftp): auto-detect SCP list encoding; allow backslash basenames
...
Detect GB18030 basenames under auto encoding for SCP listings, pass encoding
into source stat for transfers, and allow POSIX backslash in SCP basenames.
2026-07-15 14:02:18 +08:00
bincxz
0820833414
fix(sftp): race-safe SCP upload ACK, r2r paths, encoded control names
...
Await stream and final ACK together, keep SCP remote-to-remote paths as
strings, decode source control-line names with session encoding, and cancel
SCP homeDir via abort signal.
2026-07-15 13:55:24 +08:00
bincxz
b8144d1d04
fix(sftp): harden SCP download errors, wire size/encoding, probe scp binary
...
Reject failed local writers during download, always use fresh local file size
for SCP headers, pass encoding into parent mkdir, and require `scp` on the
remote before advertising SCP-mode connectivity.
2026-07-15 13:46:14 +08:00