fix: reviewer 타임아웃 300초, unified에 workspace 경로 추가

- reviewer agent timeout: 180s → 300s (에이전트 시작 오버헤드 고려)
- unified context에 workspace path 명시 → 경로 질문에 정확한 답변
- planner agent timeout 유지: 180s
This commit is contained in:
2026-03-07 01:37:48 +09:00
parent e65e2250a3
commit 49ee5f397c
3 changed files with 9 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ class TaskPipeline:
# ──────────────────────────────────────────
async def plan(self, user_request: str) -> dict:
"""Planner로 태스크 분해."""
"""Planner로 태스크 분해 (에이전트 모드 — 직접 처리 가능)."""
context = self.ctx.gather(user_request)
docs_ctx = self._docs_context()
@@ -62,10 +62,13 @@ class TaskPipeline:
f"## User Request\n{user_request}\n\n"
f"## Project Context\n{context}\n\n"
f"## Project Docs\n{docs_ctx}\n\n"
f"Decompose this request into concrete tasks."
f"Analyze this request. If simple, handle it directly (direct: true). "
f"If complex, decompose into tasks (direct: false)."
)
response = await self.gemini.call("planner", prompt, timeout=180)
response = await self.gemini.call_agent(
"planner", prompt, cwd=self.project_path, timeout=180,
)
self._log("plan", user_request, response)
plan = self._extract_json(response)
@@ -183,7 +186,7 @@ class TaskPipeline:
)
response = await self.gemini.call_agent(
"reviewer", prompt, cwd=self.project_path, timeout=180,
"reviewer", prompt, cwd=self.project_path, timeout=300,
)
self._log("batch_review", f"{len(tasks)} tasks", response)