Skip to content

System prompt editable#19

Merged
qduc merged 21 commits into
mainfrom
system_prompt_editable
Aug 31, 2025
Merged

System prompt editable#19
qduc merged 21 commits into
mainfrom
system_prompt_editable

Conversation

@qduc
Copy link
Copy Markdown
Owner

@qduc qduc commented Aug 30, 2025

No description provided.

qduc and others added 21 commits August 30, 2025 22:02
… shared utilities

- Moved chat proxy tests from `chat_proxy.test.js` to `chat_proxy.proxy.test.js` for better organization.
- Introduced `helpers/chatProxyTestUtils.js` to encapsulate common test setup and mock server logic.
- Updated tests to utilize the new shared utilities for creating mock upstream servers and handling requests.
- Ensured all existing test cases are preserved and function correctly in the new structure.
…th role attributes, and remove unused provider enable toggle
…debar, and RightSidebar for improved visual consistency
…e testability

- Replaced direct `node-fetch` usage with dependency-injected HTTP client in `createProvidersRouter`.
- Updated tests to use dependency injection for mocking upstream responses in provider-related API tests.
- Improved maintainability and flexibility by modularizing providers router creation.
- Suppressed migration logs during test runs to declutter test output.
- Replaced direct `node-fetch` imports with dependency-injected HTTP client for flexibility and testability.
- Updated `callLLM` and orchestration functions to accept custom HTTP client arguments.
- Refactored tests to use mocked HTTP clients, removing reliance on global `node-fetch` mocks.
- Enhanced maintainability by centralizing HTTP client configuration and improving orchestration test clarity.
- Replaced `node-fetch` with `supertest` for API request testing across all test files.
- Simplified test implementation by leveraging `supertest`'s declarative syntax.
- Updated `package-lock.json` to include `supertest` dependency.
- Improved test readability and maintainability through consistent HTTP client usage.
- Introduced new test suite for unified orchestration using `supertest` for HTTP requests.
- Verified tool calls, sequential tool handling, and iteration limits in orchestration tests.
- Added tests ensuring graceful handling of invalid tools and fallback responses.
- Improved test reliability and reduced reliance on global mocks with isolated upstream services.
- Reduced test complexity by consolidating mocks and removing unused helpers.
- Updated `iterative_orchestration.test.ts` to use minimal mocks while maintaining coverage.
- Replaced intricate test logic with focused and concise assertions.
- Removed reliance on `fireEvent` across relevant test files, enhancing consistency.
- Updated ESLint rules to allow empty `catch` blocks in specific files, permitting intentional error swallowing in tests/utilities.
- Expanded ESLint configuration to include `test_utils/**/*.js` for proper linting.
- Fixed inconsistent formatting in `iterative_orchestration.test.js`, ensuring cleaner syntax and alignment.
- Fixed inconsistent spacing and indentation across `ModelSelector.tsx` for cleaner code structure.
- Replaced inline arrow function with named function `CodeRenderer` in `Markdown.tsx` for clarity.
- Simplified inline code styling logic and ensured proper conditional calls for hooks.
- Removed redundant comments and improved readability in Markdown renderer.
- Introduced socket tracking in `chatProxyTestUtils` to manage open connections during tests.
- Ensured proper cleanup of lingering sockets to prevent handle leaks on server shutdown.
- Updated `withServer` utility to include socket management for consistency and reliability.
- Separated `backend` and `frontend` into distinct jobs for isolation and clarity.
- Added a new `check-results` job to ensure both `backend` and `frontend` jobs succeed before proceeding.
- Adjusted cache dependency paths to align with individual jobs for improved efficiency.
…source cleanup

Co-authored-by: qduc <11575015+qduc@users.noreply.github.com>
…ff440f91ee72

Fix open handles keeping Jest from exiting in iterative_orchestration.test.js
@qduc qduc merged commit 0caf388 into main Aug 31, 2025
3 checks passed
@qduc qduc deleted the system_prompt_editable branch August 31, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants