Compare commits

...

3 Commits

Author SHA1 Message Date
Bee 61c769b995 Merge branch 'main' into bee/current-workdir 2026-02-03 10:47:59 +08:00
abeatrix 95411e54c1 Changeset 2026-02-03 08:10:14 +08:00
abeatrix b756761a3f feat: use cwd directly for current working directory
Remove  fallback to context.cwd in getSystemEnv function.
The context.cwd property was being used as a fallback, but process.cwd()
is always available and provides the current working directory directly,
simplifying the code without changing functionality.
2026-02-03 08:06:38 +08:00
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"cline": patch
---
Always include the latest working directory path in system prompt.
@@ -33,7 +33,7 @@ function getEffectiveShell(context: SystemPromptContext): string {
}
export async function getSystemEnv(context: SystemPromptContext, isTesting = false) {
const currentWorkDir = context.cwd || process.cwd()
const currentWorkDir = process.cwd()
const workspaces = (await getWorkspacePaths({}))?.paths || [currentWorkDir]
return isTesting
? {