Skip to content

Commit b249880

Browse files
committed
fix(ui): resolve config path handling for agent initialization
1 parent 1f107a8 commit b249880

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

codetide/agents/tide/ui/agent_tide_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, project_path: Path = Path("./"), history :Optional[list]=None
2727

2828
if llm_config is None:
2929
try:
30-
config = Config.from_yaml(self.project_path / self.config_path)
30+
config = Config.from_yaml(self.config_path)
3131
self.llm_config: LlmConfig = config.llm
3232
except Exception:
3333
self.llm_config = LlmConfig(**PLACEHOLDER_LLM_CONFIG)

codetide/agents/tide/ui/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ def main():
476476
parser.add_argument("--config-path", type=str, default=DEFAULT_AGENT_TIDE_LLM_CONFIG_PATH, help="Path to the config file")
477477
args = parser.parse_args()
478478

479-
os.environ["AGENT_TIDE_PROJECT_PATH"] = args.project_path
480-
os.environ["AGENT_TIDE_CONFIG_PATH"] = args.config_path
479+
os.environ["AGENT_TIDE_PROJECT_PATH"] = str(Path(args.project_path))
480+
os.environ["AGENT_TIDE_CONFIG_PATH"] = str(Path(args.project_path) / args.config_path)
481481

482482
asyncio.run(init_db(f"{os.environ['CHAINLIT_APP_ROOT']}/database.db"))
483483

0 commit comments

Comments
 (0)