feat(walkthrough): stop an in-flight change walkthrough generation

Add DELETE /api/change-walkthroughs/:sessionId to cancel the generation for a session and source. The service removes the in-flight entry, persists the partial walkthrough, and aborts a per-generation signal threaded through model resolution and every model call. Cancellation is not recorded as a failure and leaves the remaining stops pending. A Stop button in the walkthrough chrome calls the new endpoint.
This commit is contained in:
Chris Scott committed 2026-10-10 17:48:14 +00:00
1 parent 2d134d9de7
commit 0752ebf360
12 files changed
+334 -21

No files matched your search

@@ -28,6 +28,7 @@ vi.mock('@/components/session/ChangesWalkthroughSheet', () => ({
ChangesWalkthroughNav: () => null,
ChangesWalkthroughRegenerate: () => null,
ChangesWalkthroughSourcePicker: () => null,
ChangesWalkthroughStop: () => null,
ChangesWalkthroughView: () => <div>walkthrough-tool</div>,
}))
@@ -9,6 +9,7 @@ import {
ChangesWalkthroughProvider,
ChangesWalkthroughRegenerate,
ChangesWalkthroughSourcePicker,
ChangesWalkthroughStop,
ChangesWalkthroughView,
type WalkthroughSourceRequest,
} from '@/components/session/ChangesWalkthroughSheet'
@@ -172,6 +173,7 @@ export function ToolSidePanel({
{activeTool === 'walkthrough' ? (
<>
<ChangesWalkthroughSourcePicker />
<ChangesWalkthroughStop />
<ChangesWalkthroughRegenerate />
<ChangesWalkthroughNav />
</>