This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Commit 9555a03
authored
Fix copilot secret unredaction (#1108)
The copilot provider always sends `cleanup_sensitive` set to `False` as it
manages the context itself. On streams where `finish_stream` was set to
`False` as well, we would have yielded the rest of the context buffer though
which would break secret unredaction.
To reproduce, ask Copilot to make a simple modification in a file
containing secrets so that it's forced to print the secrets back to you.1 parent 4abe98a commit 9555a03
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| |||
0 commit comments