fix(native): deliver plugin VM Runner usage to Core (#19162)

This commit is contained in:
Nicky Leach authored and GitHub committed 2026-11-04 21:02:22 -08:00
1 parent 53937be283
commit 8c062fa481
5 files changed
+129 -31

No files matched your search

+7
View File
@@ -1727,6 +1727,13 @@ session has no durable path for this, so its late usage stays with the run that
active when it arrives, or the next run. The total stays exact, but the attribution
can be off by those tokens.
Every remote Runner transport, including one on a plugin-owned VM, delivers usage to
Core as events commit. Reports still in the Runner's outbox when a run finishes
settle on that run when the next run drains them, even if it has no receipts yet.
Codex reports the whole run's delta, so one such report can settle a finished run
whose terminal event was already acknowledged. Other providers report per turn and
still need their terminal event.
### Session settlement after a run
Attaching a later run to a session asks whether anything is live or waiting: an