Skip to content

Commit c0e5668

Browse files
ericcurtinCopilot
andauthored
Update cmd/cli/commands/run.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0c13915 commit c0e5668

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/cli/commands/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func generateInteractiveWithReadline(cmd *cobra.Command, desktopClient *desktop.
206206

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

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

0 commit comments

Comments
 (0)