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 1a29bc9612
commit b483e7e918
14 changed files with 295 additions and 96 deletions

View File

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