tests: P0 block (chat, session, signed links, settings)#29
Merged
Endorpheen merged 2 commits intomainfrom Nov 4, 2025
Merged
Conversation
Backend improvements: - Add comprehensive integration tests for chat service (test_chat_service.py) - OpenRouter API key override functionality - AgentRouter provider arguments passing - Tool failure handling with API_ERROR_GENERATING_RESPONSE marker - Add unit tests for Session manager (test_session_manager.py) - Token issuance, verification, expiration handling - Legacy session compatibility and origin validation - 29 test cases with edge cases and error conditions - Add unit tests for Signed links (test_signed_links.py) - Link generation, validation, signature verification - URL encoding, expiration, and malformed input handling - 20 test cases covering all failure modes Frontend improvements: - Add AgentRouter fallback logic tests (agentRouterFallback.test.ts) - 16 unit tests for 400/404 fallback behavior - Model input type switching logic - API response handling and provider switching - Add dedicated test runner for DOM tests (scripts/run-dom-tests.mjs) - Install testing dependencies (@testing-library/*, jsdom) Infrastructure: - Configure local UV cache (.cache/uv) for consistent test runs - Fix test compatibility issues with proper mocking - Update TEST_GAPS.md with completed P0 scenarios - Improve backend coverage from 50% to 57% All tests passing: - Backend: 67 tests passing, 57% coverage - Frontend: 19 tests passing across unit and DOM suites 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's covered
Backend (67 tests, 57% coverage)
test_chat_service.py- 3 testsAPI_ERROR_GENERATING_RESPONSEmarkertest_session_manager.py- 29 tests (89% module coverage)test_signed_links.py- 20 tests (97% module coverage)Frontend (19 tests)
agentRouterFallback.test.ts- 16 testssession.test.ts- 3 tests (existing)Infrastructure
Test commands
All tests passing without production code changes.
🤖 Generated with Claude Code