feat(FN-4455): complete Step 5 — migrate memory mode resolution and tests

Fusion-Task-Id: FN-4455
Fusion-Task-Lineage: 735091fa-9d42-4f23-9c5b-3e5889da99a6
This commit is contained in:
Fusion
2026-05-14 13:52:35 -07:00
committed by gsxdsm
parent 40214c7514
commit 49bb2b3858
11 changed files with 15 additions and 43 deletions

View File

@@ -1039,7 +1039,7 @@ export class TriageProcessor {
// Resolve per-agent custom instructions for the triage role or assigned agent.
let triageInstructions = "";
if (assignedAgent) {
const memoryMode = resolveAgentMemoryInclusionMode({ agent: assignedAgent, projectSettings: settings }).mode;
const memoryMode = resolveAgentMemoryInclusionMode({ agent: assignedAgent, globalSettings: settings }).mode;
triageInstructions = await resolveAgentInstructionsWithRatings(
assignedAgent,
this.rootDir,
@@ -1052,7 +1052,7 @@ export class TriageProcessor {
for (const agent of agents) {
triageRuntimeHint ??= extractRuntimeHint(agent.runtimeConfig);
if (agent.instructionsText || agent.instructionsPath || agent.soul || agent.memory) {
const memoryMode = resolveAgentMemoryInclusionMode({ agent, projectSettings: settings }).mode;
const memoryMode = resolveAgentMemoryInclusionMode({ agent, globalSettings: settings }).mode;
triageInstructions = await resolveAgentInstructions(agent, this.rootDir, undefined, memoryMode);
break;
}