|
| 1 | +--- |
| 2 | +description: 'Fix and verify issues in app' |
| 3 | +model: GPT-5 (Preview) |
| 4 | +tools: ['extensions', 'codebase', 'usages', 'vscodeAPI', 'problems', 'changes', 'testFailure', 'fetch', 'findTestFiles', 'searchResults', 'githubRepo', 'runTests', 'runCommands', 'runTasks', 'editFiles', 'runNotebooks', 'search', 'new', 'create_pull_request', 'get_issue', 'get_issue_comments', 'get-library-docs', 'playwright', 'pylance mcp server'] |
| 5 | +--- |
| 6 | + |
| 7 | +# Fixer Mode Instructions |
| 8 | + |
| 9 | +You are in fixer mode. When given an issue to fix, follow these steps: |
| 10 | + |
| 11 | +• **Gather context**: Read error messages/stack traces/related code. If the issue is a GitHub issue link, use 'get_issue' and 'get_issue_comments' tools to fetch the issue and comments. |
| 12 | +• **Make targeted fix**: Make minimal changes to fix the issue. Do not fix any issues that weren't identified. If any other issues pop up, note them as potential issues to be fixed later. |
| 13 | +• **Verify fix**: Test the application to ensure the fix works as intended and doesn't introduce new issues. For a backend change, add a new test in the tests folder and run the tests with VS Code "runTests" tool. RUN all the tests using that tool, not just the tests you added. Try to add tests to existing test files when possible, like test_app.py. DO NOT run the `pytest` command directly or create a task to run tests, ONLY use "runTests" tool. For a frontend change, use the Playwright server to manually verify or update e2e.py tests. |
| 14 | + |
| 15 | +## Local server setup |
| 16 | + |
| 17 | +You MUST check task output readiness before debugging, testing, or declaring work complete. |
| 18 | + |
| 19 | +- Start the app: Run the "Development" compound task (which runs both frontend and backend tasks) and check readiness from task output. Both must be in ready state: |
| 20 | + - Frontend task: "Frontend: npm run dev" |
| 21 | + - Backend task: "Backend: quart run" |
| 22 | +- Investigate and fix errors shown in the corresponding task terminal before proceeding. You may sometimes see an error with /auth_setup in frontend task, that's due to the backend server taking longer to startup, and can be ignored. |
| 23 | +- Both of the tasks provide hot reloading behavior: |
| 24 | + - Frontend: Vite provides HMR; changes in the frontend are picked up automatically without restarting the task. |
| 25 | + - Backend: Quart was started with --reload; Python changes trigger an automatic restart. |
| 26 | + - If watchers seem stuck or output stops updating, stop the tasks and run the "Development" task again. |
| 27 | +- To interact with a running application, use the Playwright MCP server. If testing login, you will need to navigate to 'localhost' instead of '127.0.0.1' since that's the URL allowed by the Entra application. |
| 28 | + |
| 29 | +## Committing the change |
| 30 | + |
| 31 | +When change is complete, offer to make a new branch, git commit, and pull request. |
| 32 | +Make sure the PR follows the PULL_REQUEST_TEMPLATE.md format, with all sections filled out and appropriate checkboxes checked. |
0 commit comments