Commit Graph
1691 Commits
Author SHA1 Message Date
Kang 64d53a8076 style(saved-connections): implement expandable search functionality with keyboard navigation (#548)
- Added a new state for managing search expansion and a ref for the search input.
- Implemented focus and selection behavior for the search input when expanded.
- Enhanced keyboard navigation to handle Escape key for collapsing the search.
- Updated the search input to be read-only until focused, allowing for a cleaner UI.
- Introduced a clear search button that resets the filter text and collapses the search when clicked.
2026-09-05 01:44:52 +08:00
Kang 719ce3802b Merge pull request #581 from victorwon2001/fix/issue-468
fix(ssh): 避免初始集成注入吞掉用户输出
2026-09-05 01:05:37 +08:00
Kang 6089f09cce fix(ssh): cancel pending integration before capture exec 2026-09-05 00:57:58 +08:00
Kang 92f9af4677 feat(header): add preventWindowControlMouseFocus function and integrate it into window control buttons (#551)
- Introduced preventWindowControlMouseFocus to prevent focus shift on mouse down for window control buttons.
- Updated Header component to use this function on minimize, maximize, and close button mouse down events.
- Added tests for window control focus behavior to ensure expected functionality.
2026-09-04 23:03:42 +08:00
victorwon2001 fd1be4f8c2 fix(ssh): 避免初始集成注入吞掉用户输出 2026-09-04 22:21:55 +09:00
Kang 337e9d5194 style(tabbar): adjust color-mix percentages for active and inactive tab backgrounds (#576) 2026-09-04 17:10:09 +08:00
Kang 4fd8eb0bc9 Merge pull request #574 from victorwon2001/fix/issue-563
fix: 修复 Windows 本地终端路径同步
2026-09-04 13:05:02 +08:00
victorwon2001 1af67dacef fix: 修复 Windows 本地终端路径同步 2026-09-04 12:53:37 +09:00
Kang 944b82d99e Merge pull request #573 from victorwon2001/fix/issue-565
fix(zmodem): 改用非阻塞文件选择器
2026-09-04 09:54:47 +08:00
victorwon2001 74b13dbf86 fix(zmodem): 改用非阻塞文件选择器 2026-09-04 09:45:10 +09:00
Kang 5f479c871a Merge pull request #571 from LunaSpica/fix/settings-language-cancel
fix(settings): 设置窗口切换语言后取消无法恢复原语言
2026-09-04 01:16:57 +08:00
Kang dec04a81c8 fix(settings): preserve cancel close behavior 2026-09-04 00:54:53 +08:00
Yue-Sui 4ef2b985d5 fix(settings): 弹窗放弃更改时完成关闭流程 2026-09-04 00:40:02 +08:00
Kang 5fa177737f fix(ssh): adjust injection timeout and enhance suppression diagnostics (#564)
- Reduced the injection timeout from 30 seconds to 8 seconds for improved responsiveness.
- Introduced a new `SuppressionDiagnostics` struct to track and log suppression metrics.
- Updated the injection handling logic to incorporate the new diagnostics and timeout mechanisms.
- Refactored related functions for clarity and maintainability.
2026-09-04 00:39:34 +08:00
Kang 36879ade3d Merge pull request #570 from victorwon2001/fix/issue-535
fix: 修复 Windows 中键粘贴触发 Vim 鼠标输入
2026-09-03 23:47:29 +08:00
Yue-Sui 807f0af544 fix(settings): language preview respects cancel/draft flow 2026-09-03 23:28:00 +08:00
victorwon2001 6d01a494f1 fix: 修复 Windows 中键粘贴触发 Vim 鼠标输入 2026-09-04 00:19:57 +09:00
Kang b85d4c2c84 Merge pull request #566 from victorwon2001/fix/issue-557
fix(notes): 修复右键重命名焦点丢失
2026-09-03 20:34:07 +08:00
victorwon2001 99540c6abe fix(notes): 修复右键重命名焦点丢失 2026-09-03 21:30:51 +09:00
Kang f9e52a3e54 chore(i18n): update descriptions for reconnecting to last working directory
- Revised the English, Korean, Simplified Chinese, and Traditional Chinese translations for the reconnectRestoreCwdDesc key to clarify the behavior of reconnecting to the last known working directory in SSH sessions.
2026-09-03 20:01:24 +08:00
Kang b148948623 refactor(terminal): change default behavior for reconnecting to previous working directory
- Updated the default setting for reconnecting to the previous working directory from true to false across various components and settings.
- Adjusted related tests to reflect the new default behavior.
2026-09-03 20:01:03 +08:00
Kang cd64b8f178 Merge pull request #555 from llyVictory/feat/ssh-session-reconnect
feat(terminal): SSH 重连后自动恢复断联前工作目录
2026-09-03 19:25:39 +08:00
llyVictory 4a63b90e28 Merge branch 'nyakang:main' into feat/ssh-session-reconnect 2026-09-03 17:06:45 +08:00
lly 93fa27b54a merge: update SSH reconnect branch with upstream main 2026-09-03 17:02:47 +08:00
Kang e1d587f641 refactor(LocalTerminal, SshForm): reorganize dynamic tab title components
- Moved dynamic tab title components within LocalTerminal and SshForm for improved structure and consistency.
- Updated the layout to ensure proper alignment and spacing for better user experience.
- Retained functionality of dynamic tab title switches in both components.
2026-09-03 16:55:25 +08:00
lly 0faa75dc0f fix(terminal): harden SSH reconnect cwd restoration 2026-09-03 16:36:44 +08:00
Kang 7858853dbd docs: update CHANGELOG for version 1.2.8
- Added SSH feature to prune NyaTerm's Bash shell-integration commands from remote command history, including support for shells with cmdhist disabled.
- Restyled the built-in editor's search panel with theme-aware controls, focus rings, and checkbox accents.
- Ensured shell-integration injection lines comply with remote Linux PTY canonical-input limits.
2026-09-03 10:35:29 +08:00
Kang bb7d1546bc chore: bump version to v1.2.8 v1.2.8 2026-09-03 10:31:58 +08:00
Kang 2c77b77e90 style(codeMirror): update search panel styling to use theme colors (#558)
- Enhanced the styling of the CodeMirror search panel by removing the light button gradient and implementing theme colors for buttons and inputs.
- Added focus ring and checkbox accent styles to improve accessibility and visual consistency.
- Updated tests to verify the new styling rules for the search panel.
2026-09-03 10:29:20 +08:00
Kang 85d882ab1e Merge pull request #562 from nyakang/fix/ssh-startup-prompt-suppression
fix(ssh): improve injection script formatting and readability
2026-09-03 10:17:40 +08:00
Kang 2ea9abf0ea feat(ssh): implement bash history pruning in injection script
- Introduced a mechanism to prune bash history entries within a defined range, enhancing the management of command history.
- Added a new constant for maximum history entries and updated the injection script to utilize this feature.
- Improved the script's logic to ensure proper handling of history entries, including marking the beginning and end of relevant history sections.
2026-09-03 10:17:23 +08:00
Kang 18fdae9b81 fix(ssh): improve injection script formatting and readability
- Reformatted the injection script in `osc.rs` to enhance clarity and maintainability.
- Consolidated multiple lines into a single compound entry while ensuring compliance with remote PTY input limits.
- Updated function comments for better understanding of the script's purpose and functionality.
2026-09-03 09:50:57 +08:00
lly b97f759f25 fix(terminal): harden reconnect cwd restore per review 2026-09-03 09:49:31 +08:00
Kang 55a143e2f7 docs: update CHANGELOG for version 1.2.7
- Added new features including Ctrl+mouse-wheel font zoom in the editor, a context-menu action for quick commands, dynamic terminal tab titles, shared SFTP helpers, and improved AI event handling.
- Fixed issues related to file drop target detection, terminal selection preservation, tab scrolling behavior, and RDP connection editing.
2026-09-02 21:24:30 +08:00
Kang 419bfafbdf chore: bump version to v1.2.7 v1.2.7 2026-09-02 20:17:01 +08:00
Kang 7c8f9cf424 fix(file-drop): replace isDropPositionInsideElement with isDropPositionTopmostWithinElement for improved drop target detection
- Updated the file drop logic in both useExternalFileDrop and useTerminalFileDrop hooks to utilize isDropPositionTopmostWithinElement, enhancing accuracy in determining if a drop event occurs over the intended target.
- Added unit tests for the new isDropPositionTopmostWithinElement function to ensure correct behavior in various scenarios, including covered elements and position validation.
2026-09-02 19:31:00 +08:00
lly 8878f0a71e feat(terminal): restore last working directory on SSH reconnect 2026-09-02 16:33:58 +08:00
Kang 93760ee740 chore(i18n): add localization for MCP error messages in multiple languages
- Added new localized strings for MCP unavailability errors in English, Korean, Simplified Chinese, and Traditional Chinese.
- Enhanced user experience by providing clear error messages related to Claude Code and Codex fallback scenarios.
2026-09-02 16:22:32 +08:00
Kang 3685459dd1 feat(ai): enhance AI stream control event handling and add localization for MCP errors
- Introduced `classifyAIStreamControlEvent` to categorize AI stream events as "warning", "done", or "error", improving event management.
- Updated `AIAssistantPanel` to handle new event types, displaying appropriate warnings and error messages based on the event kind.
- Added localization for external agent MCP fallback and startup errors in multiple languages.
- Created tests for the new event classification logic and ensured proper handling of localized error messages.
2026-09-02 16:22:23 +08:00
Kang 43ced28f30 Merge pull request #521 from mengshouer/main
feat: add dynamic terminal tab titles
2026-09-02 00:58:29 +08:00
Kang 688bbfd615 Merge upstream main into PR #521 2026-09-02 00:49:05 +08:00
Kang 468c1d4902 Merge pull request #537 from agogo233/feat/context-menu-quick-command
feat: add context menu action to save terminal selection as quick com…右键菜单支持将终端选中内容保存为快捷命令
2026-09-02 00:10:53 +08:00
Kang 40d306eaad fix: preserve terminal selection when saving quick command 2026-09-02 00:09:05 +08:00
Kang 4d81f4f377 Merge pull request #549 from llyVictory/feat/editor-ctrl-wheel-zoom
feat(editor): 内置编辑器支持 Ctrl+滚轮缩放字体
2026-09-01 23:47:11 +08:00
Kang e92266b076 Merge pull request #550 from hualong1009/fix/518-selection-input-scroll-to-cursor
fix: scroll terminal to cursor when typing with a selection
2026-09-01 23:44:08 +08:00
王浩生 718db66b13 fix: scroll terminal to cursor when typing with a selection
When the terminal viewport is scrolled up and the user has a selection
over scrollback output, key presses were sent via terminal.input(data,
false) to preserve the selection (by design, it is only cleared on mouse
click). However, xterm.js gates both selection clearing and
scrollOnUserInput behind the same wasUserInput flag, so the viewport
never scrolled back to the cursor and the user could not see what they
typed.

Keep the selection-preservation behavior but explicitly scroll to the
bottom when the viewport is not at the cursor, replicating xterm's
scrollOnUserInput for every key path in the selection branch
(printable input, backspace/delete, enter, arrows, ctrl/alt combos).

Fixes #518
2026-09-01 20:41:26 +08:00
lly 5c379d61b8 feat(editor): support Ctrl+wheel font zoom in builtin file editor 2026-09-01 19:10:32 +08:00
Kang 7d1d4073e7 fix(terminal): focus on open tab terminal after tab change (#547)
- Added a call to `focusOpenTabTerminal(tab)` in the `onTabChange` handler to ensure the terminal focuses on the active tab when changed, enhancing user experience.
2026-09-01 16:49:11 +08:00
Kang f0267a6538 feat(sftp): introduce helper functions for directory listing and stat commands
- Added `list_dir_command` and `stat_command` functions to streamline the creation of shell commands for listing directories and retrieving file statistics with numeric owner and group information.
- Updated `stat_remote_properties` and `list_dir` methods to utilize the new command functions, improving code readability and maintainability.
- Enhanced unit tests to validate the new command functions and ensure correct parsing of directory entries.
2026-09-01 14:23:59 +08:00
Kang 8605ae7b25 Merge pull request #542 from victorwon2001/fix/issue-500
Fix #500: [Bug]: RDP 配置中跳板机选中保存之后无法记住
2026-09-01 09:31:33 +08:00