Skip to content

feat(client): 增加 Runner 工作目录配置#38

Merged
DeliciousBuding merged 1 commit into
dev/delicious233from
feat/client-runner-workdir-delicious233
May 22, 2026
Merged

feat(client): 增加 Runner 工作目录配置#38
DeliciousBuding merged 1 commit into
dev/delicious233from
feat/client-runner-workdir-delicious233

Conversation

@DeliciousBuding
Copy link
Copy Markdown
Collaborator

目标

  • 为 Edge ProcessExecutor 增加本地进程工作目录配置。
  • 支持后续真实 Claude Code / Codex / OpenCode adapter 在指定 workspace 中运行。
  • 保持未配置 runner 命令时仍使用 MockExecutor。

改动

  • ProcessExecutorConfig 增加 WorkDir
  • 非空 WorkDir 在构造期验证必须存在且是目录,不自动创建。
  • 子进程启动时设置 cmd.Dir
  • agenthub-edge 增加 --runner-workdir,并拒绝没有 --runner-command 的无效组合。
  • 使用 Go test 自进程 helper 覆盖子进程实际工作目录,不依赖 shell、PowerShell 或真实 Agent CLI。
  • 更新总路线图、客户端路线图和本分支路线图。

边界

  • 这是本地进程工作目录边界,不是完整真实 Runner adapter。
  • 不改变公共 REST API 或 WebSocket event。
  • 不引入第三方依赖。

验证

  • git diff --check origin/dev/delicious233..HEAD
  • python -c "import yaml, pathlib; yaml.safe_load(pathlib.Path('api/openapi.yaml').read_text(encoding='utf-8')); print('yaml ok')"
  • cd edge-server; go test -count=1 ./...
  • cd runner; go test -count=1 ./...

Review

  • 已做只读交叉 review,无 Critical / High / Medium / Low 问题。

Copilot AI review requested due to automatic review settings May 22, 2026 22:01
@DeliciousBuding DeliciousBuding merged commit d10e91b into dev/delicious233 May 22, 2026
1 of 2 checks passed
@DeliciousBuding DeliciousBuding deleted the feat/client-runner-workdir-delicious233 branch May 22, 2026 22:02
@DeliciousBuding DeliciousBuding review requested due to automatic review settings May 22, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant