Skip to content

Commit b2ac384

Browse files
authored
fix: fix for merge conflict errors (#1545)
1 parent bbd0162 commit b2ac384

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

chat-client/src/client/mynahUi.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,6 @@ export const createMynahUi = (
817817
if (chatResult.body === '' && isValidAuthFollowUp) {
818818
// @ts-expect-error - type for MynahUI differs from ChatResult types so we ignore it
819819
mynahUi.addChatItem(tabId, {
820-
...(chatResultWithoutType as ChatItem),
821820
type: ChatItemType.SYSTEM_PROMPT,
822821
...chatResultWithoutTypeSummary,
823822
})

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ import {
125125
} from './constants'
126126
import { AgenticChatError, customerFacingErrorCodes, isRequestAbortedError, unactionableErrorCodes } from './errors'
127127
import { URI } from 'vscode-uri'
128-
import { AgenticChatError, customerFacingErrorCodes, isRequestAbortedError, unactionableErrorCodes } from './errors'
129128
import { CommandCategory } from './tools/executeBash'
130129
import { UserWrittenCodeTracker } from '../../shared/userWrittenCodeTracker'
131130
import { McpEventHandler } from './tools/mcp/mcpEventHandler'
@@ -962,7 +961,7 @@ export class AgenticChatController implements ChatHandlers {
962961
fsWrite: { Tool: FsWrite },
963962
executeBash: { Tool: ExecuteBash },
964963
grepSearch: { Tool: GrepSearch },
965-
fuzzySearch: { Tool: FuzzySearch },
964+
fileSearch: { Tool: FileSearch },
966965
}
967966

968967
const { Tool } = toolMap[toolUse.name as keyof typeof toolMap]
@@ -1521,7 +1520,7 @@ export class AgenticChatController implements ChatHandlers {
15211520
break
15221521

15231522
case 'fuzzySearch':
1524-
const searchPath = (toolUse.input as unknown as FuzzySearchParams).path
1523+
const searchPath = (toolUse.input as unknown as FileSearchParams).path
15251524
header = {
15261525
body: 'File Search',
15271526
status: {
@@ -1825,7 +1824,7 @@ export class AgenticChatController implements ChatHandlers {
18251824
if (toolUse.name === 'fsRead') {
18261825
currentPaths = (toolUse.input as unknown as FsReadParams)?.paths
18271826
} else {
1828-
currentPaths.push((toolUse.input as unknown as ListDirectoryParams | FuzzySearchParams)?.path)
1827+
currentPaths.push((toolUse.input as unknown as ListDirectoryParams | FileSearchParams)?.path)
18291828
}
18301829

18311830
if (!currentPaths) return

0 commit comments

Comments
 (0)