We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7013c commit 63c0041Copy full SHA for 63c0041
gptme/config.py
@@ -265,9 +265,10 @@ def from_dict(cls, config_data: dict) -> Self:
265
# Extract chat settings
266
chat_data = config_data.pop("chat", {})
267
268
- # Convert workspace to Path if present
+ # Convert workspace to Path if present and resolve to absolute path
269
if "workspace" in chat_data:
270
- chat_data["workspace"] = Path(chat_data["workspace"])
+ workspace_path = Path(chat_data["workspace"])
271
+ chat_data["workspace"] = workspace_path.resolve()
272
# For old-style config, check if workspace is in the logdir
273
elif _logdir and (_logdir / "workspace").exists():
274
chat_data["workspace"] = (_logdir / "workspace").resolve()
0 commit comments