fix: simplify walkthrough prompt requests (#1660)

* fix: simplify walkthrough prompt requests

* fix: address walkthrough review feedback
This commit is contained in:
José Almeida
2026-07-10 16:04:12 +01:00
committed by GitHub
parent 78d1339413
commit b277dcdcdf
19 changed files with 142 additions and 303 deletions
@@ -169,15 +169,12 @@ function persistAutoMarkSetting(checked: boolean) {
updateUserSettings(payload, { cache: "no-store" }).catch(() => {});
}
function useReviewWalkthroughRequest(
activeSessionId: string | null | undefined,
allFiles: ReviewFile[],
) {
function useWalkthroughRequest(activeSessionId: string | null | undefined, allFiles: ReviewFile[]) {
const activeTaskId = useAppStore((s) => s.tasks.activeTaskId);
return useRequestChangesWalkthrough({
taskId: activeTaskId,
sessionId: activeSessionId,
files: allFiles,
ready: allFiles.length > 0,
});
}
@@ -485,7 +482,7 @@ const TaskChangesPanel = memo(function TaskChangesPanel({
handleToggleAutoMark,
handleFixComments,
} = useChangesActions(activeSessionId, allFiles, wordWrapProp);
const handleRequestWalkthrough = useReviewWalkthroughRequest(activeSessionId, allFiles);
const handleRequestWalkthrough = useWalkthroughRequest(activeSessionId, allFiles);
const { visibleFiles, visibleFileRefs, reviewedCount, totalCount, progressPercent } =
useVisibleDiffState({
allFiles,