Commit Graph
633 Commits
Author SHA1 Message Date
hy 1275700fd1 fix: update Tooltip behavior to conditionally control visibility 2026-07-22 18:41:47 +08:00
Yoan Huang 4392e65fa6 feat: enhance EmbeddingService error handling and add unit tests for embedding functionality 2026-07-22 10:54:49 +08:00
Yoan Huang 15188b6b76 feat: implement graceful shutdown handling and improve workspace loading logic 2026-07-22 09:55:52 +08:00
Yoan Huang 786a9cfc91 Refactor E2E tests to improve resource management and cleanup
- Introduced E2EResourceScope for managing resources during E2E tests.
- Updated test cases to register resources and handle disposal in a structured manner.
- Enhanced error handling during resource disposal to capture and report errors.
- Modified workspace setup functions to ensure proper cleanup after tests.
- Adjusted imports and added necessary utility functions for resource management.
2026-07-21 22:56:50 +08:00
hy 8932e52a69 fix: restore renderer startup and add free AI key entry 2026-07-21 19:19:06 +08:00
hy 832b3ff561 feat: add support for additional document and presentation file types in attachment handling 2026-07-21 18:34:11 +08:00
hy 8d29d78b96 feat(tests): enhance unit and e2e tests for workbench functionality
- Update embedding preflight failure handling in ai-run-service tests to hide underlying errors.
- Refactor app update publish config tests to improve readability and structure, ensuring correct behavior for direct update feeds and NSIS installs.
- Add tests for unsupported attachment formats in attachment service, ensuring no files are written for invalid formats.
- Introduce new tests for WorkbenchComposer keyboard interactions, validating Enter and Shift+Enter behavior.
- Implement feedback tests for model settings panel, ensuring proper error handling and progress restoration for vector models.
- Create e2e tests for session management, including delete confirmation and initial session creation, ensuring correct UI behavior and state management.
- Validate help entry functionality in Workbench, ensuring it opens the official manual without altering session routes.
2026-07-21 12:28:37 +08:00
hy 3683f8b82f feat: enhance reference visuals to support PPT file types and update related tests 2026-07-21 10:40:08 +08:00
hy 8b1b619e04 feat: implement workspace knowledge cache with hit/miss tracking and update related tests 2026-07-20 19:26:56 +08:00
hy 5121702a37 feat: implement terminal environment and platform adapters for macOS and Windows
- Add TerminalEnvironment to manage environment variables for terminal sessions.
- Create MacTerminalAdapter and WindowsTerminalAdapter to handle platform-specific terminal commands and behaviors.
- Introduce TerminalProtocol for structured communication between the terminal and the application.
- Implement tests for terminal platform adapters, ensuring correct handling of UTF-8 and command execution.
- Remove deprecated Windows PowerShell command encoding function.
2026-07-20 15:47:45 +08:00
hy 2de70f403f feat: enhance error handling and user feedback across application
- Introduced `normalizeUserFacingError` utility to standardize error messages for users, improving clarity and consistency.
- Updated `AppUpdateProvider` to utilize the new error normalization for update-related messages.
- Enhanced `ChatPage` to format run failure messages, providing more context to users.
- Created a new utility file for user-facing error normalization.
- Updated types to include structured output capabilities for models.
- Added tests for user-facing error normalization and model selection behavior.
- Implemented end-to-end tests to validate model selection and error handling in the workbench.
2026-07-20 12:50:38 +08:00
hy f84d9b98fb fix(i18n): improve workspace requirement hint message for clarity 2026-07-20 10:47:35 +08:00
Yoan Huang fc73b28a62 Merge branch 'codex/docdocxread-2' 2026-07-19 20:37:49 +08:00
Yoan Huang 541bbc3100 feat(ai): add support for legacy .doc file handling and associated decision hints 2026-07-19 20:37:03 +08:00
Yoan Huang 7716fa295c Refactor code structure for improved readability and maintainability 2026-07-19 17:02:42 +08:00
Yoan Huang c3c1570b4c Merge branch 'codex/ppt-image-bugfix' 2026-07-19 14:54:04 +08:00
Yoan Huang 03df1534c2 fix(ppt): update PPT diff handling to use SVG format and adjust related types 2026-07-19 14:53:15 +08:00
Yoan Huang 019cf0fdb7 feat(ai): implement content safety handling in brain and mouth nodes with associated tests 2026-07-19 14:00:47 +08:00
Yoan Huang 366a0d4ef7 test(ppt): ensure PPT page creation rules are compact and explicitly scoped 2026-07-19 13:20:19 +08:00
Yoan Huang a1ffbcf437 Merge branch 'codex/release-check-first' 2026-07-19 12:57:41 +08:00
Yoan Huang 0829abedbf feat(ppt): update PPT tool to support batch creation of slides and enhance HTML structure requirements
- Modify the PPT editing tool to allow multiple slides to be created in a single action using an array of HTML strings.
- Update documentation to reflect changes in the model descriptions for DOCX and PPT editing tools.
- Refactor tests to validate the new batch creation functionality and ensure compliance with updated HTML structure guidelines.
- Enhance error handling for invalid HTML pages during presentation creation.
- Remove deprecated checks for image assets and adjust image handling to allow remote images with placeholders.
- Update various test cases to align with the new functionality and ensure comprehensive coverage.
2026-07-19 12:56:28 +08:00
Yoan Huang 7354a7f923 Refactor AI test plans and improve decision hints
- Updated AI unit test plans to clarify the requirements for conversation memory persistence and document editing restrictions.
- Enhanced decision hint messages for better clarity on document editing limitations due to layout protections.
- Improved delivery guidance prompts to provide clearer instructions regarding document editing and user actions.
- Added new tests for terminal session management on Windows to ensure correct handling of current working directory during long-running commands.
- Refined E2E tests for workbench attachment handling to ensure proper interaction with native dialogs across platforms.
- Optimized user message action tests to ensure accurate attachment selection and message handling.
2026-07-19 12:54:26 +08:00
Yoan Huang f10b2d1c8d refactor: rename docxPreviewMode to documentPreviewMode for clarity 2026-07-19 11:28:06 +08:00
Yoan Huang 8adc65494a feat: add PPTX support with slide deck viewer and update sidebar version display
- Implemented PptSlideDeckViewer component for rendering PPTX slides.
- Created CustomPptxRenderer to handle PPTX file loading and rendering.
- Updated file renderers to include PPTX support.
- Enhanced sidebar to display current app version and update status.
- Added tests for version visibility during app updates.
2026-07-19 11:16:19 +08:00
Yoan Huang e693fb6ef8 Merge branch 'codex/ppt-refactor' 2026-07-19 10:03:59 +08:00
Yoan Huang a358630d1a Enhance PPT generation and testing framework
- Updated PPT slide styles in multiple test files to improve visual consistency and readability.
- Added new unit tests for live LLM configuration to ensure correct model selection based on environment variables.
- Introduced visual smoke tests for PPT rendering to validate the output of generated slides.
- Enhanced existing unit tests for PPT tools to cover new functionalities and edge cases.
- Improved error handling and validation in PPT HTML compilation to reject unsupported CSS and ensure safe area compliance.
- Updated e2e tests for PPT creation and diff interactions to validate new features and ensure proper functionality.
- Fixed model name resolution in LLM configuration to use the latest version.
- Enhanced temporary workspace creation in e2e tests with retry logic for robustness.
2026-07-19 10:02:35 +08:00
Yoan Huang 024a6aa3d9 feat: implement silent installer for Windows updates and enhance related tests 2026-07-19 09:51:36 +08:00
Yoan Huang 982aff685d feat: add browser panel menu functionality and lifecycle tests
- Implemented IPC handlers for opening and closing the browser panel menu.
- Enhanced BrowserEmbedService to manage popup menu state and interactions.
- Updated types to include BrowserPanelMenuRequest for menu operations.
- Refactored WorkbenchBrowserPanel to trigger menu actions and handle state.
- Added end-to-end tests for browser view lifecycle, ensuring proper rendering and state management during menu interactions.
2026-07-18 20:44:18 +08:00
Yoan Huang 30c9ecaeb8 feat: implement conversation memory management and update related tests 2026-07-18 17:59:56 +08:00
Yoan Huang 1fecf4da6b Refactor terminal command policies and memory management
- Updated shell syntax handling to restrict redirection to only '>'.
- Removed optional guidance from DangerousCommandRule type.
- Adjusted conversation memory constants for recent turns and summary triggers.
- Refactored conversation memory loading to include recent messages.
- Enhanced BrowserEmbedService to manage tab visibility state.
- Introduced new types for conversation memory context and compaction.
- Simplified conversation memory retrieval and compaction logic.
- Updated ChatPage component to manage content panel visibility based on workspace state.
- Improved terminal command tests to reflect new approval logic and command safety checks.
- Ensured conversation memory updates trigger correctly based on recent interactions.
2026-07-18 17:16:13 +08:00
Yoan Huang 3c17c0090d feat: implement terminal risk analysis policy and refactor command evaluation
- Introduced a new riskPolicy module to analyze terminal commands for potential risks.
- Replaced the previous safe command policy with a risk-based approach, categorizing commands into auto-allow and approval-required.
- Updated types to reflect the new risk analysis structure, including TerminalRiskReason and TerminalRiskAnalysis.
- Removed obsolete Windows readonly rules and integrated their functionality into the new risk analysis.
- Refactored terminal command handling in terminalTools and toolSpecs to utilize the new risk policy.
- Enhanced unit tests to cover the new risk analysis scenarios and ensure proper command categorization.
- Adjusted browser panel components to handle presentation states and occlusion based on the new risk policy.
2026-07-18 16:21:42 +08:00
Yoan Huang f284f4a72a feat: enhance evidence reference access handling and improve test coverage 2026-07-18 15:36:51 +08:00
Yoan Huang 4d77b144e3 feat: implement terminal command parsing and analysis
- Add shell syntax parsing for terminal commands, including tokenization and segment separation.
- Introduce types for terminal command effects and readonly command rules.
- Implement Windows-specific readonly command rules for common PowerShell commands.
- Enhance terminal command policy analysis to distinguish between read-only and mutating commands.
- Update UI components to support document preview modes for .docx files, allowing toggling between file view and diff view.
- Add tests for new terminal command policies and document editing features, ensuring proper handling of command effects and styles.
- Refactor workspace file explorer to manage expanded change groups for better user experience.
2026-07-18 15:06:37 +08:00
Yoan Huang e958a7d792 feat: add session completion acknowledgment functionality in ChatPage 2026-07-18 13:59:56 +08:00
Yoan Huang c40a7d1ea0 Refactor test documentation and improve testing structure
- Updated the test documentation in `doc/test.md` to clarify the purpose and structure of regression and unit tests, including changes to execution summaries and test file organization.
- Modified ESLint configuration in `eslint.config.mjs` to exclude specific directories and adjust rules for `.mjs` files.
- Removed unnecessary ESLint disable comments from various script files to enforce cleaner code practices.
- Introduced a new test case for image analysis in `tests/case/ai/tool/utility/image-analyze-contract.test.ts` to validate the behavior of the image recognition tool.
- Enhanced existing unit tests in `tests/case/unit/webCrawler/web-search-sidecar-retry.test.ts` and `tests/case/unit/workbench/assistant-markdown-memo.test.ts` for better reliability and clarity.
2026-07-18 13:54:43 +08:00
Yoan Huang 1a1619231e refactor: enhance settings test descriptions and improve clarity
- Updated the `settings-titlebar-drag-region` test to clarify the purpose and expected behavior of the Settings UI on Windows, emphasizing the importance of the native title bar and drag regions.
- Adjusted the `workspace / core` test descriptions for better readability and understanding of the test cases.

fix: correct text-file apply case reference in workbench tests

- Changed `file_edit` to `text_file_edit` in the workbench test plan to ensure accurate references to the editing capabilities.

feat: introduce human graph invocation configuration

- Added `HUMAN_GRAPH_INVOKE_CONFIG` to encapsulate the recursion limit for graph invocations, improving code maintainability.

refactor: streamline terminal session management

- Introduced `resolveHumanToolCallLimit` to centralize tool call limit resolution logic.
- Enhanced terminal session management with improved session closure and termination handling, ensuring proper resource cleanup.

docs: update docx and ppt tool specifications for clarity

- Simplified descriptions in `DOCX_EDIT_TOOL_SPEC` and `PPT_EDIT_TOOL_SPEC` to focus on user-facing capabilities without implementation details.

test: add unit tests for human runtime limits

- Created a new test suite to validate human runtime limits, ensuring correct defaults and configurations are applied.

test: enhance terminal tests for better output handling

- Improved terminal test cases to wait for idle states and validate output more effectively, ensuring robust testing of terminal commands.
2026-07-18 13:18:52 +08:00
Yoan Huang a7047d5bd5 Refactor test cases for DOCX and PPT tools to improve readability and maintainability
- Consolidated import statements across multiple test files for consistency.
- Standardized action structures in DOCX edit tests to use array format.
- Removed unnecessary revision reference checks in DOCX result assertions.
- Enhanced assertions in PPT tests to ensure immediate file writing and checksum validation.
- Updated test cases to reflect changes in block ID handling and session management.
- Improved error handling and messaging for invalid block ID scenarios in hand tests.
2026-07-18 12:33:45 +08:00
Yoan Huang f8d3180e9e feat: implement native window frame for Windows platform
- Introduced AppWindowFrame component to encapsulate native window controls.
- Removed WindowsTitleBar component as its functionality is now integrated into AppWindowFrame.
- Updated App component to wrap MainLayout and NotificationCenter within AppWindowFrame.
- Adjusted CSS styles to accommodate the new window frame structure and ensure proper layout.
- Enhanced ChatPage and SettingsPage to utilize the new sidebar and title bar structure.
- Updated tests to reflect changes in the window control structure and ensure proper functionality.
2026-07-18 10:44:54 +08:00
Yoan Huang 9114e111f7 feat: increase default tool call limit and add graph recursion limit; refactor prompt rendering and path handling 2026-07-18 08:42:10 +08:00
Yoan Huang 07c9dd6fcf refactor: simplify descriptions in image analysis and PPT editing tool specs 2026-07-17 22:52:10 +08:00
Yoan Huang 30b5e8ccf6 Refactor tool specifications for clarity and conciseness
- Simplified descriptions in PDF, PPT, Terminal, Text File, Utility, and Web tool specs to focus on core functionalities without excessive detail.
- Removed example sections from tool specs where applicable to streamline the prompt structure.
- Updated prompt specifications to eliminate unnecessary usage guidance and improve readability.
- Adjusted test cases to reflect changes in tool prompt contracts and ensure compliance with new specifications.
2026-07-17 22:33:30 +08:00
hy 7125f4ed65 refactor: update tool names and error handling in tests
- Renamed various tools from 'file_edit' and 'file_read' to 'text_file_edit' and 'text_file_read' for consistency.
- Updated image recognition tests to replace 'llm_recognize' with 'image_analyze'.
- Adjusted error handling in decision hints to use 'error' instead of 'diagnostic'.
- Refactored docx and ppt tool tests to reflect new naming conventions.
- Improved test descriptions for clarity and accuracy.
- Added new unit tests for tool executor error handling.
2026-07-17 19:48:59 +08:00
hy 4304cc1582 Merge branch 'codex/brain-work-runtime-prompt' 2026-07-17 19:07:37 +08:00
hy bb76859c72 refactor: update workspace runtime guidelines for script and resource management 2026-07-17 19:07:07 +08:00
hy 03cdb47b45 feat: implement macOS package size budget auditing and validation 2026-07-17 18:34:15 +08:00
hy 2342aa749e feat: add terminal environment support to runtime overrides and related tests 2026-07-17 17:20:32 +08:00
hy cd5dc9fe41 refactor: rename file write tool to file edit tool and update related functionality
- Changed references from FILE_WRITE_TOOL_SPEC to FILE_EDIT_TOOL_SPEC across the codebase.
- Updated input and output schemas to reflect the new file edit functionality.
- Modified related functions and types to accommodate the new editing capabilities.
- Adjusted tests to ensure compatibility with the renamed tool and its functionalities.
- Enhanced documentation and comments to clarify the purpose and usage of the file edit tool.
2026-07-17 16:11:39 +08:00
hy 506e0eae85 feat: add ppt read and write skills 2026-07-17 15:00:17 +08:00
hy 448fe2d251 feat: enhance terminal command execution tracking and reference handling 2026-07-17 11:40:06 +08:00
hy 4cd96edddf feat(ai): add PDF reading skill 2026-07-16 19:16:08 +08:00