Skip to content

Conversation

@welkeyever
Copy link
Member

What type of PR is this?

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional): 1. config 同时支持相对路径和绝对路径;2. 增加一个 WORK_DIR 作为所有相对路径的 base,方便在多个 workspace 之间快速切换;3. 开箱即用:即使.env 文件缺省,default 配置保证解析阶段正常工作(compress 阶段要求LLM token,这个无法做到完全的无配置运行)

(Optional) Which issue(s) this PR fixes:

(optional) The PR that updates user documentation:

// get current directory
let output = Command::new(cmd)
.args(args)
.current_dir(env::current_dir()?.to_str().unwrap())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current_dir为啥要拿掉?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 cwd 默认和父进程保持一致就行 & 执行命令的 path 统一在收敛在最外面计算(基于 CONFIG 中的字段),统一管理

@AsterDY AsterDY merged commit 82f8a1e into main Mar 7, 2025
2 checks passed
@welkeyever welkeyever deleted the fix/cmd_cwd_bug branch March 17, 2025 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants