From 64fcd2967c4321d6597aca51ebdfcf2f741c038a Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Sat, 11 Apr 2026 16:32:19 +0200 Subject: [PATCH] fix: more file change fixes, refs NOISSUE --- ai_software_factory/agents/request_interpreter.py | 10 ++++++++++ ai_software_factory/main.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ai_software_factory/agents/request_interpreter.py b/ai_software_factory/agents/request_interpreter.py index 2046507..fe71108 100644 --- a/ai_software_factory/agents/request_interpreter.py +++ b/ai_software_factory/agents/request_interpreter.py @@ -96,6 +96,8 @@ class RequestInterpreter: parsed = json.loads(content) interpreted = self._normalize_interpreted_request(parsed, normalized) routing = self._normalize_routing(parsed.get('routing'), interpreted, compact_context) + if routing.get('intent') == 'continue_project' and routing.get('project_name'): + interpreted['name'] = routing['project_name'] naming_trace = None if routing.get('intent') == 'new_project': interpreted, routing, naming_trace = await self._refine_new_project_identity( @@ -265,6 +267,14 @@ class RequestInterpreter: matched_project = project break intent = str(routing.get('intent') or '').strip() or ('continue_project' if matched_project else 'new_project') + if matched_project is None and intent == 'continue_project': + recent_chat_history = context.get('recent_chat_history', []) + recent_project_id = recent_chat_history[0].get('project_id') if recent_chat_history else None + if recent_project_id: + matched_project = next( + (project for project in context.get('projects', []) if project.get('project_id') == recent_project_id), + None, + ) normalized = { 'intent': intent, 'project_id': matched_project.get('project_id') if matched_project else project_id, diff --git a/ai_software_factory/main.py b/ai_software_factory/main.py index fb910e3..036572c 100644 --- a/ai_software_factory/main.py +++ b/ai_software_factory/main.py @@ -306,7 +306,7 @@ async def _run_generation( resolved_prompt_text = prompt_text or _compose_prompt_text(request) if preferred_project_id and reusable_history is not None: project_id = reusable_history.project_id - elif reusable_history and not is_explicit_new_project and manager.get_open_pull_request(project_id=reusable_history.project_id): + elif reusable_history and not is_explicit_new_project: project_id = reusable_history.project_id else: if is_explicit_new_project or prompt_text: