AI Update: تغییرات را در agy_engine.py اعمال کن

This commit is contained in:
Antigravity Bot
2026-08-30 16:23:14 +03:30
parent da2eac96ee
commit ad8ba029d4
2 changed files with 21 additions and 8 deletions
+13
View File
@@ -1471,6 +1471,19 @@ class AGYEngine:
except Exception as ex:
logger.warning(f"Failed to load bot actions instruction: {ex}")
# AI Active Project Context Instruction
active_p = session.current_project
if active_p:
project_context_instruction = (
f"[SYSTEM INSTRUCTION: ACTIVE PROJECT CONTEXT]\n"
f"• Active Project Name: {active_p.name}\n"
f"• Active Workspace Path: {active_p.workspace}\n"
f"• Active Conversation ID: {session.conversation_id or active_p.conversation_id or 'New'}\n"
f"• AI Model: {active_p.model} (Effort: {active_p.effort})\n"
f"You are operating directly within the user's active project '{active_p.name}' located at '{active_p.workspace}'."
)
system_instructions.append(project_context_instruction)
# AI Long-Term Persistent Hierarchical Memory (Global + User + Active Project)
try:
from memory_manager import memory_manager
File diff suppressed because one or more lines are too long