Commit Graph
240 Commits
Author SHA1 Message Date
Kang 74ba8984eb chore(desktop): document the session dialog scroll handle exception 2026-10-27 15:01:12 +08:00
Kang 3c039ca23f test(package): add mock for Wix tool in native package tests
- Introduced a mock for the Wix tool in the PackageNativeTests to enhance testing of Windows MSI packaging functionality.
2026-10-26 21:14:36 +08:00
Kang 9663a91287 feat(release): add Windows MSI packaging and verification
- Implemented MSI packaging for stable releases, including installation scripts and metadata generation.
- Added tests to ensure MSI files are correctly generated and verified against expected properties.
- Updated release workflows to include MSI installation and signing steps.
- Enhanced artifact management to conditionally include MSI files based on release type.
2026-10-26 17:33:24 +08:00
Kang 9b89f77f01 fix(release): confine decoded signing keys to the signing step 2026-10-26 14:44:30 +08:00
Kang 32e09cb19a docs(release): account for absent channel manifests during recovery 2026-10-26 14:44:30 +08:00
Kang 0bfdf0862f docs(release): document GPUI migration and cutover gates 2026-10-26 14:26:14 +08:00
Kang c0fd97179f ci(release): verify signed candidates without publishing
Pin package checkouts and validate per-target source provenance before signing or reusing artifacts. Separate verification from GitHub and R2 publication, and exercise invalid signatures and rehearsal publication gates.
2026-10-26 14:25:38 +08:00
Kang 3cd8bdf7dd feat(windows_resources): enhance Windows application versioning and resource management (#979)
- Added support for embedding version information in Windows executables, including major, minor, patch, and revision components.
- Updated the build script to generate a comprehensive Windows resource file with application metadata.
- Implemented tests to validate the correct embedding of version information and resource requirements for Windows applications.
- Enhanced the verification process for Windows applications to ensure the presence of version resources and correct metadata.
- Introduced new tests for handling versioning edge cases and ensuring compliance with Windows versioning standards.
2026-10-24 14:25:53 +08:00
Kang cdead1d343 fix(tests): resolve symlink handling in verified_move_keeps_source_if_it_changes_during_copy test
- Updated the test to use canonical paths for source and target directories, ensuring compatibility with macOS symlink behavior.
- Enhanced the assertion to provide clearer error messages when the copy operation does not reach the source mutation, improving test reliability.
2026-10-23 17:58:57 +08:00
Kang 93abf05182 feat(icons): add macOS application icon and documentation (#958)
- Introduced a new macOS application icon (`icon.icns`) to enhance the visual identity of the app.
- Added a README file in the icons-macos directory to provide context and usage instructions for the icon.
- Updated the packaging script to correctly reference the new icon location for macOS bundles.
2026-10-22 16:31:15 +08:00
Kang a6c04cfd08 feat(tests): enhance PowerShell execution tests with improved timeout handling and prompt verification
- Updated the PowerShell test to include a custom prompt function, ensuring accurate readiness detection.
- Implemented a more robust timeout mechanism for PowerShell execution, allowing for better handling of execution delays.
- Added assertions to verify that PowerShell execution completes successfully and does not time out unexpectedly.
- Refactored the test logic to improve clarity and maintainability, ensuring consistent behavior across test runs.

Validated on Windows with workspace checks, tests, formatting, and all-target clippy.
2026-10-18 19:52:54 +08:00
Kang 129e28f066 feat(zmodem): enhance Zmodem session management and event handling
- Added functionality to rebind Zmodem recording during session transfers, ensuring accurate data capture.
- Implemented new methods for starting and finishing Zmodem runtime, improving session event handling and state management.
- Enhanced session event bridge to support protocol consumer binding and asynchronous event pushing, optimizing event processing.
- Updated tests to validate new Zmodem runtime behaviors and ensure proper handling of session events during transfers.

Validated on Windows with workspace checks, tests, formatting, and all-target clippy.
2026-10-18 14:03:49 +08:00
Kang 567934ba38 feat(threading): introduce BackgroundCleanup for executor-managed task cleanup
- Added `BackgroundCleanup` struct to manage cleanup tasks in a background executor, ensuring that dropped workers do not block the main thread.
- Refactored existing threading logic to utilize `spawn_joinable` for thread creation, enhancing task management and cleanup during shutdown.
- Updated various components to integrate background cleanup, including external editor watchers and transfer state management.
- Added tests to verify the functionality of cleanup tasks and their execution order during shutdown.
2026-10-16 21:49:52 +08:00
Kang a5aa197fa7 perf(renderer): enhance terminal rendering with new features and optimizations
- Updated `.gitignore` to exclude renderer artifacts.
- Added `hdrhistogram` and `gpui_wgpu` dependencies to `Cargo.lock`.
- Introduced `gpui_platform` and `serde_json` as optional dependencies in `Cargo.toml`.
- Implemented a new example `renderer_probe` for benchmarking native rendering performance.
- Enhanced `CellGlyphPaintPlan` to support shade region merging and improved rendering efficiency.
- Updated tests to validate new rendering features and ensure correct behavior of text decorations.
- Documented changes in `terminal-rendering.md` to clarify rendering logic and performance benchmarks.
2026-10-09 00:44:17 +08:00
Kang 9501cb8dc5 feat(tests): add comprehensive validation for Windows installer and ConPTY files
Introduced new tests to verify the Windows installer functionality, ensuring it correctly checks for required ConPTY files and handles architecture mismatches. Added a fixture to simulate installer behavior and validate the presence of necessary files, enhancing the robustness of the installation verification process.
2026-10-06 00:45:51 +08:00
Kang 44658ad751 fix(release): enhance whitespace handling in version bump script
Updated the version bump script to preserve CRLF line endings and respect configured whitespace checks during commits. Added tests to ensure proper handling of whitespace configurations and CRLF preservation, improving the robustness of the version bumping process.
2026-10-05 23:53:55 +08:00
Kang 3f9f15cc6e feat(release): add bump version script and update workflows
Introduced a new script for bumping the Cargo workspace version, which updates both `Cargo.toml` and `Cargo.lock` while preserving comments and formatting. Updated CI workflows to include the new `test_bump_version` script, ensuring version bump tests are executed during the CI process.
2026-10-05 23:31:37 +08:00
Kang c3a6f3f44b fix(ci): restore macOS plugin tests and architecture gate 2026-10-05 19:28:38 +08:00
Kang 2250e90dba feat(plugin-sdk): add new job for building and testing plugin SDK components
Introduced a new job in the GitHub Actions workflow for the Plugin SDK, which includes steps for checking out the repository, setting up Rust with necessary components, installing Linux dependencies, checking formatting, building SDK guests, and verifying the packaged SDK. Updated the Rust gate job dependencies to include the new plugin-sdk job.

Additionally, refactored the NyaTermApp to improve the handling of floating panel close actions based on the current panel state, ensuring better user experience. Enhanced plugin management by implementing shutdown procedures and revising invocation checks to include expected revisions, improving stability and error handling during plugin operations.

Added comprehensive tests for the plugin service to validate the new functionality and ensure robust performance across various scenarios.
2026-10-04 20:28:18 +08:00
Kang 2ffbaf995d feat(plugins): introduce V1 plugin system with manifest and invocation support
Add a new plugin architecture allowing for dynamic plugin management and execution. This includes the implementation of plugin manifests, action validation, and parameter handling. Introduced new modules for plugin invocation, manifest parsing, and preferences management. Updated the core library to support plugin integration and added tests for plugin functionality. Localization updates for plugin management UI in multiple languages were also included.
2026-10-04 15:42:04 +08:00
Kang e11cf9de64 fix(ci): update SSH disconnect worker baseline 2026-10-03 21:52:23 +08:00
Kang 2cbec5110b fix(ci): approve AI scroll and workspace test baselines 2026-10-03 17:05:50 +08:00
Kang 3c7ebd60a3 ci: update architecture allowlist baselines 2026-10-02 19:17:23 +08:00
Kang d37cd2a042 feat(conpty): integrate bundled ConPTY support for Windows
- Added support for a bundled ConPTY implementation on Windows, enhancing local terminal functionality.
- Updated the Cargo.toml and Cargo.lock to include the new `nyaterm-transport` dependency.
- Implemented configuration and status checks for the bundled ConPTY in the application.
- Enhanced the UI to display ConPTY status and added localization for related messages in multiple languages.
- Updated release scripts to package and verify ConPTY files for Windows distributions.
- Added tests to ensure proper functionality and integration of the ConPTY feature.
2026-09-29 20:07:19 +08:00
Kang 5789b8fa16 ci: remove stale remote editor scroll allowlist 2026-09-27 09:52:42 +08:00
Kang 4cda513e17 fix(installer): add launch option to Windows finish page 2026-09-26 00:30:24 +08:00
Kang 626c3b0b31 feat(update): enhance updater functionality and UI
- Added support for portable update packages in the updater logic.
- Introduced new methods for handling update checks and cleanup processes.
- Updated UI elements to reflect the new update phases and statuses.
- Improved error handling and user feedback during update operations.
- Localized new strings for update-related messages across multiple languages.
- Refactored update-related code for better maintainability and clarity.
2026-09-23 08:39:54 +08:00
Kang b0a8d66695 chore: update references from gpui-component to gpui-kit
- Replaced all instances of `gpui-component` with `gpui-kit` across various files to reflect the new naming convention.
- Updated Cargo.toml and documentation to ensure consistency in dependency management and integration boundaries.
- Adjusted comments and code references to align with the new structure, enhancing clarity and maintainability.
2026-09-22 00:00:58 +08:00
Kang 68d8d86f84 fix(ci): allow managed asset table scroll 2026-09-21 23:11:33 +08:00
Kang 7b2fcd887b feat(windows): add application icon resource handling for Windows builds
- Introduced `embed-resource` dependency to manage Windows application icons.
- Updated `build.rs` to compile Windows resources and include an application icon.
- Enhanced shell command execution to prevent console window from appearing during startup.
- Added validation for Windows application binaries to ensure GUI subsystem and required icon resources are present.
- Updated tests to verify the presence of necessary resources in the Windows executable.
2026-09-19 13:53:41 +08:00
Kang 4d4494f783 fix(release): harden preview native packaging 2026-09-19 10:28:43 +08:00
Kang 6c92ec455b feat(app_identity): introduce application flavor management for stable and preview versions
- Added `AppFlavor` enum to distinguish between stable and preview application identities.
- Updated various components to utilize the current application flavor for configuration, logging, and UI elements.
- Enhanced the update mechanism to ensure compatibility with the respective application flavor.
- Implemented tests to validate flavor-specific behavior and configuration isolation.
- Modified native menus and title bars to reflect the correct application name based on the current flavor.
2026-09-19 00:39:32 +08:00
Kang 623e040551 feat(updater): enhance update mechanism with semver support and manifest handling
- Added `semver` dependency to manage versioning.
- Introduced `UpdateManifest` struct for parsing and validating update manifests.
- Implemented logic to select update artifacts based on platform and architecture.
- Updated the update check process to utilize the new manifest structure.
- Enhanced error handling for update signature verification and manifest parsing.
- Modified update status messages for clarity in the UI.
- Added tests for new functionality and error cases in the update process.
2026-09-19 00:02:11 +08:00
Kang 81c6bf6198 fix(ci): allow owned xymodem worker thread 2026-09-18 16:56:04 +08:00
Kang ae2cc76b7b feat(desktop): reconnect migrated UI workflows and native integrations
Preserve shared custom icons, SFTP settings and connection extensions; reconnect input, authentication, cancellation, tunnel, transfer, editor and remote-desktop controls. Add typed feedback, tray and signed update integration. Remote-desktop IPC is version 7 and keeps target identity separate from authenticated loopback routes.

Pinned nyaterm fork revisions: russh 0de037cd, russh-sftp e2caffef, IronRDP b6658790 (includes existing c44dcc77 gateway merge). Windows validation: workspace tests 2547 passed, 9 ignored; clippy/all-targets, fmt, architecture check and 28 packaging tests passed. UI_UX_MIGRATION_AUDIT.md records remaining platform/manual verification and partial parity boundaries; no release or real installer upgrade was performed.
2026-09-09 06:59:37 +08:00
Kang 958b55905b refactor(tests): standardize test directory management across modules
- Introduced the `TestConfigDir` utility to streamline the creation and management of temporary test directories, ensuring consistent naming and cleanup across various test modules.
- Updated multiple test files to utilize `TestConfigDir`, enhancing clarity and reducing redundancy in test setup.
- Improved the robustness of test directory handling, particularly in scenarios involving concurrent test execution, to prevent conflicts and ensure isolation.
- Added assertions to verify the correct cleanup of test directories after execution, reinforcing the integrity of the testing environment.
2026-09-04 12:15:16 +08:00
Kang 97401bddac refactor(tests): update test imports for clarity and organization
- Replaced wildcard imports with explicit imports in test modules across multiple files, enhancing code readability and maintainability.
- This change improves the clarity of dependencies in test cases, making it easier to understand which components are being utilized in each test.
2026-09-01 12:04:42 +08:00
Kang 105317b106 build(release): package the MCP helper
Ship nyaterm-mcp beside the application in native packages and verify its presence in packaging tests and AUR artifacts.
2026-09-01 10:24:09 +08:00
Kang 8e27865206 ci(contributing, docs): enhance contribution guidelines and installation instructions
- Updated the `CONTRIBUTING.md` to include additional test commands for release asset verification and package metadata generation.
- Revised `README.md` and `README.zh-CN.md` to clarify the installation process for Windows portable editions and added details on migrating from Tauri to GPUI.
- Introduced new workflows for publishing to AUR, Gitee, and Homebrew, ensuring streamlined release processes across platforms.
- Added a new `actionlint.yaml` for workflow syntax validation, improving CI/CD reliability.
- Enhanced documentation to reflect changes in artifact versioning and release management, ensuring clarity for contributors and users.
2026-08-31 10:32:18 +08:00
Kang 8fe05f6050 refactor(desktop): centralize background job execution
Route short-lived blocking work through a bounded scheduler with cooperative cancellation, typed outcomes, panic containment, and shutdown metrics. Own and join long-lived desktop workers, including transfer watchers and protocol pipelines, and enforce the remaining thread constructors through the architecture allowlist.
2026-08-30 09:39:45 +08:00
Kang 5e0b1dfcd4 fix(ui): conform scroll containers to UI contracts
Keep absolutely positioned popup geometry on non-scrolling shells and move scrolling into in-flow NyaScrollable children. Expose horizontal overflow in the app menu and session tabs, preserve dedicated editor scrollbars, and retire the wildcard-import and popup-scroll architecture exceptions.
2026-08-30 01:15:32 +08:00
Kang cd5c925676 chore(ci): enforce warnings and architecture boundaries
Clear the existing workspace Clippy warnings and make warnings fatal in CI. Add a budgeted architecture check that prevents new crate-boundary, raw-thread, raw-scroll, module-path, and wildcard-import debt while requiring every temporary exception to stay justified and current.
2026-08-30 00:58:09 +08:00
Kang e1201a413c ci(release): strengthen native package validation 2026-08-28 00:49:08 +08:00
Kang 2df15871cc ci(workflows): update CI configurations and enhance documentation
- Modified `.gitattributes` to ensure nested CI scripts under `scripts/ci/` are correctly matched.
- Updated `CONTRIBUTING.md` for clarity and added details on local checks, including the importance of `--no-fail-fast` in testing.
- Introduced new GitHub Actions for setting up Rust and managing documentation workflows, improving CI efficiency.
- Removed the outdated `native-checks.yml` workflow and replaced it with a more comprehensive `rust.yml` workflow for better testing coverage.
- Added scripts for verifying release assets and installing necessary tooling, enhancing the release process.

This commit refines the CI/CD pipeline, ensuring better organization, clarity, and functionality across workflows and documentation.
2026-08-25 22:53:23 +08:00
KangandClaude Opus 5 ab02c222cc ci(docs): build the docs site and check translation parity
The docs site was not in any CI path filter, so nothing built it and nothing
compared the two locales. That is how the English pages drifted several
sections behind Chinese and how seven internal screenshot-planning notes stayed
published.

- Add scripts/ci/check_docs_translations.py, covering what a Docusaurus build
  does not: a page existing in only one locale, a heading-count mismatch
  between the two copies, a page no sidebar references, and authoring
  leftovers (screenshot-planning notes, /img/docs/ paths, scripts/demo-*.sh
  references, stray TODO markers). Verified it fails on each of those by
  reintroducing them.
- Add a Documentation site job that runs the script and then builds every
  locale, and add docs-site/** to the workflow path filters.
- Fix docs-site/pnpm-workspace.yaml, whose allowBuilds entries still held the
  placeholder text "set this to true or false". That made every `pnpm install`
  in the site fail with ERR_PNPM_IGNORED_BUILDS, which means the
  `pnpm --dir docs-site build` command our own contributing guide tells people
  to run did not work. Deny the four build scripts explicitly; none is needed
  to build the site.
- Correct the homepage, which still advertised only SSH, local shell, Telnet,
  and serial: the workspace card, the docs card, and the page description now
  name RDP, VNC, and the AI assistant. The three retargeted translate() keys
  are updated in i18n/en/code.json so English does not fall back to Chinese.
- Document the new script in the setup and contributing guides, replacing the
  note that said no translation-completeness check exists.

Verified with `python3 scripts/ci/check_docs_translations.py`,
`pnpm --dir docs-site install --frozen-lockfile`, and
`pnpm --dir docs-site build`, and by confirming the new homepage strings render
in both locales.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-22 11:27:47 +08:00
KangandClaude Opus 5 (1M context) f07e2745df feat(remote-desktop): introduce nyaterm-vnc-helper and enhance IPC handling
Added the `nyaterm-vnc-helper` crate to manage VNC sessions in a separate process, improving security and stability. Updated the IPC protocol to facilitate communication between the main application and the VNC helper, including new control messages and error handling. Refactored existing code to utilize helper processes for both RDP and VNC, ensuring consistent session management and error reporting.

- Updated Cargo.toml and Cargo.lock to include the new helper.
- Refactored remote desktop session management to support helper processes.
- Enhanced error handling for VNC-specific scenarios.
- Added tests for the new VNC helper functionality.

Co-Authored-By: Claude Opus 5 (1M context)
2026-08-20 17:18:34 +08:00
Kang 97d8ba86c4 ci(deps): add libdbus-1-dev to the list of installed packages 2026-08-17 08:40:54 +08:00
Kang 6e111b0bca ci: add verification scripts and tests for native package releases
- Implemented `verify_native_package.py` to validate release artifacts for NyaTerm.
- Added tests for package validation in `test_verify_native_package.py`.
- Created initial test suite in `__init__.py` and added tests for package native functionality in `test_package_native.py`.
- Included checks for Windows, macOS, and Linux package formats and metadata.
- Ensured safe archive path verification and proper error handling for missing artifacts.
2026-08-16 23:40:27 +08:00
Kang 2a0e705e0e refactor: Remove icon management scripts and related assets
- Deleted `check-icon-references.sh` script which verified icon references in the UI.
- Removed `icons.manifest` file that served as a vendor manifest for bundled icon assets.
- Eliminated `package-windows.ps1` script used for packaging the Windows application.
- Removed `sync-icons.sh` script responsible for syncing icon assets from upstream sources.
2026-08-16 20:34:06 +08:00
Kang 65d9e9e2d2 refactor(desktop): remove blocking connection persistence 2026-08-16 01:17:25 +08:00