fix: gemini error process

This commit is contained in:
zhayujie
2026-01-31 14:59:55 +08:00
parent 481570d059
commit 0e53ba4311
5 changed files with 26 additions and 774 deletions

View File

@@ -352,6 +352,12 @@ def _build_workspace_section(workspace_dir: str, language: str) -> List[str]:
"",
f"你的工作目录是: `{workspace_dir}`",
"",
"**路径使用规则** (非常重要):",
"",
"- **工作空间内的文件**: 使用相对路径(如 `SOUL.md`、`memory/daily.md`",
"- **工作空间外的文件**: 必须使用绝对路径(如 `~/project/code.py`、`/etc/config`",
"- **不确定时**: 先用 `bash pwd` 确认当前目录,或用 `ls .` 查看当前位置",
"",
"除非用户明确指示,否则将此目录视为文件操作的全局工作空间。",
"",
"**重要说明 - 文件已自动加载**:",