Improve: copilot: test experience - #100
Merged
Merged
Conversation
Lei Qu (quge009)
commented
Oct 15, 2025
Contributor
- smoothing test experience
- Frontend
- for development env, start the client at localhost (for easier test)
- for production env, start the client at relative api (for flexible deployment)
- Backend
- for AGENT_LOCAL mode, enable Cross-Origin Resource Sharing (for easier test)
- for NON_AGENT_LOCAL mode, disable Cross-Origin Resource Sharing (for security)
- add multi-user test scenraio
- add new npm test command template to start 2 clients with two different user names at two different ports
Lei Qu (quge009)
temporarily deployed
to
auto-test
October 15, 2025 21:40 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR improves the test experience for the copilot chat system by adding environment-specific configurations for easier development and testing. The changes enable different backend URLs and CORS settings based on the environment, and add support for multi-user testing scenarios.
Key changes include:
- Environment-aware configuration for frontend and backend communication
- Conditional CORS enabling for local development
- Multi-user testing setup with new npm scripts
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/copilot-chat/src/requirements.txt | Adds flask-cors dependency for CORS support |
| src/copilot-chat/src/copilot_agent/utils/authentication.py | Adds "dev.eva" as an additional test user |
| src/copilot-chat/src/copilot_agent/copilot_service.py | Implements conditional CORS enabling for local development |
| contrib/copilot-plugin/src/index.tsx | Enables development mode with environment-based user configuration |
| contrib/copilot-plugin/src/app/ChatHistory.tsx | Adds environment-aware backend URL configuration |
| contrib/copilot-plugin/src/app/ChatBox.tsx | Adds environment-aware backend URL configuration |
| contrib/copilot-plugin/package.json | Adds multi-user test scripts for different ports |
| contrib/copilot-plugin/README.md | Documents the new multi-user test commands |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Lei Qu (quge009)
temporarily deployed
to
auto-test
October 15, 2025 21:50 — with
GitHub Actions
Inactive
zhogu
approved these changes
Oct 16, 2025
Lei Qu (quge009)
requested review from
Rui Gao (hippogr) and
Yuting Jiang (yukirora)
October 16, 2025 17:14
Yuting Jiang (yukirora)
approved these changes
Oct 22, 2025
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.