惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
U
Unit 42
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
IT之家
IT之家
MyScale Blog
MyScale Blog
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
InfoQ
博客园 - 司徒正美

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
chore(deadcode): remove stale copilot doctor probes · ope...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -230,8 +230,8 @@ canonical subscription `github-copilot` provider and is **never** selected by

230230

The harness claims its provider, runtime, CLI session key, and auth profile

231231

prefix in `extensions/copilot/doctor-contract-api.ts`, which

232232

`openclaw doctor` auto-loads. For configuration, auth, transcript mirroring,

233-

compaction, the doctor probe surface, and the broader PI vs Codex vs Copilot

234-

SDK decision, see [GitHub Copilot agent runtime](/plugins/copilot).

233+

compaction, the declarative doctor contract, and the broader PI vs Codex vs

234+

Copilot SDK decision, see [GitHub Copilot agent runtime](/plugins/copilot).

235235
236236

## Compatibility contract

237237
Original file line numberDiff line numberDiff line change

@@ -33,15 +33,12 @@ For the broader model/provider/runtime split, start with

3333

- A GitHub Copilot subscription that can drive the Copilot CLI (or a

3434

`gitHubToken` env / auth-profile entry for headless / cron runs).

3535

- A writable `copilotHome` directory. The harness defaults to

36-

`~/.openclaw/agents/<agentId>/copilot` for full per-agent isolation. The

37-

platform default (`%APPDATA%\copilot` on Windows, `$XDG_CONFIG_HOME/copilot`

38-

or `~/.config/copilot` elsewhere) is used as the doctor probe fallback when

39-

no explicit home is set.

36+

`<agentDir>/copilot` when OpenClaw provides an agent directory, otherwise

37+

`~/.openclaw/agents/<agentId>/copilot` for full per-agent isolation.

4038
4139

`openclaw doctor` runs the plugin

42-

[doctor contract](#doctor-and-probes) for the extension; failures there are

43-

the canonical way to confirm the environment is ready before opting an agent

44-

in.

40+

[doctor contract](#doctor) for declarative session-state ownership and future

41+

compatibility migrations. It does not run Copilot CLI environment probes.

4542
4643

## Plugin install

4744

@@ -153,10 +150,6 @@ the same directory), or `~/.openclaw/agents/<agentId>/copilot` otherwise.

153150

Override with `copilotHome: <path>` on the attempt input when you need a

154151

custom location (for example, a shared mount for migration).

155152
156-

`probeCopilotAuthShape` (see [Doctor and probes](#doctor-and-probes)) is the

157-

pure shape check that validates which of the modes above will be used.

158-

It does not perform a live SDK handshake.

159-
160153

## Configuration surface

161154
162155

The harness reads its config from per-attempt input

@@ -239,7 +232,7 @@ asserted in

239232

[`extensions/copilot/harness.test.ts`](https://github.com/openclaw/openclaw/blob/main/extensions/copilot/harness.test.ts)

240233

under `describe("runSideQuestion")`.

241234
242-

## Doctor and probes

235+

## Doctor

243236
244237

`extensions/copilot/doctor-contract-api.ts` is auto-loaded by

245238

`src/plugins/doctor-contract-registry.ts`. It contributes:

@@ -251,18 +244,6 @@ under `describe("runSideQuestion")`.

251244

runtime `copilot`; CLI session key `copilot`; auth profile

252245

prefix `github-copilot:`.

253246
254-

`extensions/copilot/src/doctor-probes.ts` exports three imperative probes

255-

that hosts (including `openclaw doctor`) can call to verify the environment:

256-
257-

| Probe | What it checks | Reasons it can fail |

258-

| -------------------------- | --------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |

259-

| `probeCopilotCliVersion` | `copilot --version` exits 0 with a non-empty version string | `non-zero-exit`, `empty-version`, `spawn-failed`, `spawn-error`, `probe-timeout` |

260-

| `probeCopilotHomeWritable` | `mkdir -p copilotHome` + write + rm a marker file | `copilothome-not-writable` (with the underlying fs error in `details.rawError`) |

261-

| `probeCopilotAuthShape` | At least one of `useLoggedInUser`, `gitHubToken`, or `profileId`+`profileVersion` | `no-auth-source` |

262-
263-

Each probe accepts a DI seam (`spawnFn`, `fsApi`) so tests do not spawn the

264-

real Copilot CLI or touch the host fs.

265-
266247

## Limitations

267248
268249

- The harness only claims the canonical `github-copilot` provider at MVP.

Original file line numberDiff line numberDiff line change

@@ -16,7 +16,7 @@ on a model or provider entry; `auto` never picks it. PI remains the default

1616

embedded runtime.

1717
1818

See [GitHub Copilot agent runtime](../../docs/plugins/copilot.md) for

19-

configuration, doctor probes, transcript mirroring, compaction, side

19+

configuration, the doctor contract, transcript mirroring, compaction, side

2020

questions, replay, and the supported-surface contract.

2121

See [qa/copilot-capabilities.md](../../qa/copilot-capabilities.md)

2222

for the SDK capability inventory the harness is pinned to.

Original file line numberDiff line numberDiff line change

@@ -11,14 +11,6 @@

1111

* fields exist for copilot yet; the array is empty by design

1212

* and normalizeCompatibilityConfig is a structural no-op so

1313

* future retirements have a stable in-tree home.

14-

*

15-

* The deeper runtime probes (copilot CLI version, copilot auth,

16-

* copilotHome writability) live in {@link ./src/doctor-probes.ts}

17-

* because they have side effects (subprocess spawn, fs touch) and

18-

* need to be invoked imperatively, not declaratively, from the

19-

* doctor command. They are exported separately so callers can opt

20-

* in. Auto-discovery of doctor-contract-api.ts at the plugin root

21-

* keeps this file purely declarative.

2214

*/

2315
2416

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";