[Core] Disable automatic appending of redundant headers and internal logs in agent.ts
This commit is contained in:
+3
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user