Skip to content

Commit 5de73f2

Browse files
Merge main into feature/historyV2
2 parents d3cf2f9 + e4ce124 commit 5de73f2

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "remove findings message from chat even when all issues are ignored"
4+
}

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -682,14 +682,11 @@ class BrowserConnector(
682682
CodeWhispererConstants.CodeAnalysisScope.AGENTIC
683683
)
684684
CodeWhispererCodeScanManager.getInstance(project).showCodeScanUI()
685-
686-
// Remove findings messages from response payload
687-
val rootNode = serializer.objectMapper.readTree(responsePayload) as ObjectNode
688-
rootNode.remove("additionalMessages")
689-
return serializer.objectMapper.writeValueAsString(rootNode)
690685
}
691-
692-
return responsePayload
686+
// Remove findings messages from response payload
687+
val rootNode = serializer.objectMapper.readTree(responsePayload) as ObjectNode
688+
rootNode.remove("additionalMessages")
689+
return serializer.objectMapper.writeValueAsString(rootNode)
693690
} catch (e: Exception) {
694691
LOG.error(e) { "Failed to parse findings message" }
695692
return responsePayload

0 commit comments

Comments
 (0)