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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user