| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/pull/:id/files/:range(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:648d949f-5034-34f1-4888-6764ae5ed0ad |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A250:1A7505:5D3177:7C90A9:6AEDBD66 |
| html-safe-nonce | 4ab3254c16fb9816159fc5862cf172b673b4954fbb251848ba4146bede996b7f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjUwOjFBNzUwNTo1RDMxNzc6N0M5MEE5OjZBRURCRDY2IiwidmlzaXRvcl9pZCI6IjU4OTM2Njk1MzU0MzEzNzYyMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c1217de60f4e8629caf99e837367a5b255f37893193460d282b7f5c0769aa6d2 |
| hovercard-subject-tag | pull_request:4277597220 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| twitter:image | https://avatars.githubusercontent.com/u/5370798?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5370798?s=400&v=4 |
| og:image:alt | Fixes #450
Problem
When an agent run is cancelled while MCP clients are still being created or while client.tools() is in flight, the handler continued into tool discovery and/or model streaming af... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1eb5f7cedbc707472687eab1a30e6c4619c00791815622ceaba9694eb161930f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/deepnote/deepnote git https://github.com/deepnote/deepnote.git |
| octolytics-dimension-user_id | 45339858 |
| octolytics-dimension-user_login | deepnote |
| octolytics-dimension-repository_id | 1066509034 |
| octolytics-dimension-repository_nwo | deepnote/deepnote |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1066509034 |
| octolytics-dimension-repository_network_root_nwo | deepnote/deepnote |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f31f9c89203c022acdb651c34ae048cf41764208 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepnote%2Fdeepnote%2Fpull%2F457%2Ffiles%2Fb1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepnote%2Fdeepnote%2Fpull%2F457%2Ffiles%2Fb1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=deepnote%2Fdeepnote |
| Reload | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| Reload | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| Reload | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| deepnote | https://github.com/deepnote |
| deepnote | https://github.com/deepnote/deepnote |
| Code | https://github.com/deepnote/deepnote |
| Issues14 (14) | https://github.com/deepnote/deepnote/issues |
| Pull requests24 (24) | https://github.com/deepnote/deepnote/pulls |
| Discussions | https://github.com/deepnote/deepnote/discussions |
| Actions | https://github.com/deepnote/deepnote/actions |
| Security and quality | https://github.com/deepnote/deepnote/security |
| Insights | https://github.com/deepnote/deepnote/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fdeepnote%2Fdeepnote%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fdeepnote%2Fdeepnote%2Fissues%2Fnew%2Fchoose |
| tkislan | https://github.com/tkislan |
| main | https://github.com/deepnote/deepnote/tree/main |
| cursor/avoid-mcp-tool-discovery-after-cancel-7f81 | https://github.com/deepnote/deepnote/tree/cursor/avoid-mcp-tool-discovery-after-cancel-7f81 |
|
Conversation
9
| https://github.com/deepnote/deepnote/pull/457 |
|
Commits
5
| https://github.com/deepnote/deepnote/pull/457/commits |
|
Checks
20
| https://github.com/deepnote/deepnote/pull/457/checks |
|
Files changed
| https://github.com/deepnote/deepnote/pull/457/files |
| Please reload this page | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
|
fix(runtime-core): avoid MCP tool discovery after agent cancellation (#450)
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#top |
|
Show all changes
5 commits
| https://github.com/deepnote/deepnote/pull/457/files |
|
3175207
feat(runtime-core): forward abort signal to agent block execution
tkislan Aug 14, 2026
| https://github.com/deepnote/deepnote/pull/457/commits/31752078909a12b26bc429387eff08cb567f5873 |
|
b1ec9db
test(runtime-core): add abort guards and signal forwarding tests for …
tkislan Aug 14, 2026
| https://github.com/deepnote/deepnote/pull/457/commits/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
|
8e08f16
refactor(runtime-core): tighten abort signal docs and tests
tkislan Aug 27, 2026
| https://github.com/deepnote/deepnote/pull/457/commits/8e08f16a6814f8652eeee6e2aa26d711d8eae1fc |
|
6c08710
test(runtime-core): pin abort precedence over MCP startup failure
tkislan Aug 27, 2026
| https://github.com/deepnote/deepnote/pull/457/commits/6c0871017c82bd1020a256c2bbcdc476b594c416 |
|
07ac0d1
Merge branch 'main' into cursor/avoid-mcp-tool-discovery-after-cancel…
tkislan Aug 28, 2026
| https://github.com/deepnote/deepnote/pull/457/commits/07ac0d1746f42d90bb04a3ba4c4339c5dc53aab5 |
|
Clear filters
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| Please reload this page | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
| Please reload this page | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
|
README.md
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-1c89fe77575a901793d9b914d741b3393dc48162a2960b6f940d6018a4b13f41 |
|
agent-handler.ts
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-12157a650aa515e0db0ec6087599ad868f33fc1a1af2bf32c7242e1c1219004f |
|
execute-agent-block.test.ts
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-aa15f6bbe9e7ae933cb339a6dd2ed7618c50828de9c5a2fc5584bbb52fb534a7 |
|
execution-engine.test.ts
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-0b627d37726333e896c042864adff1322f8bb6d41faa228b1a5f357d1ce805c0 |
|
execution-engine.ts
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-a98a106038f750a12d33bc3ad1423bcbe1a622f45ebff6a7655e10ed0b4489ed |
|
| https://github.com/deepnote/deepnote/blob/main/.github/CODEOWNERS#L2 |
| packages/runtime-core/README.md | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-1c89fe77575a901793d9b914d741b3393dc48162a2960b6f940d6018a4b13f41 |
|
View file
| https://github.com/deepnote/deepnote/blob/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1/packages/runtime-core/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/deepnote/deepnote/pull/457/files/{{ revealButtonHref }} |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-1c89fe77575a901793d9b914d741b3393dc48162a2960b6f940d6018a4b13f41 |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-1c89fe77575a901793d9b914d741b3393dc48162a2960b6f940d6018a4b13f41 |
|
| https://github.com/deepnote/deepnote/blob/main/.github/CODEOWNERS#L2 |
| packages/runtime-core/src/agent-handler.ts | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-12157a650aa515e0db0ec6087599ad868f33fc1a1af2bf32c7242e1c1219004f |
|
View file
| https://github.com/deepnote/deepnote/blob/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1/packages/runtime-core/src/agent-handler.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/deepnote/deepnote/pull/457/files/{{ revealButtonHref }} |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-12157a650aa515e0db0ec6087599ad868f33fc1a1af2bf32c7242e1c1219004f |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-12157a650aa515e0db0ec6087599ad868f33fc1a1af2bf32c7242e1c1219004f |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-12157a650aa515e0db0ec6087599ad868f33fc1a1af2bf32c7242e1c1219004f |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-12157a650aa515e0db0ec6087599ad868f33fc1a1af2bf32c7242e1c1219004f |
|
| https://github.com/deepnote/deepnote/blob/main/.github/CODEOWNERS#L2 |
| packages/runtime-core/src/execute-agent-block.test.ts | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-aa15f6bbe9e7ae933cb339a6dd2ed7618c50828de9c5a2fc5584bbb52fb534a7 |
|
View file
| https://github.com/deepnote/deepnote/blob/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1/packages/runtime-core/src/execute-agent-block.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/deepnote/deepnote/pull/457/files/{{ revealButtonHref }} |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-aa15f6bbe9e7ae933cb339a6dd2ed7618c50828de9c5a2fc5584bbb52fb534a7 |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-aa15f6bbe9e7ae933cb339a6dd2ed7618c50828de9c5a2fc5584bbb52fb534a7 |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-aa15f6bbe9e7ae933cb339a6dd2ed7618c50828de9c5a2fc5584bbb52fb534a7 |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-aa15f6bbe9e7ae933cb339a6dd2ed7618c50828de9c5a2fc5584bbb52fb534a7 |
|
| https://github.com/deepnote/deepnote/blob/main/.github/CODEOWNERS#L2 |
| packages/runtime-core/src/execution-engine.test.ts | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-0b627d37726333e896c042864adff1322f8bb6d41faa228b1a5f357d1ce805c0 |
|
View file
| https://github.com/deepnote/deepnote/blob/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1/packages/runtime-core/src/execution-engine.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/deepnote/deepnote/pull/457/files/{{ revealButtonHref }} |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-0b627d37726333e896c042864adff1322f8bb6d41faa228b1a5f357d1ce805c0 |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-0b627d37726333e896c042864adff1322f8bb6d41faa228b1a5f357d1ce805c0 |
|
| https://github.com/deepnote/deepnote/blob/main/.github/CODEOWNERS#L2 |
| packages/runtime-core/src/execution-engine.ts | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-a98a106038f750a12d33bc3ad1423bcbe1a622f45ebff6a7655e10ed0b4489ed |
|
View file
| https://github.com/deepnote/deepnote/blob/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1/packages/runtime-core/src/execution-engine.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/deepnote/deepnote/pull/457/files/{{ revealButtonHref }} |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-a98a106038f750a12d33bc3ad1423bcbe1a622f45ebff6a7655e10ed0b4489ed |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-a98a106038f750a12d33bc3ad1423bcbe1a622f45ebff6a7655e10ed0b4489ed |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-a98a106038f750a12d33bc3ad1423bcbe1a622f45ebff6a7655e10ed0b4489ed |
|
| https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1#diff-a98a106038f750a12d33bc3ad1423bcbe1a622f45ebff6a7655e10ed0b4489ed |
| Please reload this page | https://github.com/deepnote/deepnote/pull/457/files/b1ec9dbf6bcf2dbf3f1bfff66f3f4433e29596c1 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |