chrome-devtools-mcp icon indicating copy to clipboard operation
chrome-devtools-mcp copied to clipboard

bug: Dialog default value displays message instead of defaultValue

Open mithun50 opened this issue 1 year ago • 1 comments

Description of the bug

Bug Description

In McpResponse.ts, the dialog information display shows dialog.message() twice instead of showing the actual default value.

Location

File: src/McpResponse.ts Line: 196

Current Behavior

${dialog.type()}: ${dialog.message()} (default value:
${dialog.message()})

This displays the dialog message as both the message AND the
 default value, which is incorrect.

Expected Behavior

${dialog.type()}: ${dialog.message()} (default value:
${dialog.defaultValue()})

Should use dialog.defaultValue() to display the actual default value of the dialog.

Example

Current output: prompt: Enter your name (default value: Enter your name)

Expected output: prompt: Enter your name (default value: John Doe)

Impact

  • Severity: Minor
  • User Impact: Confusing UX - users see incorrect information about dialog default values
  • Functionality: Does not break functionality, but displays misleading information

mithun50 avatar Oct 13 '25 07:10 mithun50

If you guys assign this issue to me I can work on it

mithun50 avatar Oct 13 '25 07:10 mithun50