fix: handle multi-file tool diffs safely
Split multi-file patches before diff rendering Fixed hook dependency lint warnings
This commit is contained in:
@@ -136,7 +136,7 @@ export function GitHubIssuePickerDialog({
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
}, [github, githubAuthChecked, githubAuthStatus, projectDirectory]);
|
||||
}, [github, githubAuthChecked, githubAuthStatus, projectDirectory, t]);
|
||||
|
||||
const loadMore = React.useCallback(async () => {
|
||||
if (!projectDirectory) return;
|
||||
|
||||
@@ -126,7 +126,7 @@ export function GitHubPrPickerDialog({
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
}, [github, githubAuthChecked, githubAuthStatus, projectDirectory]);
|
||||
}, [github, githubAuthChecked, githubAuthStatus, projectDirectory, t]);
|
||||
|
||||
const loadMore = React.useCallback(async () => {
|
||||
if (!projectDirectory) return;
|
||||
|
||||
@@ -618,6 +618,7 @@ export function NewWorktreeDialog({
|
||||
resolveDefaultAgentName,
|
||||
resolveDefaultModelSelection,
|
||||
resolveDefaultVariant,
|
||||
t,
|
||||
]);
|
||||
|
||||
// Get current state based on mode
|
||||
@@ -788,6 +789,7 @@ export function NewWorktreeDialog({
|
||||
validation.touched,
|
||||
validationAbortController,
|
||||
isCreating,
|
||||
t,
|
||||
]);
|
||||
|
||||
// Extract branch name for dependency array
|
||||
|
||||
Reference in New Issue
Block a user