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>
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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.
- 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.
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>
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.