File tree Expand file tree Collapse file tree
src/agents/pi-embedded-runner Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121import { formatErrorMessage } from "../../infra/errors.js" ;
2222import { getMachineDisplayName } from "../../infra/machine-name.js" ;
2323import { generateSecureToken } from "../../infra/secure-random.js" ;
24+ import { getCurrentPluginMetadataSnapshot } from "../../plugins/current-plugin-metadata-snapshot.js" ;
2425import { getGlobalHookRunner } from "../../plugins/hook-runner-global.js" ;
2526import { extractModelCompat } from "../../plugins/provider-model-compat.js" ;
2627import type { ProviderRuntimeModel } from "../../plugins/provider-runtime-model.types.js" ;
@@ -962,6 +963,11 @@ async function compactEmbeddedPiSessionDirectOnce(
962963 cwd : effectiveWorkspace ,
963964 agentDir,
964965 cfg : params . config ,
966+ pluginMetadataSnapshot : getCurrentPluginMetadataSnapshot ( {
967+ config : params . config ,
968+ env : process . env ,
969+ workspaceDir : effectiveWorkspace ,
970+ } ) ,
965971 contextTokenBudget : ctxInfo . tokens ,
966972 } ) ;
967973 // Sets compaction/pruning runtime state and returns extension factories
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import { resolveHeartbeatSummaryForAgent } from "../../../infra/heartbeat-summar
2323import { getMachineDisplayName } from "../../../infra/machine-name.js" ;
2424import { MAX_IMAGE_BYTES } from "../../../media/constants.js" ;
2525import { listRegisteredPluginAgentPromptGuidance } from "../../../plugins/command-registry-state.js" ;
26+ import { getCurrentPluginMetadataSnapshot } from "../../../plugins/current-plugin-metadata-snapshot.js" ;
2627import { buildAgentHookContextChannelFields } from "../../../plugins/hook-agent-context.js" ;
2728import { getGlobalHookRunner } from "../../../plugins/hook-runner-global.js" ;
2829import {
@@ -1449,6 +1450,11 @@ export async function runEmbeddedAttempt(
14491450 cwd : effectiveWorkspace ,
14501451 agentDir,
14511452 cfg : params . config ,
1453+ pluginMetadataSnapshot : getCurrentPluginMetadataSnapshot ( {
1454+ config : params . config ,
1455+ env : process . env ,
1456+ workspaceDir : effectiveWorkspace ,
1457+ } ) ,
14521458 contextTokenBudget : params . contextTokenBudget ,
14531459 } ) ;
14541460 const piAutoCompactionGuardArgs = {
You can’t perform that action at this time.
0 commit comments