user-feedback icon indicating copy to clipboard operation
user-feedback copied to clipboard

“Redaction” mechanism in code editing tools causing issues with `Authorization` headers

Open coreh opened this issue 1 year ago • 5 comments

Hey there 👋 I've been trying out agent mode for a couple of web projects for the last few days, really impressed with the quality so far.

Just hit an issue: There seems to be some overeager/naive regexp-based redaction mechanism (perhaps to prevent the model from directly adding credentials in generated code?) that's making edits involving Authorization: HTTP headers fail with a ********* string.

Image Image

This causes the model to get confused/stuck and not be able to make any progress in an otherwise well-behaved session.

coreh avatar May 27 '25 00:05 coreh

Hi @coreh ! This issue is related to Visual Studio Code's Agent Mode. Would you mind opening an issue in https://github.com/microsoft/vscode-copilot ?

nhu-do avatar May 27 '25 20:05 nhu-do

Hey @nhu-do, 👋 thanks for the response

These screenshots are from a copilot agent session here on Github, initiated by assigning an issue to @copilot. I assumed this was the right repo... Is the underlying mechanism/MCP implementation handled by VSCode's agent mode repo?

coreh avatar May 28 '25 02:05 coreh

My apologies @coreh! I misread your initial message, as there's been some confusion around agent mode and coding agent. This is the right repository. I will submit this ticket internally for our team's triage. Thank you for flagging this and for your patience!

nhu-do avatar May 28 '25 17:05 nhu-do

Oh yeah, my bad as well, I didn't even notice I used the wrong name because they are so similar 😅

Sorry for the confusion and thanks

coreh avatar May 29 '25 01:05 coreh

No problem! A few questions as we dig more into this:

Does the code outputted by the agent reflect the issues shown in the session logs? Curious to understand what secrets showed up to better understand if it was intentional or not. Would you be able to share the logs with us to take a deeper look?

nhu-do avatar May 29 '25 16:05 nhu-do