Skip to content

[pull] main from microsoft:main#1485

Merged
pull[bot] merged 9 commits into
KingDEV95:mainfrom
microsoft:main
May 31, 2026
Merged

[pull] main from microsoft:main#1485
pull[bot] merged 9 commits into
KingDEV95:mainfrom
microsoft:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 31, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

connor4312 and others added 9 commits May 30, 2026 18:41
The autorun in WorktreeCreatedTaskDispatcher previously disposed its own store via _sessionDisposables.deleteAndDispose, which could synchronously remove the entry while the autorun was still mid-run and allow a re-entrant _trackSession call to install a fresh autorun that fires again.

- Switch to reader.dispose() so the autorun tears itself down cleanly without racing _sessionDisposables bookkeeping, preventing the worktreeCreated tasks from being dispatched more than once per session.

(Commit message generated by Copilot)
Co-authored-by: Copilot <copilot@github.com>
* Avoid leaking event listeners in notebook search

* Remove redundant disposals.
…9068)

Awaiting promises before passing them to Promise.race serializes the
competitors and defeats the race. Pass the timeout and onDidChangeInput
promises directly so the timeout can fire while waiting for input.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
…19172)

Parse the per-TTL breakdown from Anthropic's usage.cache_creation object
(present in message_start across CAPI/Anthropic 1P, Bedrock InvokeModel,
and Vertex AI) and emit two new measurements on response.success:

- promptCacheCreation1hTokenCount: 1h-TTL writes (2x base input rate)
- promptCacheCreation5mTokenCount: 5m-TTL writes (1.25x base input rate)

Enables exact per-row COGS attribution for the
chat.anthropic.promptCaching.extendedTtl A/B experiment without
inferring rates from arm assignment.

The new fields live on a nested anthropic_cache_creation? object on
APIUsage.prompt_tokens_details, namespaced to make the
provider-specificity explicit at the type level. Other providers leave
it undefined; telemetry uses optional chaining so missing values drop
cleanly from the row.
* Propagate error from zipfile to the caller of read()

* PR feedback
* fix: memory leak in extension actions

* Reuse runAction helper to dispose actions

---------

Co-authored-by: Dmitriy Vasyura <dmitriv@microsoft.com>
@pull pull Bot locked and limited conversation to collaborators May 31, 2026
@pull pull Bot added the ⤵️ pull label May 31, 2026
@pull pull Bot merged commit c9ce2c4 into KingDEV95:main May 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants