1d10d1679e
fix(terminal): opt-in broadcast without password protection during interactive prompts ( #3491 )
...
* fix(#3488 ): automated AI fix
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* fix: address Codex review on PR #3491
* test: verify broadcast password prompts on Windows desktop
* test: run desktop SSH check only in Windows job
* fix: preserve sensitive peer input across compose wake
* fix: retain compose history when sensitive peer receives nothing
* fix: protect compose history during sensitive fallback writes
---------
Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com >
Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com >
2026-09-30 00:38:50 +08:00
cb06857480
feat(terminal): confirm before pasting multiple lines ( #3398 ) ( #3400 )
...
* fix(#3398 ): automated AI fix
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix: address Codex review on PR #3400
* fix(terminal): protect popup and sanitized multiline pastes
* fix(terminal): preserve input state across paste confirmation
* fix(terminal): retain serial character-mode paste echo
* test(terminal): cover paced input write options
* fix(terminal): retain telnet echo for paced pastes
* test(terminal): scope serial buffer assertion to serial sessions
* fix(terminal): align runtime write options with bridge contract
* fix(terminal): preserve bookkeeping for all paced pastes
* fix(terminal): record confirmed paste lines in order
* fix: record paced paste commands after transport writes
* fix: omit paste receipts for filtered input
* fix: cancel superseded paste batches across input paths
* fix: classify each acknowledged paste line before recording
* fix: stop paced paste when editing buffered serial input
* fix: preserve recording pause boundaries and serial edit cancellation
* fix: treat paced terminal pastes as user input
* fix: preserve paste drafts until write and snippet broadcast origin
* fix: retain filtered paste drafts and invalidate urgent input ownership
* fix: broadcast paced user paste only on guarded line receipts
---------
Co-authored-by: netcatty-bot <308658023+netcatty-bot@users.noreply.github.com >
Co-authored-by: bincxz <16399091+binaricat@users.noreply.github.com >
2026-09-18 15:19:34 +08:00
Netcatty-Bot
6bc65a43de
fix(terminal): forward Ctrl+V for local clipboard image paste ( #2760 )
...
Local terminal paste with an image-only clipboard now forwards raw Ctrl+V into the PTY so nested TUIs (e.g. Claude Code) can read the OS clipboard. Text and file-path paste, and remote sessions, are unchanged.
Fixes #2758
2026-08-06 14:13:04 +08:00
Yohann and yangheng
83e0e98795
feat(terminal): auto-upload clipboard images on paste (remote sessions, opt-in setting) ( #2676 )
...
* feat(terminal): 粘贴时自动上传剪贴板图片(远程会话,设置项控制)
- 新增设置项 autoUploadClipboardImageOnPaste(默认关闭):剪贴板含图片时,远程 SSH 会话中粘贴自动通过 SFTP 上传图片到远端 .netcatty-paste-images/ 并输入远端路径,无图则回退普通文本粘贴
- terminalClipboardPaste.ts:图片检查优先于本地文件/文本粘贴;上传失败上报错误提示,不上传时静默回退
- 统一四路粘贴入口:右键/中键(onPaste)、DOM paste 事件(useTerminalFilePaste)、绑定快捷键(createXTermRuntime case "paste")
- TerminalBehaviorSettings.tsx 新增设置开关,i18n 补齐 en/ru/zh-CN/zh-TW
- syncPayload.ts 设置同步白名单加入新字段
- 测试:terminalClipboardPaste.test.ts 新增 4 个用例(上传/回退/失败上报/本地不受影响)
Author: yangheng
Model: 42865985-ead4-417f-88a9-12012a3495fe/deepseek-v4-flash
* fix(terminal): 剪贴板图片上传异常时上报错误而非静默回退
- clipboardImagePaste.ts:readClipboardImage 抛错视为 no-image(读图失败与空剪贴板无法区分,可安全回退普通粘贴)
- terminalClipboardPaste.ts:确认剪贴板有图后上传流程抛异常(如 SFTP 无法打开)→ 上报 upload-failed 错误并停止,与右键菜单路径一致,不再静默粘贴无关剪贴板内容
- 测试:新增「上传抛异常 → 上报 upload-failed 且不粘贴」「读图失败 → no-image」2 个用例,18/18 通过
Author: yangheng
Model: 42865985-ead4-417f-88a9-12012a3495fe/deepseek-v4-flash
---------
Co-authored-by: yangheng <492238647@qq.com >
2026-08-05 10:29:37 +08:00
陈大猫 and ryan-wong-coder
67f8108713
feat(plugins): add reviewed privileged terminal data pipeline ( #2402 )
...
* feat(plugins): add privileged terminal data pipeline
* fix(plugins): harden terminal interceptor lifecycle
* fix(plugins): close terminal interceptor lifecycle gaps
* fix(plugins): preserve terminal interceptor state transitions
* fix(plugin): close terminal pipeline lifecycle gaps
* fix(plugin): harden terminal interceptor startup
* fix(plugin): isolate terminal output route attempts
* fix(plugin): isolate reused terminal sessions
* fix(plugin): harden terminal interceptor boundaries
* fix(plugin): harden terminal replay metadata
* fix(plugin): preserve terminal replay provenance
* fix(plugin): close terminal pipeline lifecycle races
* fix(plugin): harden terminal route handoff
* fix(plugin): contain terminal handoff failures
* fix(plugin): route terminal attachment through RPC
* fix(plugin): validate terminal attachment RPC
* fix(plugin): close unexpected runtime ports
* fix(plugin): canonicalize terminal data frames
* fix(plugin): close terminal pipeline lifecycle gaps
* fix(plugin): close terminal interceptor review gaps
* fix(plugin): harden terminal interceptor protocol handling
* fix(plugin): preserve terminal flow compatibility
* fix(plugin): preserve terminal protocol accounting
* fix(plugin): bound terminal interceptor lifecycle
* fix(plugin): close terminal interceptor review gaps
---------
Co-authored-by: ryan-wong-coder <wangsiyuan19990317@gmail.com >
2026-07-23 09:42:47 +08:00
陈大猫
d8ac9b081b
Add explicit clipboard image upload action
...
Closes #1536
2026-06-22 18:57:47 +08:00
陈大猫
08ff49d3f5
Avoid broadcasting remote image paste paths ( #1410 )
2026-06-11 17:10:13 +08:00
陈大猫
74d41b43b6
[codex] Support remote image clipboard paste ( #1408 )
...
* Support remote image clipboard paste
* Address remote image paste review findings
2026-06-11 17:01:36 +08:00
陈奇
61e8de4270
fix: synchronous preventDefault in paste handler + text paste fallback
...
- event.preventDefault() must be called synchronously before the
async IPC call, otherwise the browser processes the default paste
action before we can intercept it
- When clipboard has no files (or on error), fall back to text paste
via pasteTextIntoTerminal since the default action was already
prevented
2026-06-09 12:13:59 +00:00
陈大猫
27dce4e427
feat: local terminal paste file inserts file path ( #1345 ) ( #1346 )
...
When pasting (Ctrl+V / right-click paste) in a local terminal,
if the clipboard contains files, insert their paths instead of
doing nothing.
- New hook useTerminalFilePaste: capture-phase paste listener
on terminal container, reads clipboard files via Electron bridge,
formats paths (spaces quoted, deduped), writes to session
- Updated useTerminalContextActions: right-click paste checks
clipboard files first, falls back to text paste
- New terminalHelpers.extractRootPathsFromClipboardFiles
- Tests: 9 unit tests for path extraction logic
- Verified via headless Chromium integration test (15 tests)
- Build: npm run build ✅ , npm test ✅ (1899 pass)
2026-06-09 20:11:12 +08:00