Skip to content

Commit a967bd4

Browse files
ericcurtinCopilot
andauthored
Update cmd/cli/commands/run.go
Co-authored-by: Copilot <[email protected]>
1 parent 51f035a commit a967bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/cli/commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func generateInteractiveBasic(cmd *cobra.Command, desktopClient *desktop.Client,
266266

267267
// Create a cancellable context for the chat request
268268
// This allows us to cancel the request if the user presses Ctrl+C during response generation
269-
chatCtx, cancelChat := context.WithCancel(context.Background())
269+
chatCtx, cancelChat := context.WithCancel(cmd.Context())
270270

271271
// Set up signal handler to cancel the context on Ctrl+C
272272
sigChan := make(chan os.Signal, 1)

0 commit comments

Comments
 (0)