fix: disable tool approve for old claude code version

This commit is contained in:
d-kimsuon
2025-10-14 12:18:29 +09:00
parent 7c05168e4e
commit 8d592ce89b
6 changed files with 66 additions and 93 deletions

View File

@@ -32,7 +32,13 @@ export const useNewChatMutation = (
},
onSuccess: async (response) => {
onSuccess?.();
router.push(`/projects/${projectId}/sessions/${response.sessionId}`);
router.push(
`/projects/${projectId}/sessions/${response.sessionId}` +
response.userMessageId !==
undefined
? `#message-${response.userMessageId}`
: "",
);
},
});
};