Commit Graph
1660 Commits
Author SHA1 Message Date
hy 91eb0ea6a3 fix(test): align package E2E with web progress titles and cancel race
Match web progress restore to the current crawl title, and tolerate the
cancel dialog closing after the file index job already finished.
2026-09-20 19:07:34 +08:00
hy ad27aa092d release: prepare mac-v1.0.5 2026-09-20 18:47:05 +08:00
hy da3ea9599a refactor: simplify job progress titles for web indexing steps 2026-09-20 18:43:33 +08:00
hy b944da76eb refactor: enhance index update progress handling and UI feedback across settings 2026-09-20 18:41:44 +08:00
hy 041b5e7085 release: prepare mac-v1.0.5 2026-09-20 18:09:34 +08:00
hy 6d82547dc6 refactor: streamline release process guidelines and clarify user intervention points 2026-09-20 18:05:42 +08:00
hy 7c15454420 docs: require autonomous release execution except product decisions
Spell out that once the user asks to publish, engineering blockers are
fixed and continued without interruption; only product-level choices
need user input.
2026-09-20 18:03:13 +08:00
hy 1c17fcb67b fix: unblock release architecture checks for mac-v1.0.5
Move read_image thumb helpers to shared so unit tests avoid renderer
imports, and document SET-WEB-004-AC14 as deferred in settings-test.
2026-09-20 18:02:45 +08:00
hy fb3bb948a7 fix: cast read_image input paths through IpcJsonObject record
IpcJsonObject is a plain object alias, so property access needs an
explicit Record cast for typecheck:web.
2026-09-20 17:55:23 +08:00
hy 396f751e05 refactor: rename human-prefix-cache-retain-live to prefix-cache-retain-live and update related tests
- Updated test plan documentation to reflect the new naming convention for prefix cache tests.
- Added new E2E test for prefix cache retention in the Workbench UI.
- Removed obsolete human-prefix-cache-retain-live test file and integrated its logic into the new test structure.
- Adjusted release preparation script to accommodate the new test case name.
- Enhanced LLM IO record handling in the E2E testing framework to support the new test requirements.
- Updated various harness and utility functions to ensure compatibility with the new test structure and naming.
2026-09-20 17:45:55 +08:00
hy 39fc231d2a feat: enhance workspace index progress tracking and UI feedback 2026-09-20 17:24:44 +08:00
hy 7d2af03f2a feat: implement held job state for web and file index preparation 2026-09-20 17:20:43 +08:00
hy dda3ab2525 feat: enhance workspace directory refresh behavior and UI feedback 2026-09-20 17:04:49 +08:00
hy c684102c16 feat: enhance workspace index cancellation handling and UI feedback
- Updated the cancellation logic for workspace index preparation to ensure that unfinished tasks are properly tracked and reported.
- Modified the confirmation dialog to clarify that unfinished tasks will not continue indexing, while completed tasks will be retained.
- Improved the handling of job statuses to reflect the correct state after cancellation, including distinguishing between 'cancelled', 'succeeded', and 'failed' statuses.
- Added new tests to verify the behavior of cancellation after completion and ensure that the UI reflects the correct messages and states.
- Removed deprecated utility functions related to index cancellation previews to streamline the codebase.
2026-09-20 16:53:23 +08:00
hy 5225a9c100 feat: implement workspace index cancellation functionality
- Add utility functions for handling file and web index cancellation previews.
- Update selectors to include new buttons for index cancellation confirmation.
- Modify the workspace preparation logic to support cancellation and continuation of indexing jobs.
- Enhance types to accommodate new cancellation states and requests.
- Create tests to validate the cancellation behavior for both file and web indexing processes.
- Implement end-to-end tests to ensure UI reflects cancellation states and progress restoration.
2026-09-20 16:14:03 +08:00
hy 700c9c5022 feat: enhance workspace index speed functionality and testing
- Updated settings-test documentation to reflect changes in workspace index speed handling.
- Refactored index.ts to remove redundant error handling during embedding service initialization.
- Added checks in ipc handlers to prevent speed changes while an index job is running.
- Modified EmbeddingRuntimeClient to use a more descriptive process title for embedding runtime.
- Updated KnowledgeIndexSpeedControl component to improve UI responsiveness and state management.
- Created new tests for measuring index speed thread behavior during embedding processes.
- Implemented e2e tests for workspace index speed changes and ensured proper thread management.
- Removed outdated code and improved assertions in existing tests for clarity and accuracy.
2026-09-20 15:31:19 +08:00
hy 4f08aca775 feat(settings): enhance index speed control UI and update related tests 2026-09-20 14:51:58 +08:00
hy 2c7efd2a72 feat(thread-budget): enhance embedding runtime thread measurement and validation in settings tests 2026-09-20 14:44:00 +08:00
hy 23db0c8ede feat(image-preview): add image thumbnail component and utilities for read_image activity 2026-09-20 14:18:59 +08:00
hy 950e066418 feat(thread-budget): implement thread budget management and measurement for embedding sessions 2026-09-20 14:12:14 +08:00
hy 7bbbebaf7e feat(settings): enhance workspace management and indexing
- Updated `settings-test.md` to include new test cases for sequential workspace address preparation and indexing.
- Modified `workbench-test.md` to clarify restrictions on direct calls to workspace preparation methods in E2E tests.
- Revised `test.md` to establish stricter rules for backend case testing, prohibiting the use of mocks and requiring production implementations.
- Refactored IPC handlers to improve job handling and indexing speed application.
- Enhanced `EmbeddingService` to apply indexing speed settings directly.
- Added new tests for sequential workspace preparation and indexing to ensure proper job execution order.
- Introduced utility functions for adding and removing workspace directories through the settings UI in E2E tests.
2026-09-20 13:41:25 +08:00
hy b2b7910dec refactor: streamline embedding runtime configuration and testing
- Removed the 'Not' field from test plan validation to simplify requirements.
- Updated the test architecture validation script to reflect changes in test plan fields.
- Introduced new functions for handling embedding runtime environment variables and session options.
- Refactored embedding runtime process to utilize new environment parsing logic.
- Enhanced unit tests to validate the correct mapping of thread budgets and session options for different performance tiers.
- Ensured that runtime environment variables are correctly set and parsed, maintaining consistency with budget configurations.
2026-09-20 12:58:08 +08:00
hy 4fab66e1ea refactor: update knowledge test plans and related documentation
- Enhanced `knowledge-test.md` to clarify the scope and objectives of the knowledge base testing, including the introduction of `foundation` and `optimization` categories.
- Updated references in `AGENTS.md` to reflect the changes in knowledge testing documentation.
- Improved test case structure in `index-speed-thread-budget.test.ts`, `kb-indexing-blocks-search.test.ts`, and `prepare-workspaces-sequentially.test.ts` to utilize `runBackendCase` for better consistency.
- Adjusted assertions in various test cases to ensure accurate validation of expected outcomes during indexing operations.
- Modified `run-log-contract.ts` and `test-types.ts` to include 'knowledge' as a valid domain for test cases.
- Updated `workspace-prepare-refresh.e2e.test.ts` to validate index speed switching functionality during workspace preparation.
2026-09-20 12:49:43 +08:00
hy a5fce348b2 Add unit tests for workspace indexing and scanning functionality
- Implement tests for index speed thread budget mapping based on logical cores.
- Create tests for handling indexing errors during knowledge base searches.
- Add tests to ensure workspaces are prepared sequentially.
- Introduce tests for workspace index job storage and recovery from interrupted jobs.
- Implement tests for workspace scan functionality, ensuring proper indexing and file handling.
2026-09-20 12:49:34 +08:00
hy f78f3e30ed fix(doc): correct wording in knowledge test description 2026-09-20 12:34:26 +08:00
hy 5e77c7ddc6 feat(tests): add knowledge test plan and update related documentation 2026-09-20 12:31:22 +08:00
hy bb25b75058 Refactor runtime settings handling in tests
- Replace `runtimeSettingsOverride` with `streamingModeOverride` in multiple test files to streamline the configuration of LLM streaming modes.
- Update references to `aiRuntimeSettings` to use the new `appSettings` structure in relevant tests.
- Introduce new tests for workspace preparation and indexing to ensure sequential execution and proper handling of workspace jobs.
- Adjust SQLite migration tests to reflect changes in schema versioning and settings persistence.
- Modify system notification service tests to align with the updated app settings structure.
2026-09-20 12:22:32 +08:00
hy 91ad9de91c Add unit tests for knowledge retrieval, embedding errors, and vector model download services
- Implement tests for KB indexing blocks search to handle errors during indexing.
- Add tests for embedding error recognition and initialization message mapping.
- Create tests for embedding runtime contract to ensure proper request serialization.
- Introduce tests for embedding service initialization and error handling.
- Develop tests for model download source contract to validate metadata and file handling.
- Add comprehensive tests for vector download service to ensure single-task execution and proper progress reporting.
- Implement workspace knowledge cache tests to verify content isolation and statistics tracking.
2026-09-20 12:20:28 +08:00
hy fd29d03972 feat(workbench): enhance partner name handling in composer and prompts 2026-09-20 10:00:55 +08:00
Yoan Huang 142772314f fix(release): clarify evaluation process for non-impactful fixes during release 2026-09-19 11:16:48 +08:00
Yoan Huang 70118e9137 release: prepare windows-v1.0.4 2026-09-19 10:45:01 +08:00
Yoan HuangandCursor b39395fd11 fix(workbench): keep mention highlight across refetch
ArrowDown selection was reset when a late same-query mention fetch finished; clamp index instead and harden keyboard handling.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-19 10:40:03 +08:00
Yoan Huang 9e49599b68 fix(doc): update showcase section to clarify maintenance status and execution details 2026-09-19 09:39:34 +08:00
Yoan Huang 11d20c2564 release: prepare windows-v1.0.4 2026-09-19 09:27:18 +08:00
Yoan HuangandCursor 8c3f8173ad fix(test): exclude showcase from backend release gate
Showcase collection must stay on pnpm test:showcase; including it under backend polluted release:start and caused Electron launch contention.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-19 09:23:01 +08:00
hy 2f170630e2 Update test documentation for settings and workbench
- Clarified the routing for the `vector` section in settings-test.md, specifying that the page is now located at `/settings/vector` instead of the historical `/model-download`.
- Enhanced descriptions in workbench-test.md regarding file preview actions, including details on WPS refresh mechanisms and the handling of various file types.
- Updated the overall structure of test documentation in test.md to include the `showcase` category and refined the definitions of test types and execution methods.
- Ensured consistency in the language and formatting across all test plan documents.
2026-09-18 17:36:01 +08:00
hy a926aa5524 Refactor tool design and architecture documentation; update database schema details; enhance deployment instructions; improve test plan structure; modify UI style guidelines; implement partner directory cleanup in ChatRunService. 2026-09-18 17:10:49 +08:00
hy 4a73165586 Refactor tests to remove unnecessary parameters and improve readability
- Updated multiple test files to remove unused parameters in page.evaluate calls.
- Simplified function signatures in waitForPreparedWebSources and other helper functions.
- Cleaned up assertions and formatting for better clarity in unit tests.
- Removed redundant code and improved consistency across test cases.
2026-09-18 15:00:42 +08:00
hy 240ab91f7b refactor: remove unused test scripts and improve argument validation
- Removed `test:ai`, `test:settings`, and `test:workbench` scripts from package.json.
- Updated test plan documentation to reflect the removal of `test:workbench`.
- Enhanced argument parsing in release scripts to ensure required values are provided.
- Added validation for unknown arguments in release scripts.
- Improved error handling for invalid arguments in test workflow.
- Updated unit tests to cover new validation logic for release arguments.
2026-09-18 14:49:01 +08:00
hy d7e84edda9 Add showcase tests for PPT management, review, knowledge base replies, and service contracts
- Implemented `ppt-management-briefing-edit.showcase.test.ts` to test editing PPTs with AI assistance.
- Created `ppt-management-briefing-review.showcase.test.ts` for reviewing PPTs generated by AI.
- Added `xinghe-kb-reply.showcase.test.ts` to validate knowledge base replies against local documents.
- Developed `xinghe-service-contract.showcase.test.ts` to test AI responses based on PDF contract queries.
- Introduced shared utility functions in `shared.ts` for handling file operations and cost calculations.
- Updated Vitest configuration to include new test paths for showcase cases.
2026-09-18 14:33:38 +08:00
hy 203f8ab180 feat(showcase): add new tests for PPT management and knowledge base interactions
- Implemented `ppt-management-briefing-edit.showcase.test.ts` to test editing PPTs with AI assistance, including cost computation and screenshot capture.
- Created `ppt-management-briefing-review.showcase.test.ts` for reviewing PPTs, ensuring the generation of review screenshots and cost analysis.
- Added shared utility functions in `shared.ts` for handling showcase fixtures, workspace seeding, and cost computation.
- Developed `xinghe-kb-reply.showcase.test.ts` to validate knowledge base interactions, capturing screenshots of responses and ensuring correct tool usage.
- Introduced `xinghe-service-contract.showcase.test.ts` to test PDF contract inquiries, verifying unchanged source documents and capturing relevant screenshots.
- Configured Vitest for showcase tests in `vitest.showcase.config.mts`, setting appropriate timeouts and test inclusion/exclusion criteria.
2026-09-18 14:22:54 +08:00
hy 2c431406f0 feat(tests): enhance testing framework with explicit collection tasks and execution profiles
- Added `showcase` as an explicit collection task in the testing framework, distinct from product regression.
- Introduced explicit collection task rules and updated documentation to reflect changes in testing structure.
- Updated E2E testing commands to utilize `--execution-profile` for better control over test execution.
- Implemented validation to prevent the selection of certain groups (e.g., `showcase`) during release command parsing.
- Enhanced regression selection logic to allow opt-in groups for release impact assessment while rejecting disallowed groups.
- Updated related scripts and test cases to ensure compliance with new testing rules and execution profiles.
2026-09-18 13:56:30 +08:00
hy 65a03a438b release: prepare mac-v1.0.4 2026-09-18 12:39:50 +08:00
hy 5cff282d2c feat(e2e): introduce default exclude groups for E2E tests and update related scripts 2026-09-18 12:36:56 +08:00
hy 414d3759b1 release: prepare mac-v1.0.4 2026-09-18 11:55:07 +08:00
hyandCursor 4e392c8806 fix(tests): assert migration lock against publishedThrough dynamically
Hardcoded version 10 broke release:start after the lock advanced to 11.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 11:50:37 +08:00
hy 1615a21b71 fix: update CROSS_RUN_PREFIX_CACHE_MIN_RATIO to improve cache reuse consistency 2026-09-18 11:40:34 +08:00
hy b202ffa045 feat(ai): enhance live prefix cache tests to validate three-round continuity and tool history 2026-09-18 11:39:32 +08:00
hy 41040cc7de refactor(docs): streamline deployment documentation and remove redundant content 2026-09-18 11:32:59 +08:00
hy 0c34dd3ecf feat: add desktop release design and process documentation
- Introduced `design.md` to outline the constraints, storage layout, CDN/public channel, and local directory conventions for desktop releases.
- Added `release.md` detailing the release process for Windows and macOS, including tagging, candidate package creation, and COS publishing.
- Created `tencent-cdn-billing.md` to summarize billing and procurement for Tencent Cloud CDN and COS for domestic releases.
- Updated test plans in `ai-test.md` and `workbench-test.md` to reflect changes in release processes and added new tests for prefix cache retention.
- Enhanced release preparation script to assert live key configuration and run necessary live gate tests.
- Implemented a new test case for validating prefix cache retention during live interactions.
2026-09-18 11:24:54 +08:00