mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 05:45:51 +00:00
feat: 全部类型问题解决
This commit is contained in:
@@ -241,17 +241,17 @@ export async function processUserInput({
|
||||
|
||||
// TODO: Clean this up
|
||||
if (hookResult.message) {
|
||||
switch (hookResult.message.attachment.type) {
|
||||
switch (hookResult.message.attachment!.type) {
|
||||
case 'hook_success':
|
||||
if (!hookResult.message.attachment.content) {
|
||||
if (!hookResult.message.attachment!.content) {
|
||||
// Skip if there is no content
|
||||
break
|
||||
}
|
||||
result.messages.push({
|
||||
...hookResult.message,
|
||||
attachment: {
|
||||
...hookResult.message.attachment,
|
||||
content: applyTruncation(hookResult.message.attachment.content as string),
|
||||
...hookResult.message.attachment!,
|
||||
content: applyTruncation(hookResult.message.attachment!.content as string),
|
||||
},
|
||||
} as AttachmentMessage)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user