Skip to content

fix(runtime): discard model grants from cancelled Task calls - #2676

Merged
vastsa merged 3 commits into
vastsa:mainfrom
Linuxdazhao:codex/fence-cancelled-task-model-resolution-20261130
Dec 1, 2026
Merged

vastsa merged 3 commits into
vastsa:mainfrom
Linuxdazhao:codex/fence-cancelled-task-model-resolution-20261130

Conversation

@Linuxdazhao

Copy link
Copy Markdown
Contributor

Closes #2675.

Pass the Task execution signal into model resolution for explicit overrides and resumed Tasks. The resolver checks the signal before recording a grant.

The synthetic regression failed on 62532ce130a3 because the late response added a grant. The regression and both on-demand authorization tests passed on bd7b75143. The Agent Runtime TypeScript build and PR base check also passed.

Linuxdazhao and others added 3 commits November 30, 2026 20:36
The JS job failed in apps/desktop/test/file-manager-git-timeout.test.mjs,
which this branch does not touch. The same test fails about half the
time on an unchanged checkout, so the failure is timing noise rather
than a regression here. No file changes.
@vastsa
vastsa merged commit 4196110 into vastsa:main Dec 1, 2026
6 checks passed
@vastsa

vastsa commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Merged as 41961101aa after all six checks passed on the latest integration candidate. The separate three-test check also passed: late Task model replies cannot populate the cache after cancellation, while ordinary grant resolution still works. Thanks!

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.

[Bug] Cancelled Task can cache a late model response

3 participants