fix(conductor): Apply review suggestions for track 'live_ux_test_20260223'
This commit is contained in:
@@ -24,9 +24,10 @@ def main():
|
|||||||
project_name = f"LiveTest_{int(time.time())}"
|
project_name = f"LiveTest_{int(time.time())}"
|
||||||
# Use actual project dir for realism
|
# Use actual project dir for realism
|
||||||
git_dir = os.path.abspath(".")
|
git_dir = os.path.abspath(".")
|
||||||
|
project_path = os.path.join(git_dir, "tests", f"{project_name}.toml")
|
||||||
|
|
||||||
print(f"\n[Action] Scaffolding Project: {project_name}")
|
print(f"\n[Action] Scaffolding Project: {project_name} at {project_path}")
|
||||||
sim.setup_new_project(project_name, git_dir)
|
sim.setup_new_project(project_name, git_dir, project_path)
|
||||||
|
|
||||||
# Enable auto-add so results appear in history automatically
|
# Enable auto-add so results appear in history automatically
|
||||||
client.set_value("auto_add_history", True)
|
client.set_value("auto_add_history", True)
|
||||||
|
|||||||
@@ -31,11 +31,14 @@ class UserSimAgent:
|
|||||||
break
|
break
|
||||||
|
|
||||||
# We need to set a custom system prompt for the User Simulator
|
# We need to set a custom system prompt for the User Simulator
|
||||||
ai_client.set_custom_system_prompt(self.system_prompt)
|
try:
|
||||||
|
ai_client.set_custom_system_prompt(self.system_prompt)
|
||||||
|
# We'll use a blank md_content for now as the 'User' doesn't need to read its own files
|
||||||
|
# via the same mechanism, but we could provide it if needed.
|
||||||
|
response = ai_client.send(md_content="", user_message=last_ai_msg)
|
||||||
|
finally:
|
||||||
|
ai_client.set_custom_system_prompt("")
|
||||||
|
|
||||||
# We'll use a blank md_content for now as the 'User' doesn't need to read its own files
|
|
||||||
# via the same mechanism, but we could provide it if needed.
|
|
||||||
response = ai_client.send(md_content="", user_message=last_ai_msg)
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def perform_action_with_delay(self, action_func, *args, **kwargs):
|
def perform_action_with_delay(self, action_func, *args, **kwargs):
|
||||||
|
|||||||
@@ -8,9 +8,12 @@ class WorkflowSimulator:
|
|||||||
self.client = hook_client
|
self.client = hook_client
|
||||||
self.user_agent = UserSimAgent(hook_client)
|
self.user_agent = UserSimAgent(hook_client)
|
||||||
|
|
||||||
def setup_new_project(self, name, git_dir):
|
def setup_new_project(self, name, git_dir, project_path=None):
|
||||||
print(f"Setting up new project: {name}")
|
print(f"Setting up new project: {name}")
|
||||||
self.client.click("btn_project_new")
|
if project_path:
|
||||||
|
self.client.click("btn_project_new_automated", user_data=project_path)
|
||||||
|
else:
|
||||||
|
self.client.click("btn_project_new")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
self.client.set_value("project_git_dir", git_dir)
|
self.client.set_value("project_git_dir", git_dir)
|
||||||
self.client.click("btn_project_save")
|
self.client.click("btn_project_save")
|
||||||
|
|||||||
Reference in New Issue
Block a user