mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-09 07:10:34 +01:00
fix(native): measure resumed run usage from the prior run's total (#19161)
This commit is contained in:
1 parent
6452e964a3
commit
737db73275
8 files changed
+176
-5
No files matched your search
@@ -57,6 +57,7 @@ import { isCloudManagedInstance } from "../cloud-instance.js";
|
||||
import { dotRunnerBroker } from "../dot-runner-broker.js";
|
||||
import { CURSOR_DISTRIBUTION_PINS, KIMI_DISTRIBUTION_CLOSURE_SHA256, QUALIFIED_ACPX_PROFILES, QUALIFIED_ACPX_VERSION } from "../../vendor/paperclip-runner/index.js";
|
||||
import { isProviderMode } from "../../vendor/paperclip-runner/index.js";
|
||||
import { codexUsageBaselineForNextRun } from "../../vendor/paperclip-runner/index.js";
|
||||
import { PROVIDER_PACK_COMPATIBILITY, bundledRemoteProviderPackManifestPath, bundledRemoteRunnerBinary, runnerBinaryTarget } from "../../vendor/paperclip-runner/index.js";
|
||||
import { nativeRetryCancellationEligible, rethrowNativeCancellationLockConflict, assertCancellationRequest, cancellationIntentId as callerCancellationIntentId, cancellationRequestId } from "./native-cancellation-request.js";
|
||||
import { readNativePlanWait } from "./native-plan-wait.js";
|
||||
@@ -7035,6 +7036,9 @@ function loadWarmNativeCheckpoint(
|
||||
terminalTurns: [],
|
||||
pendingRuntimeRequests: [],
|
||||
governedWait: undefined,
|
||||
...(envelope.snapshot.codexUsageBaseline
|
||||
? { codexUsageBaseline: codexUsageBaselineForNextRun(envelope.snapshot.codexUsageBaseline) }
|
||||
: {}),
|
||||
};
|
||||
if (path !== scopedPath || envelope.configDigest !== configDigest) {
|
||||
// Upgrade the validated checkpoint atomically. When moving from a legacy
|
||||
|
||||
Reference in new issue
Block a user