[Core] Disable automatic appending of redundant headers and internal logs in agent.ts

This commit is contained in:
g1nation
2026-05-05 16:19:02 +09:00
parent 76ec4624a8
commit fc07e00f0c
6 changed files with 44 additions and 7 deletions
+3 -4
View File
@@ -505,6 +505,7 @@ export class AgentExecutor {
].join('\n');
}
}
/* Disabling redundant meta-sections as per UX optimization strategy
if (prompt && recentProjectKnowledgeContext) {
assistantContent = this.ensureRecentProjectKnowledgeEvidence(assistantContent, recentProjectKnowledgeContext);
}
@@ -514,10 +515,8 @@ export class AgentExecutor {
if (prompt) {
assistantContent = this.applyAstraQualityGate(assistantContent, prompt, localPathContext);
}
const traceMarkdown = secondBrainTrace
? renderSecondBrainTraceMarkdown(secondBrainTrace, !!options.secondBrainTraceDebug)
: '';
const finalAssistantContent = traceMarkdown ? `${assistantContent}\n${traceMarkdown}` : assistantContent;
*/
const finalAssistantContent = assistantContent;
this.statusBarManager.updateStatus(AgentStatus.Executing);
const report = await this.executeActions(aiResponseText, rootPath, activeBrain);