Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@graveland
Copy link
Contributor

Stop using context.Background() and use a root context that's got signal.NotifyContext() on it. This allows control-C to interrupt everything.

@graveland graveland force-pushed the brent/contexts branch 4 times, most recently from 839eaa4 to bea092c Compare October 23, 2025 17:14
graveland and others added 5 commits October 24, 2025 09:50
Stop using context.Background() and use a root context that's got
signal.NotifyContext() on it. This allows control-C to interrupt
everything.

Use the main context for the MCP handler as well
Copy link
Collaborator

@nathanjcochran nathanjcochran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment about a couple other places where we should use the new readString function, so that reading from stdin can be canceled via ctrl-c. Might want to move that readString function into the util package or something, given that we'll probably end up using it in a bunch of different places.

Other than that, this LGTM!

@graveland graveland merged commit 9a82a02 into main Oct 24, 2025
2 checks passed
@graveland graveland deleted the brent/contexts branch October 24, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants