mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
fix: fix swe agent command repeat
This commit is contained in:
parent
fa06a67a64
commit
0e4c5d96e3
2 changed files with 4 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ from asyncio import Queue
|
|||
from asyncio.subprocess import PIPE, STDOUT
|
||||
from typing import Optional
|
||||
|
||||
from metagpt.const import DEFAULT_WORKSPACE_ROOT, SWE_CMD_WORK_DIR, SWE_SETUP_PATH
|
||||
from metagpt.const import SWE_CMD_WORK_DIR, SWE_SETUP_PATH
|
||||
from metagpt.logs import logger
|
||||
from metagpt.tools.tool_registry import register_tool
|
||||
from metagpt.utils.report import END_MARKER_VALUE, TerminalReporter
|
||||
|
|
@ -159,7 +159,7 @@ class Bash(Terminal):
|
|||
self.start_flag = False
|
||||
|
||||
async def start(self):
|
||||
await self.run_command(f"cd {DEFAULT_WORKSPACE_ROOT}")
|
||||
await self.run_command(f"cd {SWE_CMD_WORK_DIR}")
|
||||
await self.run_command(f"source {SWE_SETUP_PATH}")
|
||||
|
||||
async def run(self, cmd) -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue