-
Notifications
You must be signed in to change notification settings - Fork 46k
fix(copilot): unified MCP file tools (Read/Write/Edit) to prevent truncation data loss #12750
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
Merged
Merged
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9f0ade1
fix(copilot): unified MCP Write tool to prevent truncation data loss
majdyz e759e14
refactor(copilot): extract truncation check to shared helper, sanitiz…
majdyz 26f91fd
style(copilot): fix isort import formatting in file_tools.py
majdyz 8201877
fix(copilot): update security test for Write tool blocking, fix pre-e…
majdyz 0fa24c8
feat(copilot): unified MCP Read and Edit tools to prevent truncation …
majdyz e87111e
fix(copilot): update security test for Edit tool blocking
majdyz f913c52
fix(copilot): address review feedback on unified file tools
majdyz e4c0449
fix(copilot): add read_file truncation detection and Edit per-path lock
majdyz 7bbfbda
fix(copilot): evict per-path edit locks after use to prevent memory leak
majdyz 788c163
fix(copilot): restore required keys in Write and Read tool schemas
majdyz 59ee9ef
fix(copilot): remove required from MCP schemas to fix truncation dete…
majdyz 98f0ddd
fix(copilot): disallow built-in Read in non-E2B mode for consistency
majdyz d3a5bdb
refactor(copilot): consolidate file tools into single e2b_file_tools.py
majdyz c228b2c
fix(copilot): fix pyright bytes/bytearray type error in e2b read
majdyz ab07e55
fix(backend): allow Read tool for workspace-scoped paths (tool-result…
majdyz d7d9b5e
fix(backend): address review comments on unified file tools PR
majdyz ff32fa2
fix(backend): update test_read_builtin_blocked for workspace-scoped Read
majdyz 4ccfec5
fix(backend): use mutating annotation for E2B write/edit tools and re…
majdyz ac0d939
fix(copilot): address round-5 review — path leaks, Read partial trunc…
majdyz ae1600a
fix(copilot): rename SDK read_tool_result tool and fix path leak in e…
majdyz 90d8ae0
fix(copilot): map non-E2B file tools in permissions and fix lint form…
majdyz 1a01bb0
fix(copilot): realpath in _resolve_and_validate + asyncio.sleep(0) fo…
majdyz 53f0b39
fix(copilot): bound _edit_locks to 1000 entries with LRU eviction to …
majdyz 7792d56
fix(backend): address coderabbitai review comments on unified write tool
majdyz 318f7b8
fix(backend): update test_read_within_workspace to match current Read…
majdyz 1168a7a
fix(copilot): use file_path in E2B Write/Edit success messages to avo…
majdyz 48b9cac
fix(copilot): route relative paths to E2B sandbox in read_file, not h…
majdyz f6f72e9
fix(backend/copilot): tighten SDK tool-results access to current sess…
majdyz b6c7c49
fix(backend/copilot): update file_ref_integration test to reflect res…
majdyz 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
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.
Uh oh!
There was an error while loading. Please reload this page.