Commit Graph
1021 Commits
Author SHA1 Message Date
Yoan HuangandCursor fb8050ff0b Remove incomplete terminal file-change tracking.
Terminal commands now only execute; apply/revert stays on dedicated file tools, and SQLite v11 drops leftover terminal_tool records.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 23:59:40 +08:00
Yoan HuangandCursor a7cbebe109 fix(terminal): support Set-Location -LiteralPath so Windows file tracking works
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 23:09:27 +08:00
Yoan Huang c325a7092e feat(tests): enhance workspace file explorer functionality with focused directory refresh logic 2026-09-17 21:29:49 +08:00
Yoan Huang 6a440a21d6 feat: enhance E2E application isolation and workspace file explorer functionality
- Update E2E testing commands in documentation to clarify installation paths for macOS and Windows.
- Refactor package application script to improve handling of E2E installations, including renaming and restoring shortcuts.
- Introduce new module for E2E isolation helpers, including functions for detecting installation paths and renaming applications.
- Optimize workspace source service to use Promise.all for concurrent processing of file entries.
- Add reload token mechanism in WorkbenchContentPanel to refresh file explorer state.
- Implement directory loading and refresh logic in WorkspaceFileExplorer to ensure visibility of newly created files.
- Enhance ChatPage workspace selection logic for better path normalization.
- Add unit tests for E2E isolation helpers and E2E tests for workspace file explorer refresh behavior.
2026-09-17 21:18:21 +08:00
Yoan Huang fad0cd0fb0 feat(tests): enhance WPS Office E2E tests with environment reset and outcome tracking
- Introduced `resetWpsEnvironment` to ensure a clean state before running tests.
- Updated test logic to track outcomes for each WPS Office target, categorizing them as 'covered', 'skipped', or 'failed'.
- Improved assertions to validate the results of WPS Office interactions, ensuring proper marker application and reversion.
- Refactored workspace handling to prevent file locks and ensure isolation between test runs.
- Enhanced logging for WPS component interactions to aid in debugging.
2026-09-17 20:39:45 +08:00
hy 075ece2ced feat: Add maxWaitSeconds parameter to terminal commands for improved execution control 2026-09-17 16:46:47 +08:00
hy dde23edd48 feat: Update terminal waiting rules and clarify user interaction guidelines in brain system prompt 2026-09-17 16:41:10 +08:00
hy 71a1aeed4b feat: Implement desktop app gateway headers and mystery token management for enhanced API security 2026-09-17 15:43:59 +08:00
hy 04d4c3e054 feat: Enhance error handling in embedded browser and update navigation tests for improved user experience 2026-09-17 15:18:26 +08:00
hy a9f8c80a2b Refactor navigate plan tests and enhance error handling
- Removed the isHttpsFallbackWorthy function and related tests to simplify the error handling logic.
- Updated navigate plan tests to ensure HTTPS is prioritized without falling back to HTTP for specific error scenarios.
- Added new end-to-end tests for CNIPA HTTPS navigation to validate that explicit HTTPS requests do not downgrade to HTTP and correctly handle error pages.
- Removed obsolete scheme fallback test to streamline the test suite.
- Adjusted the Electron backend to load HTTP directly without attempting HTTPS first, reflecting the updated navigation logic.
- Enhanced the local HTTP server to handle hang requests appropriately.
2026-09-17 14:46:01 +08:00
hy 0a1d50797d feat: Enhance browser error handling and navigation fallback
- Implement a new net error page with improved UI and error messaging.
- Refactor error handling in BrowserEmbedService to utilize the new net error page.
- Add tests for net error page rendering and behavior.
- Introduce a new e2e test case for navigating to the CNIPA patent publication page, verifying HTTP fallback behavior.
- Update existing tests to reflect changes in error messaging from "无法访问此网站" to "无法访问此站点".
- Improve context compaction scenario inputs for clarity and specificity.
2026-09-17 14:06:26 +08:00
hy 98c3824541 feat: enhance context window handling and compaction logic
- Added contextWindowTokens to LlmPresetModel and updated mergePresetCatalogProviders to parse context window tokens from models.
- Removed compactionTriggerTokens from BrainContextBudgetSnapshot as it is no longer needed.
- Updated tests to reflect changes in context window calculations and compaction logic.
- Introduced new utility functions for resolving effective context window tokens and compaction tail tokens.
- Adjusted various test cases to ensure compatibility with the new context window handling.
- Improved error handling and logging in browser-related services and tests.
2026-09-17 12:53:55 +08:00
hy 9015a5133f feat: implement link handling in Markdown editor for external and local file links 2026-09-17 10:44:17 +08:00
hy cce53f560f feat: enhance Markdown editor with image preview and local path resolution
- Added functionality to preview images in the Markdown editor using ImageLightbox.
- Implemented local path resolution for Markdown images, allowing relative paths to be displayed correctly.
- Introduced caching for image blobs to optimize loading performance.
- Updated error handling for network error documents in navigation logic.
- Enhanced unit tests for navigatePlan and added tests for markdown image path resolution.
- Created end-to-end tests for image preview functionality and browser navigation scheme fallback.
2026-09-17 10:27:48 +08:00
hy ceb8639fe4 feat: enhance browser navigation handling with fallback support and error reporting 2026-09-17 09:40:55 +08:00
Yoan Huang 924119ce59 feat: enhance WPS Office integration with improved excerpt handling and error logging 2026-09-16 23:05:21 +08:00
Yoan Huang 3aa1337797 feat: enhance WPS sync service with remaining document tracking and improved reopening logic 2026-09-16 22:54:24 +08:00
Yoan Huang 03e8045243 feat: enhance WPS sync service with improved document handling and reporting
- Added synchronous reporting option in the `report` function to allow immediate feedback.
- Increased the maximum number of rows and columns processed from the active sheet to improve data handling.
- Implemented a mechanism to check for other open documents of the same component to determine reopening behavior.
- Introduced a new `waitForOfficePathUnlocked` function to handle file locking scenarios more gracefully.
- Enhanced the `WpsSyncService` to manage document reopening based on the presence of other documents and add-in disconnections.
- Added tests to cover new functionality, including handling of document reopening and excerpt flushing.
- Refactored code for better readability and maintainability, including the extraction of Windows-specific executable resolution logic.
2026-09-16 22:24:37 +08:00
Yoan Huang d483c4a208 feat: implement office file write notifications and handling for WPS Office
- Introduced `withOfficeFileWrite` utility to manage file write operations with proper closing and reopening of documents.
- Updated `notifyOfficeFileWritten` to utilize the new utility and handle office file paths more effectively.
- Enhanced `WpsSyncService` to manage document closing and reopening during write operations, ensuring proper synchronization with connected clients.
- Added tests to verify the closing and reopening behavior of documents during write operations, ensuring that the correct events are dispatched to connected add-ins.
- Refactored existing code to improve readability and maintainability, including the handling of file paths and error management.
2026-09-16 21:29:22 +08:00
hy 5098ad6d5a feat(retry): update retry handling to remove completed rows and ensure proper UI behavior 2026-09-16 12:48:09 +08:00
hy 3185a6d370 feat(excel): add color conversion functions and update related schemas and tests 2026-09-16 11:35:10 +08:00
hy f2cfed3751 feat: implement retry handling in process groups and UI updates
- Enhance `upsertGroupFromDisplayEvent` to manage retry states and ensure only one retry row is displayed for each run.
- Introduce `resolveRetryGroupId` to correctly identify the group ID for retries.
- Update `completeProcessGroupById` and `upsertProcessItem` to utilize the new retry logic.
- Modify `reduceAssistantTurnByRunEvent` to hide thinking indicators when a retry is in progress.
- Add logic to `shouldShowAssistantThinkingIndicator` to account for running retries.
- Implement tests for retry behavior in process events and ensure proper UI rendering during retries.
- Create end-to-end tests to validate the behavior of retry rows and their interaction with thinking indicators.
- Introduce utility functions for managing process state and usage metrics in tests.
2026-09-16 11:12:43 +08:00
hy 2f2a28fc79 feat(ai): enhance LLM retry logic with max attempts and update related tests 2026-09-16 10:32:11 +08:00
hy f2cb3995e2 feat(excel): enhance Excel preview with changed sheet indicators and update related tests 2026-09-15 17:42:26 +08:00
hy 9115870da4 feat(wps): enhance WPS addon installation and synchronization logic with URL validation and port management 2026-09-15 17:03:16 +08:00
hy 48fbdb7181 feat: enhance WPS sync service with port probing and registration logic
- Implemented `probeWpsSyncPort` to check if the preferred port is available and responding.
- Added `isWpsSyncStatusBody` to validate the response structure from the WPS sync status endpoint.
- Updated `WpsSyncService` to handle port registration more robustly, including fallback logic for preferred ports.
- Refactored `rewriteRegistration` to streamline port writing logic based on installation status.
- Enhanced error handling and logging for port registration failures.

feat: improve auth addin merging logic

- Introduced normalization for addon loopback URLs.
- Updated `mergeAuthAddin` to handle `namelist` tokens more effectively, ensuring orphan tokens are dropped.

test: add unit tests for WPS sync service and auth addin

- Added tests for new WPS sync service features, including port probing and fallback behavior.
- Created tests for `mergeAuthAddin` to validate the handling of `namelist` and URL normalization.

test: enhance E2E tests for WPS Office integration

- Updated E2E tests to cover new scenarios for document editing and syncing across different office formats (docx, xlsx, pptx).
- Improved assertions in E2E tests to ensure proper dispatch and revert behavior in WPS Office.

refactor: consolidate office file reading logic

- Created a unified `readOfficePlainText` function to handle reading text from various office file formats (docx, xlsx, pptx).
- Updated related test utilities to use the new consolidated reading functions.
2026-09-15 16:47:48 +08:00
hy 8c6f084948 feat(wps): add WPS open with hint for supported file types and update related tests 2026-09-15 15:33:32 +08:00
hy 90a2431128 feat(wps): add authAddin merging functionality and update constants
- Introduced `mergeAuthAddin` function to handle merging of authentication add-in entries.
- Updated constants to include versioning and directory naming for the add-in.
- Modified `mergePublishXml` to accommodate new URL structure and XML declaration.
- Enhanced unit tests for `WpsSyncService` and added new E2E tests for document reload and dispatch scenarios.
- Implemented helper functions for WPS sync status and dispatch counting.
2026-09-15 15:02:14 +08:00
hy 1d2ae0e93c feat: enhance timeline layout management and compact behavior based on available space 2026-09-15 11:19:13 +08:00
hy 7f1245ea55 feat: add WPS sync addon for document refresh on local file changes
- Introduced a new WPS addon manifest and ribbon configuration.
- Implemented WpsAddonInstaller for managing addon installation and configuration.
- Created WpsSyncService to handle synchronization events and document tracking.
- Added utility functions for handling office file write notifications.
- Developed publishXml functions to manage the merging of publish.xml for the addon.
- Implemented tests for WpsSyncService, WpsAddonInstaller, and office file notifications.
- Added end-to-end tests for verifying WPS reload behavior on document modifications.
2026-09-15 10:00:02 +08:00
hy 6f8fcca859 feat: enhance cancellation handling and user feedback during AI operations 2026-09-14 18:05:12 +08:00
hy 1499a80ea2 feat: implement model icon caching and enhance assistant turn management
- Introduced caching for model icons to optimize loading and reduce network requests.
- Added functionality to resume assistant turns from live updates, ensuring state consistency.
- Updated timeout settings for AI LLM calls to improve responsiveness.
- Enhanced test coverage for new features and existing functionalities.
2026-09-14 16:42:38 +08:00
hy b8661d0ad0 feat: add brand documentation and update product naming consistency across the application 2026-09-14 11:25:07 +08:00
hy d25a153488 refactor: update release storage layout and fragment handling for improved clarity and consistency 2026-09-14 11:07:49 +08:00
Yoan Huang 5803e78033 refactor(ai): drop discard/run-digest/scope-decision, keep cache+compaction
Remove context-scope decision, partner/run digest paths, and related tests/docs.
Human history projection now floors on compaction checkpoints only.
Live continuation/resume/compaction cases passed on qwen3.8-flash; compaction live scored 90 in ai-test.md.
2026-09-12 13:57:14 +08:00
Yoan Huang bbc4bb7a20 docs: Update release process and guidelines
- Refined the release documentation for Windows and macOS builds, emphasizing the importance of clean code and proper tagging.
- Clarified the principles of the release process, including the handling of candidate packages and the evaluation of changes.
- Updated the section on candidate package preparation, ensuring clear instructions for building and testing.
- Revised the guidelines for automatic updates and object storage, specifying the default behavior for domestic and overseas releases.
- Enhanced the AI testing documentation to reflect changes in live model configurations and testing requirements.
- Improved clarity in the UI E2E regression rules, emphasizing the need for real interactions and avoiding mocks or fakes.
- Added new cleaning standards and restructuring triggers in the tidy documentation.
- Minor formatting and readability improvements in the brain prompt service code.
2026-09-12 09:27:22 +08:00
hyandCursor 4f6be73429 fix: keep PDF worker free of electron path imports
Route partner asset paths through a worker-safe userData helper and pass NCURATOR_USER_DATA_PATH into the PDF worker so release bundle checks pass.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 17:47:05 +08:00
hy 8c81adc414 release: prepare mac-v1.0.0 2026-09-11 17:42:19 +08:00
hy 32df2d1692 feat: enhance timeline functionality with improved message pinning and scrolling behavior 2026-09-11 16:58:33 +08:00
hy e72058b35c feat: enhance timeline functionality and improve user experience
- Updated timeline behavior to ensure the current day's node is pinned at the top upon first click, preventing flashback to month nodes.
- Improved month node DatePicker to allow selection of days with messages, ensuring instant jump to the selected day without expanding the axis.
- Added functionality to maintain the timeline's visual integrity when scrolling and jumping between dates, including a spacer to manage view transitions.
- Enhanced test cases to validate new timeline interactions and ensure compliance with acceptance criteria.
- Adjusted context compaction scenarios to reflect updated user input requirements for generating weekly reports.
2026-09-11 16:37:44 +08:00
hy 8478105404 feat: enhance context compaction with detailed cut information
- Introduced ContextCompactionCut type to encapsulate compaction details.
- Updated context compaction logic to emit detailed compaction events including throughSeq, firstKeptSeq, and historyFloor information.
- Enhanced CSS for message timeline to improve user interaction and visual feedback.
- Modified MessageTimeline component to manage click blocking during date selection.
- Added unit tests for context compaction events and message log annotations.
- Implemented message log annotation snapshots to capture compaction and discard events without sensitive content.
- Updated backend test types to support message log annotation partner IDs.
2026-09-11 16:15:43 +08:00
hy 6b505d9f17 feat: enhance seed partner timeline script and improve digest handling in memory services 2026-09-11 15:40:39 +08:00
hy 84f324cdea Refactor AI context compaction tests and utilities
- Removed unused imports and consolidated message handling in context compaction tests.
- Updated context compaction logic to utilize new message log structures.
- Enhanced test coverage for message log recovery and tail processing.
- Improved scheduled task trigger tests to ensure timing accuracy.
- Aligned AI run context creation in tool harnesses for consistency.
- Added options parameter to createWorkbenchNewSession for flexible model selection.
2026-09-11 15:18:46 +08:00
hy ea565575c6 feat: enhance model selector with inspector for free models and update UI interactions 2026-09-11 14:05:12 +08:00
hy 0d2a6cf9b6 fix: remove prohibition on fabricating non-existent items in RUN_DIGEST_SYSTEM_PROMPT 2026-09-11 13:37:25 +08:00
hy f658824ca7 Refactor AI prompt rendering and live provider configurations
- Updated brain.ts to render user-selected references and attachments in user messages.
- Modified contextScope.ts to streamline the run digest prompt by removing compact references.
- Enhanced referenceScope.ts to separate rendering of selected references and attachments.
- Removed references to the 'moonshot' provider across various files, including llmProvider.ts and llmPresets.ts.
- Updated end-to-end tests to reflect changes in provider names and configurations.
- Introduced new tests for live provider configurations and ensured existing tests align with the updated logic.
2026-09-11 13:09:45 +08:00
hy 1c14ab0d86 feat: enhance model catalog and UI updates
- Refactor preset model list to unify scrolling area and improve layout.
- Add loading and success/error feedback for catalog refresh actions.
- Update context usage display to show only used percentage and tokens.
- Introduce new iconUrl property for preset models and ensure proper handling in the catalog.
- Remove unused free model notice and adjust related UI components.
- Improve error handling and loading states for model fetching.
- Update tests to cover new catalog behavior and ensure proper rendering of model icons.
2026-09-11 11:49:32 +08:00
hy 4fa35c6f9b feat: update user message terminology and improve formatting in various components 2026-09-11 11:41:22 +08:00
hy 9c04dd41e9 feat: simplify rendering functions and enhance user message structure in brain.ts 2026-09-11 11:25:42 +08:00
hy 8b8cd9b7ab feat(tests): add unit tests for partner digest coordinator and enhance existing test cases
- Introduced unit tests for partner digest coordinator to validate run completion and digest handling.
- Enhanced chat run service contract tests to ensure proper handling of pending digests during retraction.
- Updated llm presets contract tests to reflect changes in preset provider options and model handling.
- Improved workbench model selection tests to ensure correct behavior with preset catalogs.
- Added checks for app update publish configuration to include preset models catalog URL.
- Refactored e2e tests for workbench result application to streamline visibility checks.
- Updated harness backend tests to utilize UUID for run IDs and improve context handling.
2026-09-11 11:18:12 +08:00