-
Notifications
You must be signed in to change notification settings - Fork 109
feat(copilot): update message formatting and improve message box detection logic #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
35C4n0r
wants to merge
3
commits into
main
Choose a base branch
from
35C4n0r/feat-copilot-formatting-update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
112 changes: 112 additions & 0 deletions
112
lib/msgfmt/testdata/format/copilot/remove-task-tool-call/expected.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| ◐ The user wants me to build a snake game in Python. This is a | ||
| complete project that I should plan out first. Let me: | ||
|
|
||
| 1. Create a plan for building the snake game | ||
| 2. Set up the structure | ||
| 3. Implement the game | ||
| 4. Test it | ||
|
|
||
| I should start by reporting task status and creating a plan. | ||
| Since this is a new task that requires planning, I should: | ||
| 1. Report the task as "working" | ||
| 2. Create a plan.md file | ||
| 3. Set up todos in SQL | ||
| 4. Then implement | ||
|
|
||
| Let me start by reporting and exploring the current directory | ||
| structure, then creating a plan. | ||
|
|
||
| ● List directory . | ||
| └ 1 file found | ||
|
|
||
| ● Let me check if snake_game already exists: | ||
|
|
||
| ● List directory snake_game | ||
| └ 6 files found | ||
|
|
||
| ● I see there's already a snake_game folder. Let me check the | ||
| existing files: | ||
|
|
||
| ● Read snake_game/README.md | ||
| └ 97 lines read | ||
|
|
||
| ● Read snake_game/main.py | ||
| └ 229 lines read | ||
|
|
||
| ● Great! A snake game already exists. Let me check the test file | ||
| and game summary: | ||
|
|
||
| ● Read snake_game/test_game.py | ||
| └ 113 lines read | ||
|
|
||
| ● Read snake_game/GAME_SUMMARY.txt | ||
| └ 89 lines read | ||
|
|
||
| ● Perfect! The snake game is already built and complete. Let me | ||
| verify it's working by running the tests: | ||
|
|
||
| ● Run snake game unit tests | ||
| $ cd /home/coder/projects/snake_game && python3 test_game.py | ||
| └ 7 lines... | ||
|
|
||
| ● The virtual environment needs pygame installed. Let me set it | ||
| up: | ||
|
|
||
| ● Install pygame and run tests | ||
| $ cd /home/coder/projects/snake_game && source venv/bin/activate | ||
| && pip install pygame -q && python3 test_game.py | ||
| └ 16 lines... | ||
|
|
||
| ● Excellent! All tests pass. Now let me verify the game can run: | ||
|
|
||
| ● Verify game starts successfully | ||
| $ cd /home/coder/projects/snake_game && source venv/bin/activate | ||
| && timeout 3 python3 main.py 2>&1 || true | ||
| └ 3 lines... | ||
|
|
||
| ● Perfect! The game initializes successfully. Let me update you | ||
| on what's been completed: | ||
|
|
||
| ● ✅ Snake Game Complete! | ||
|
|
||
| Your Python snake game is fully built and tested. Here's what | ||
| you have: | ||
|
|
||
| 🎮 Game Features | ||
|
|
||
| - Classic snake gameplay with grid-based movement | ||
| - Collision detection (walls & self) | ||
| - Scoring system (10 points per food) | ||
| - Game over screen with restart option | ||
| - Keyboard controls (arrow keys) | ||
| - 10 FPS consistent gameplay speed | ||
|
|
||
| 📂 Project Structure | ||
|
|
||
| snake_game/ | ||
| ├── main.py - Full game implementation | ||
| ├── test_game.py - 8 passing unit tests | ||
| ├── README.md - Complete documentation | ||
| └── venv/ - Virtual environment with pygame | ||
|
|
||
| 🚀 Quick Start | ||
|
|
||
| cd /home/coder/projects/snake_game | ||
| source venv/bin/activate | ||
| python3 main.py | ||
|
|
||
| ⌨️ Controls | ||
|
|
||
| - Arrow Keys - Move snake | ||
| - R - Restart (when game over) | ||
| - ESC - Quit | ||
|
|
||
| ✅ Verification Status | ||
|
|
||
| - ✓ All 8 unit tests passing | ||
| - ✓ Game initializes and runs successfully | ||
| - ✓ Pygame installed and configured | ||
|
|
||
| Ready to play! 🐍 | ||
|
|
||
| ~/projects claude-haiku-4.5 (1x) |
16 changes: 16 additions & 0 deletions
16
lib/msgfmt/testdata/format/copilot/remove-task-tool-call/expected_tool_calls.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ● coder_report_task: Last Call | ||
| └ {"message":"Thanks for reporting!"} | ||
|
|
||
| --- | ||
| ● coder_report_task: Snake game built and verified - all tests | ||
| passing, game runs successfully | ||
| └ {"message":"Thanks for reporting!"} | ||
|
|
||
| --- | ||
| ● coder_report_task: Starting snake game project planning and | ||
| implementation | ||
| └ {"message":"Thanks for reporting!"} | ||
|
|
||
| --- | ||
| ● coder_report_task: First Call | ||
| └ {"message":"Thanks for reporting!"} |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point I think a regex might actually be simpler.