mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 00:05:51 +00:00
fix: 修复 PowerShellTool.isSearchOrReadCommand 在 input 为 undefined 时崩溃的问题
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -421,7 +421,7 @@ export const PowerShellTool = buildTool({
|
|||||||
isSearch: boolean
|
isSearch: boolean
|
||||||
isRead: boolean
|
isRead: boolean
|
||||||
} {
|
} {
|
||||||
if (!input.command) {
|
if (!input?.command) {
|
||||||
return { isSearch: false, isRead: false }
|
return { isSearch: false, isRead: false }
|
||||||
}
|
}
|
||||||
return isSearchOrReadPowerShellCommand(input.command)
|
return isSearchOrReadPowerShellCommand(input.command)
|
||||||
|
|||||||
Reference in New Issue
Block a user