Skip to content

feat(client): 接入 Runner mock 上下文#41

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

feat(client): 接入 Runner mock 上下文#41
DeliciousBuding merged 1 commit into
dev/delicious233from
feat/client-runner-context-delicious233

Conversation

@DeliciousBuding
Copy link
Copy Markdown
Collaborator

变更范围

  • agenthub-runner --mock 读取 Edge ProcessExecutor 注入的最小 Run 上下文。
  • 新增 RunContext / ContextFromEnv,读取:
    • AGENTHUB_RUN_ID
    • AGENTHUB_PROJECT_ID
    • AGENTHUB_THREAD_ID
  • AGENTHUB_RUN_ID 为空时保持兼容默认值 mock-run-1
  • mock stdout 固定先输出 run=project=thread= 三行,便于 Edge run.output.batch 看到真实上下文。
  • 更新 Runner README、客户端路线图和分支路线图。

Review 修复

  • 交叉 review 无 High / Critical。
  • 补强测试,锁死 stdout 前三行上下文输出顺序。

验证

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

Copilot AI review requested due to automatic review settings May 22, 2026 23:22
@DeliciousBuding DeliciousBuding merged commit b369730 into dev/delicious233 May 22, 2026
1 of 2 checks passed
@DeliciousBuding DeliciousBuding deleted the feat/client-runner-context-delicious233 branch May 22, 2026 23:23
@DeliciousBuding DeliciousBuding review requested due to automatic review settings May 22, 2026 23:46
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