dsh-github-copilot 0.4.0-alpha.69 → 0.4.0-alpha.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.71 (prepared)
4
+
5
+ - Decouple the Auto selection footer from optional conversation projections and wait for its exact Remote namespace (#238).
6
+ - Use native completed-turn evidence to show retained Auto/Manual records when projection data is unavailable; keep incomplete attribution explicit without guessing historical selections or changing native Usage.
7
+ - Cover cold/incremental native assembly and session-scoped rendering, projection failures, pending dependencies and invalid completion evidence. Live Desktop recovery still requires loaded-version verification.
8
+
9
+ ## 0.4.0-alpha.70 (prepared)
10
+
11
+ - Require image-capable Auto candidates for retained historical user/tool images after text-only continuations; honor native image offload markers (#236).
12
+ - Validate actual native-projected image MIME against explicit account format evidence before managed dispatch, with request-local diagnostics and no image rewriting, model switch or additional retry.
13
+ - Document why durable attachment formats and filenames cannot prove outgoing MIME, and retain the original service-side rejection as unverified rather than declaring Grok text-only.
14
+
3
15
  ## 0.4.0-alpha.69 (prepared)
4
16
 
5
17
  - Add an explicit, opt-in manual compaction engine for compressible already-oversized managed Copilot histories. It uses a bounded public summary hook and native transactional replacement without changing the default compaction service. Include account-proof and failure boundaries in the recovery design.
package/README.md CHANGED
@@ -11,6 +11,11 @@ A focused DSH companion for GitHub Copilot sign-in, account-aware model profiles
11
11
 
12
12
  ## Current experience
13
13
 
14
+ Auto checks historical user/tool image blocks as well as the latest message.
15
+ Managed requests reject an explicitly incompatible projected image MIME before
16
+ network dispatch; omitted account MIME lists remain unverified, not guessed.
17
+ Core still owns image conversion and history. See [image compatibility limits](./docs/image-input-compatibility.md).
18
+
14
19
  - **Account and models:** sign in, inspect account-discovered models, refresh metadata, and manage the account from the native GitHub Copilot row under **Settings → Models**. **Manage → Model preferences** can exclude exact models from both the managed picker and Auto without changing Core's flat picker.
15
20
  - **Search routing:** choose the primary and fallback search providers under **Plugins → dsh-github-copilot → Details**. The page intentionally exposes only those user-facing choices; protocol probes, timeouts, allowlists, and transport switches are not presented as routine UI. It also keeps the rc.2 lifecycle warning visible before disable/remove/upgrade actions. If the updated routed service is not active yet, the card reports **Restart required** instead of presenting a broken form.
16
21
  - **Usage:** eligible Copilot sessions get an optional **Credits** control beside the composer, with provider-reported billing-cycle data and explicit unavailable/stale states. The quota request alone combines Node default and OS trust roots without disabling certificate verification or relying on Desktop launcher environment inheritance.
@@ -98,7 +103,7 @@ The Host reads GitHub's internal quota endpoint using the existing canonical OAu
98
103
 
99
104
  ## Install and sign in
100
105
 
101
- The commands below target the package version `0.4.0-alpha.69`. Versioned URLs describe the intended release artifacts, not proof that publication or local activation has completed; use them only once that Release and its checksums are available. Install into the profile you use (replace `web` when targeting another profile):
106
+ The commands below target the package version `0.4.0-alpha.71`. Versioned URLs describe the intended release artifacts, not proof that publication or local activation has completed; use them only once that Release and its checksums are available. Install into the profile you use (replace `web` when targeting another profile):
102
107
 
103
108
  Before installing/updating, unpack the **checksum-verified** archive into a temporary directory and run its read-only composition preflight (replace all paths with absolute paths for the intended profile):
104
109
 
@@ -111,10 +116,10 @@ Include any launcher patch files with repeated `--patch /absolute/file` argument
111
116
  For a standalone named profile only, the supported CLI command is:
112
117
 
113
118
  ```sh
114
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.69/dsh-github-copilot-0.4.0-alpha.69.tgz
119
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.71/dsh-github-copilot-0.4.0-alpha.71.tgz
115
120
  ```
116
121
 
117
- For Desktop profiles, use Desktop's native package manager with `dsh-github-copilot@0.4.0-alpha.69` after the same preflight and only when registry access is permitted. Desktop reserves its `desktop` profile from CLI management. If registry access is blocked or unavailable, stop; the documented [controlled offline CLI procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles) is not a Desktop workaround.
122
+ For Desktop profiles, use Desktop's native package manager with `dsh-github-copilot@0.4.0-alpha.71` after the same preflight and only when registry access is permitted. Desktop reserves its `desktop` profile from CLI management. If registry access is blocked or unavailable, stop; the documented [controlled offline CLI procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles) is not a Desktop workaround.
118
123
 
119
124
  Then open the Models UI listed above, find **GitHub Copilot**, select **Sign in**, and complete the GitHub device-code flow. Plugin installation changes the selected profile; activation follows that profile's normal reload/restart policy.
120
125
 
@@ -136,6 +141,8 @@ The managed GitHub Copilot group includes **Auto · Balance**, **Auto · Efficie
136
141
 
137
142
  Completed Copilot replies show **Auto (preference)** and an expandable recorded reason after native Usage/time, or **Manual** only with captured explicit fixed-selection evidence. Missing evidence shows **Selection unknown**, never a guess from today's picker. There is no repeated model name or separate Model details button: actual model display stays in native Usage, whose missing-route behavior is unchanged. New selection records are bounded and Host-local; restart, disposal or eviction loses them. Compatible historical Auto records remain readable. The public assistant-actions slot supports internal wrapping only, not changing the native fixed-height row.
138
143
 
144
+ The selection footer mounts independently of optional conversation projections. Native completed-turn evidence lets retained Auto/Manual records remain visible if those projections are unavailable; incomplete attribution stays explicit in the information disclosure. This does not restore lost selection records or prove that an installed update is loaded in Desktop.
145
+
139
146
  Auto input fitting uses Core's native TokenMeter for every entered message, including reasoning and tool history, plus its current-surface/tool-envelope floor. Missing or invalid native measurement fails Auto explicitly rather than silently selecting from an undercount. This prevents the known estimation error but does not rescue history whose summary input already exceeds every eligible model's budget; see [compaction limits](./docs/copilot-compaction.md#existing-oversized-history-and-recovery-limits).
140
147
 
141
148
  Alpha.63 fixes a missing footer on official Desktop by supporting its native ChatNodeStore rather than requiring a JavaScript Map. It does not change Auto selection or recover reasons already lost on Host restart.
@@ -165,7 +172,7 @@ Agents should treat the browser authorization as a human handoff, not as a token
165
172
  5. Confirm **Signed in** and inspect the automatic discovery result before asking the user to choose a model. Already-signed-in Models opening ensures missing/stale metadata automatically; fresh ready cache makes no request. Use visible **Retry** for errors or **Manage → Refresh models** for an intentional forced update, not routine setup. Status alone does not discover, and login, metadata and successful model calls remain separate evidence.
166
173
  6. Use **Sign out** only when the user explicitly asks to disconnect the account. It deletes the Copilot credential record but preserves route settings.
167
174
 
168
- GitHub Releases and npm are the default distribution channels for each new version, using the same verified tarball. Pin the version and verify the evidence for the channel used: Release `SHA256SUMS`, and npm `dist.integrity` when installing from npm. Install into Desktop profiles only through Desktop's native package manager; the reserved `desktop` profile is not managed by the DSH CLI. After npm publication is verified, the native manager accepts `dsh-github-copilot@0.4.0-alpha.69`, not a URL or file. Controlled offline CLI maintenance is documented for standalone named profiles only, never Desktop-managed profiles. Follow the mandatory search-composition preflight, backup, single-writer and post-install checks; do not bypass a corporate registry ban, disable TLS verification or restart without separate approval. See [distribution and publication requirements](./docs/npm-distribution.md).
175
+ GitHub Releases and npm are the default distribution channels for each new version, using the same verified tarball. Pin the version and verify the evidence for the channel used: Release `SHA256SUMS`, and npm `dist.integrity` when installing from npm. Install into Desktop profiles only through Desktop's native package manager; the reserved `desktop` profile is not managed by the DSH CLI. After npm publication is verified, the native manager accepts `dsh-github-copilot@0.4.0-alpha.71`, not a URL or file. Controlled offline CLI maintenance is documented for standalone named profiles only, never Desktop-managed profiles. Follow the mandatory search-composition preflight, backup, single-writer and post-install checks; do not bypass a corporate registry ban, disable TLS verification or restart without separate approval. See [distribution and publication requirements](./docs/npm-distribution.md).
169
176
 
170
177
  **Desktop package-update and Web-lifecycle boundaries:** the native manager's `restart-required` result for an in-place installed-package upgrade is authoritative and distinct from plugin-bundle removal/re-add behavior. Any disable, removal, or upgrade involving service recomposition (`cordis.patch.yml`, such as the isolated routed web search layer) may leave dependent entries pending until Desktop is fully exited and cold-restarted. If the native manager reports only entries such as `pending (waiting for service: web)` while this plugin already shows **Off**, the requested disabled state has been persisted; cold-restart Desktop instead of repeatedly toggling or reinstalling the plugin. Other errors are not covered by this guidance and must still be investigated.
171
178
 
@@ -440,8 +447,8 @@ Report the published Release URL, version, tag/commit and verified asset SHA-256
440
447
  `package.json` declares public npm distribution. A release tag must equal `v${package.json.version}`. Versions use standard SemVer prerelease labels (`alpha`, `beta`, or `rc`), each with its matching npm dist-tag; only stable versions use `latest`. The Release workflow performs the frozen install and complete verification gate, packs once (or recovers the original archive on retry), verifies `SHA256SUMS`, publishes the immutable GitHub Release and then publishes those same bytes to npm through OIDC. Either channel failing means delivery is incomplete. First package creation needs an authorized maintainer; staging requires an existing package and is not a first-package bootstrap. Historical releases are not republished.
441
448
 
442
449
  ```sh
443
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.69/dsh-github-copilot-0.4.0-alpha.69.tgz
444
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.69/SHA256SUMS
450
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.71/dsh-github-copilot-0.4.0-alpha.71.tgz
451
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.71/SHA256SUMS
445
452
  sha256sum --check SHA256SUMS
446
453
  ```
447
454
 
@@ -449,7 +456,7 @@ PowerShell can verify the same two downloaded files with:
449
456
 
450
457
  ```powershell
451
458
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
452
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.69.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
459
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.71.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
453
460
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
454
461
  ```
455
462
 
package/README.zh.md CHANGED
@@ -11,6 +11,11 @@
11
11
 
12
12
  ## 当前体验
13
13
 
14
+ Auto 会检查历史用户消息和工具结果中的图片块,不再只看最新一句话。
15
+ 托管请求在原生图片转换后检查实际 MIME;若与账号明确公布的格式不兼容,
16
+ 会在发送前报告具体错误。账号未公布的格式不作猜测,图片转换和历史仍由
17
+ Core 管理。详见[图片兼容性与限制](./docs/image-input-compatibility.md)。
18
+
14
19
  - **账号与模型:**在 **设置 → 模型** 的原生 GitHub Copilot 行内完成登录、查看账号发现模型、刷新元数据及账号管理。可在 **Manage → Model preferences** 中按精确 ID 排除模型,使其同时退出托管 picker 与 Auto 候选池;Core 原生 picker 仍保持平铺。
15
20
  - **搜索路由:**在 **插件 → dsh-github-copilot → 详情**选择主搜索 Provider 与兜底 Provider。页面只保留用户真正需要的两项选择,不再把协议探测、超时、白名单或传输开关作为日常配置暴露;同时会在停用/移除/升级前常驻显示 rc.2 生命周期提示。更新后的路由服务尚未激活时,卡片会明确显示 **需要重启生效(Restart required)**,而不是继续展示无法使用的表单。
16
21
  - **用量:**符合条件的 Copilot 会话会在输入框旁显示可选的 **Credits / 额度** 控件,展示供应方明确返回的计费周期数据,并如实区分不可用与历史快照。仅额度请求组合 Node 默认证书与系统信任根,无需依赖 Desktop launcher 的环境变量继承,且保持 TLS 验签。
@@ -20,7 +25,7 @@
20
25
 
21
26
  截图来自当前构建 Client 的隔离浏览器 fixture,使用合成 Provider。它只证明已发布配置界面的形态,不证明真实凭据、账号权限、搜索成功或当前 Desktop 已加载。
22
27
 
23
- > 当前文档与安装命令对应版本 `0.4.0-alpha.69`。源码、发布制品、已安装版本和实际加载运行时需分别确认;本地升级和中断会话的重启仍需用户批准。
28
+ > 当前文档与安装命令对应版本 `0.4.0-alpha.71`。源码、发布制品、已安装版本和实际加载运行时需分别确认;本地升级和中断会话的重启仍需用户批准。
24
29
 
25
30
  Web search 路由现在优先显示在插件详情页;宿主不支持详情页插槽时才回退到 **设置 → 模型**或独立 Web search section。搜索子 Fiber 仍独立等待 Remote,不影响账号控件和既有搜索安全检查。
26
31
 
@@ -113,10 +118,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
113
118
  仅对独立的具名 profile,获准且网络可用时,可通过受支持的 CLI 命令安装:
114
119
 
115
120
  ```sh
116
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.69/dsh-github-copilot-0.4.0-alpha.69.tgz
121
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.71/dsh-github-copilot-0.4.0-alpha.71.tgz
117
122
  ```
118
123
 
119
- Desktop profile 请在完成同样的预检后,使用 Desktop 原生包管理器安装 `dsh-github-copilot@0.4.0-alpha.69`。Desktop 保留 `desktop` profile,CLI 不负责管理。若 registry 被公司封禁或不可用,不要更换网络绕行或使用离线 CLI;请停止。[受控离线 CLI 流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)仅适用于独立具名 profile,不适用于 Desktop。
124
+ Desktop profile 请在完成同样的预检后,使用 Desktop 原生包管理器安装 `dsh-github-copilot@0.4.0-alpha.71`。Desktop 保留 `desktop` profile,CLI 不负责管理。若 registry 被公司封禁或不可用,不要更换网络绕行或使用离线 CLI;请停止。[受控离线 CLI 流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)仅适用于独立具名 profile,不适用于 Desktop。
120
125
 
121
126
  随后打开上表对应的 Models UI,找到 **GitHub Copilot**,点击 **Sign in** 并完成 GitHub device-code 流程。安装会修改指定 profile;是否立即激活取决于该 profile 的常规 reload/restart 策略。
122
127
 
@@ -138,6 +143,8 @@ Desktop profile 请在完成同样的预检后,使用 Desktop 原生包管理
138
143
 
139
144
  已完成的 Copilot 回复在原生 Usage/时间后显示 **Auto(偏好)**,点信息按钮查看本轮记录的选择原因;只有捕获到明确固定选择才显示**手动**。缺记录显示**选择方式未知**,不借当前 picker 推断历史。不重复模型名、不另设 Model details 按钮:实际模型仍由原生 Usage 显示,其缺失归属行为未改变。新选择记录仅限当前 Host 内存且有容量上限,重启、释放 Agent 或淘汰后会丢失;兼容历史 Auto 记录仍可读取。公开 assistant-actions slot 只允许插件内部换行,不能改变原生固定高度尾栏。
140
145
 
146
+ 选择标记独立于可选会话投影挂载。投影不可用时,原生已完成回合证据仍允许显示保留的 Auto/手动记录;归属证据不完整会在信息弹层中明确说明。这不会恢复丢失的选择记录,也不证明已安装的更新已在 Desktop 加载。
147
+
141
148
  Auto 输入适配通过 Core 原生 TokenMeter 逐条估算消息,包含推理与工具历史,并保留原生当前上下文/工具定义测量值作为下限。缺失或无效的测量会明确报错,不再静默漏算后选模型。这能修复已知估算错误,但不能救回摘要输入已经超出所有合格模型预算的历史;详见[压缩恢复边界](./docs/copilot-compaction.md#existing-oversized-history-and-recovery-limits)。
142
149
 
143
150
  Alpha.63 通过支持官方 Desktop 的原生 ChatNodeStore、移除必须为 JavaScript Map 的错误限制,修复尾栏不显示的问题。不改变 Auto 选择策略,也不能恢复 Host 重启后已丢失的选择原因。
@@ -167,7 +174,7 @@ Agent 应把浏览器授权视为需要用户完成的 handoff,而不是自行
167
174
  5. 确认 **Signed in** 并检查自动发现结果,再请用户选择模型。已登录时打开 Models 会自动确保缺失/过期元数据,新鲜 ready 缓存不发请求。错误可使用 **Retry**,有意强制更新时使用 **Manage → Refresh models**,不作为常规设置步骤。状态读取本身不发现;登录、元数据与真实调用成功是独立证据。
168
175
  6. 只有用户明确要求断开账号时才使用 **Sign out**;它会删除 Copilot credential record,但保留 route settings。
169
176
 
170
- 每个新版本默认同时分发到 GitHub Releases 和 npm,两个渠道使用同一份已验证 tarball。应固定版本并核对所用渠道的证据:Release 的 `SHA256SUMS`;从 npm 安装时另核对 `dist.integrity`。Desktop profile 只能通过原生 Desktop 包管理器安装;获准且 registry 可用时输入 `dsh-github-copilot@0.4.0-alpha.69`,不是 URL 或本地文件。Desktop 保留 `desktop` profile,不能通过 DSH CLI 管理。受控离线 CLI 维护仅适用于独立具名 profile,不得作为 Desktop 安装绕行方案。[双渠道发布与 OIDC 要求](./docs/npm-distribution.md)保持不变。
177
+ 每个新版本默认同时分发到 GitHub Releases 和 npm,两个渠道使用同一份已验证 tarball。应固定版本并核对所用渠道的证据:Release 的 `SHA256SUMS`;从 npm 安装时另核对 `dist.integrity`。Desktop profile 只能通过原生 Desktop 包管理器安装;获准且 registry 可用时输入 `dsh-github-copilot@0.4.0-alpha.71`,不是 URL 或本地文件。Desktop 保留 `desktop` profile,不能通过 DSH CLI 管理。受控离线 CLI 维护仅适用于独立具名 profile,不得作为 Desktop 安装绕行方案。[双渠道发布与 OIDC 要求](./docs/npm-distribution.md)保持不变。
171
178
 
172
179
  **Desktop package 更新与 Web 生命周期边界:**原生 manager 对已安装 package 原位升级返回的 `restart-required` 是权威结果,与移除/重加 plugin bundle 的行为是两个不同问题。涉及服务重编排补丁(`cordis.patch.yml`,如本插件所采用的隔离路由 Web 搜索层)的停用、移除或升级,可能让依赖条目保持 pending,直到完全退出并冷重启 Desktop。若原生 manager 只报告类似 `pending (waiting for service: web)` 的条目,同时本插件已经显示 **Off**,说明请求的停用状态已经落盘;请冷重启 Desktop,不要反复切换或重装插件。其它错误不属于此提示范围,仍需单独排查。
173
180
 
@@ -451,8 +458,8 @@ node scripts/agent.mjs attribution "DeepSeek Harness (DSH)"
451
458
  `package.json` 声明公开 npm 分发。Release tag 必须严格等于 `v${package.json.version}`。预发布使用 `alpha`、`beta` 或 `rc` 及对应 npm dist-tag,只有稳定版使用 `latest`。Release workflow 执行 frozen install 和完整门禁,只打包一次(重试恢复原始归档),验证 `SHA256SUMS`,发布不可变 GitHub Release,再通过 OIDC 将同一份字节发布到 npm。任一渠道失败都表示交付未完成。首次建包须由获准环境中的维护者完成;staging 要求包已存在,不能代替首次建包。不会批量补发历史版本。
452
459
 
453
460
  ```sh
454
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.69/dsh-github-copilot-0.4.0-alpha.69.tgz
455
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.69/SHA256SUMS
461
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.71/dsh-github-copilot-0.4.0-alpha.71.tgz
462
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.71/SHA256SUMS
456
463
  sha256sum --check SHA256SUMS
457
464
  ```
458
465
 
@@ -460,7 +467,7 @@ PowerShell 可以对已下载的同一组文件执行:
460
467
 
461
468
  ```powershell
462
469
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
463
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.69.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
470
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.71.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
464
471
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
465
472
  ```
466
473
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.69"
11
+ "version": "0.4.0-alpha.71"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -1025,6 +1025,7 @@
1025
1025
  {"file": "src/parent-model-follow-card.ts", "marker": "Follow parent model"},
1026
1026
  {"file": "src/auto-model-host.ts", "marker": "COPILOT_AUTO_TOKEN_METER_UNAVAILABLE"},
1027
1027
  {"file": "src/auto-model-presentation.ts", "marker": "conversation.chat.assistant-actions"},
1028
+ {"file": "src/auto-model-presentation.ts", "marker": "installAutoModelProjections"},
1028
1029
  {"file": "src/auto-model-presentation.ts", "marker": "turnModelProvenanceDefinition"},
1029
1030
  {"file": "src/turn-model-provenance.ts", "marker": "assistant/message"},
1030
1031
  {"file": "src/turn-selection-card.ts", "marker": "Selection unknown"},
@@ -1045,6 +1046,9 @@
1045
1046
  {"file": "tests/auto-model-presentation.spec.ts", "name": "omits attribution when a compatible history contains no optional decision"},
1046
1047
  {"file": "tests/turn-selection-card.spec.ts", "name": "reads exact completed turn evidence through %s and exposes reasons without repeating the model"},
1047
1048
  {"file": "tests/turn-selection-card.spec.ts", "name": "diagnoses an unavailable node collection without reading another turn"},
1049
+ {"file": "tests/turn-selection-card.spec.ts", "name": "uses native completion independently of optional projections: $expected"},
1050
+ {"file": "tests/client.spec.ts", "name": "registers and disposes Auto actions while the optional conversation fiber remains pending"},
1051
+ {"file": "tests/fixtures/reasoning-presentation-core.fixture.ts", "name": "renders retained Auto evidence without optional projections through native %s and slots"},
1048
1052
  {"file": "tests/turn-model-provenance.spec.ts", "name": "retains known models around zero-usage failed attempts without reading payloads"},
1049
1053
  {"file": "tests/preview-route.spec.ts", "name": "publishes Auto as a virtual picker entry but refuses unresolved adapter dispatch"},
1050
1054
  {"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "shrinks durable history and rebuilds the switched model request without sending the oversized original"}
@@ -24,6 +24,11 @@ A Goal does not become one indefinitely frozen Auto decision. Each automatic con
24
24
 
25
25
  ## Routing policy and input fit
26
26
 
27
+ Image capability requirements cover all entered message content, including historical
28
+ user and tool images, not only the latest user text. Actual projected MIME admission
29
+ uses explicit account format evidence after native conversion; filenames and durable
30
+ MIME are not wire-format proof. See [image compatibility and limits](./image-input-compatibility.md).
31
+
27
32
  The account `/models` catalog is authoritative for entitlement and hard capabilities: protocol, context and output limits, image input, tool support, reasoning efforts, and server policy. Unknown or incomplete capability metadata fails closed.
28
33
 
29
34
  The catalog does not provide trustworthy quality, latency, price, or global-health rankings. The routing policy therefore does **not** infer model quality from a marketing name, model-ID prefix, provider order, or token price. It does not claim to reproduce GitHub's private Auto algorithm.
@@ -104,6 +109,12 @@ Chat Auto does not own or alter the independent `github-copilot-hosted` search p
104
109
 
105
110
  ## Attribution and explanation
106
111
 
112
+ **Completed-turn fallback (alpha.71, #238):** a new Desktop Session was observed without the Auto label despite alpha.70 reporting all three components running. That status does not attest every optional Client dependency fiber. The reproducible defect is that the actions entry waited for `uiConversation` registration, and then required its optional provenance projection even when the Host retained the exact turn's selection. The original live Client trigger has not been established from console evidence.
113
+
114
+ The actions entry now waits only for the selection Remote namespace and public slots. Historical attribution/provenance definitions register independently. A native `turn-tail` matching the displayed closing message, turn and valid completion sequence is independent completion evidence: a retained Auto/Manual selection can render without the optional projection. Native `tokenUsage.routes` can establish Copilot ownership for **Selection unknown** when projection data is absent. Missing projection evidence remains visibly incomplete; it never becomes guessed Manual, a guessed preference, or a reconstructed historical selection. Invalid/mismatched completion stays hidden. Projection failure cannot unregister the independent actions entry.
115
+
116
+ Regression coverage includes absent/failed projections, exact Session/turn binding, stale responses, incomplete disclosure and pending Client dependencies. The existing exact-source UI fixture exercises native assistant/turn-tail assembly, cold replacement and incremental append, and the real session-scoped slot renderer without plugin projections. These are synthetic regressions, not proof of a newly loaded Desktop Client or live inference. No Core, history, settings, credentials, routing policy or native Usage changes are required.
117
+
107
118
  **Desktop collection compatibility (alpha.63, #222):** the assistant-actions selector reads the public `snapshot.nodes.values()` iterable. Official ChatNodeStore returns an array; a JavaScript Map returns an iterator. Neither requires class identity checks or private-store access. Unsupported collections emit `COPILOT_TURN_SELECTION_CHAT_NODES_UNAVAILABLE` once and suppress the footer without reading another turn. This fixes the missing label/disclosure without changing selection policy or restoring lost Host-lifetime evidence.
108
119
 
109
120
  **Compatibility fix (alpha.54):** new turns omit plugin-specific Auto decision events. Official `0.2.0-rc.2` cannot set an `ignorable` envelope through public `Session.append()`, and its reader rejects unknown required plugin events. The plugin therefore stops writing `github-copilot/auto-model-decision` rather than patching Core, mutating event objects, or borrowing an unrelated event type. Core's actual model/usage provenance and Auto routing remain unchanged. Restore new decision recording only when a supported public informational-event or equivalent storage seam has proven cold-read compatibility.
@@ -0,0 +1,93 @@
1
+ # Image input compatibility investigation and implementation
2
+
3
+ Tracking: [#236](https://github.com/cloga/dsh-github-copilot/issues/236).
4
+ Baseline: official DSH / Windows Desktop 0.2.0-rc.2. Plugin-only.
5
+
6
+ ## Evidence and limits
7
+
8
+ A failed Auto continuation selected a vision-capable model and received an
9
+ image-media-type validation error. Read-only local inspection found historical
10
+ `read_image` tool results, including genuine WebP attachments whose display
11
+ names ended in `.png`. No conversation bodies, attachment bytes, account data or
12
+ opaque replay references are included here.
13
+
14
+ This does not establish that the model lacks vision, that WebP is universally
15
+ unsupported, or that the historical attachment's encoding was sent unchanged.
16
+ [AWS's Grok 4.7 model card](https://docs.aws.amazon.com/bedrock/latest/userguide/model-card-xai-grok-4-7.html)
17
+ documents image input, but is not evidence of GitHub Copilot endpoint format
18
+ acceptance. Do not exclude a model by name to conceal this error.
19
+
20
+ Two distinct gaps were identified:
21
+
22
+ 1. Auto classified image requirements from only the latest user message.
23
+ Historical user and tool image blocks were missed after a text-only continuation.
24
+ 2. Account discovery retains `visionMediaTypes`, but dispatch did not check
25
+ the native projected image MIME against that explicit account evidence.
26
+
27
+ Official rc.2 `llm-pi-ai/src/context.ts` prepares request images through the public
28
+ attachment service before provider dispatch. `attachment-local/src/request-image.ts`
29
+ can re-encode them. Source filename, durable attachment MIME, and projected
30
+ request MIME are therefore different evidence layers.
31
+
32
+ ## Implementation plan and delivered code
33
+
34
+ 1. Add regressions for historical user/tool images followed by text-only
35
+ continuation, all three Auto preferences, and no eligible vision model.
36
+ 2. Scan typed content blocks in all messages supplied to Auto by the existing
37
+ pre-step hook. Keep latest-user text complexity, account eligibility and
38
+ turn-frozen selection. Do not recursively interpret tool arguments, file
39
+ names or textual offload placeholders as image blocks. Honor Core's explicit
40
+ `offloaded: true` marker, which projects the image to text rather than bytes.
41
+ 3. At the existing account-bound `inspectRequest` hook, validate the native
42
+ transcript's actual image `mimeType` after Core projection and before wire.
43
+ Restore failures as request-local `INVALID_REQUEST` errors:
44
+ `COPILOT_IMAGE_INPUT_UNSUPPORTED`, `COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE`,
45
+ or `COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED`.
46
+ 4. Honor explicit account MIME restrictions. If the account omits its MIME list,
47
+ preserve existing vision behavior; absence is neither proof of universal
48
+ format support nor permission to invent an allowlist.
49
+ 5. Cover a synthetic native projection that changes durable WebP into PNG:
50
+ advertised PNG is admitted; JPEG-only evidence rejects before model fetch.
51
+ Keep original attachments unchanged.
52
+
53
+ These changes apply to historical image eligibility at the next Auto decision
54
+ and actual projected MIME admission for both fixed and Auto managed requests.
55
+ They do not introduce image conversion, history repair, model-name rules,
56
+ same-turn reselection, fallback wires, retry loops, or Core patches.
57
+
58
+ ## Deferred capability and acceptance
59
+
60
+ Do not implement Auto MIME filtering from durable attachments: that can reject
61
+ a model even when native projection produces a format it accepts. Exact-format
62
+ candidate selection or conversion requires a public, candidate-specific
63
+ projection contract and its own tests. The current fix diagnoses explicit
64
+ incompatibility; it does not rescue every image request.
65
+
66
+ The original service-side 400 is not proven fixed. Confirm its account-advertised
67
+ limits and exact outgoing MIME without recording image bytes or credentials
68
+ before attributing its root cause. If advertised compatibility and actual bytes
69
+ agree but the endpoint rejects them, preserve the native error rather than
70
+ fabricating a capability correction.
71
+
72
+ ## Validation status
73
+
74
+ - A pre-fix Node regression reproduced `requiresImage: false` for a historical
75
+ tool image followed by a text-only continuation.
76
+ - Focused Auto/admission tests: 23 passed with pinned Vitest 3.2.7 and isolated
77
+ unchanged rc.2 public message helper source. This is supplemental evidence,
78
+ not the complete native integration/full gate.
79
+ - Strict targeted TypeScript check passed:
80
+ `node node_modules\typescript\bin\tsc --noEmit --strict --skipLibCheck --target es2023 --module nodenext --moduleResolution nodenext --allowImportingTsExtensions src\auto-model-routing.ts src\image-input-admission.ts`.
81
+ - `pnpm install --frozen-lockfile --ignore-scripts --fetch-retries=0 --fetch-timeout=20000`
82
+ failed: the configured enterprise registry returned HTTP 404 for
83
+ `@deepseek-ai/dsh-util-crypto@0.2.0-rc.2`. Full local validation is blocked.
84
+ - [CI run 36966798814](https://github.com/cloga/dsh-github-copilot/actions/runs/36966798814)
85
+ passed on Windows and Linux using unchanged official rc.2 dependencies:
86
+ the published-adapter fixture, tagged-source native runtime, full `pnpm verify`,
87
+ `pnpm pack --pack-destination artifacts`, and exact tarball verification.
88
+ The full gate includes 1990 passing Vitest tests (2 expected skips) and
89
+ 310 passing tooling tests. Native MIME admission preserves Core's streamed
90
+ `finish(error)` contract and sends zero model requests for the mismatch case.
91
+ - This authorized CI path mitigates the local registry blocker without changing
92
+ dependencies or bypassing local registry policy. Publication and live
93
+ acceptance remain separate; no installed or published fix is claimed here.
package/lib/client.js CHANGED
@@ -6454,7 +6454,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6454
6454
  function iterable(value) {
6455
6455
  return value !== null && typeof value === "object" && Symbol.iterator in value && typeof value[Symbol.iterator] === "function";
6456
6456
  }
6457
- function findTurn(snapshot, messageId, diagnostic) {
6457
+ function findTail(snapshot, messageId, diagnostic) {
6458
6458
  if (typeof messageId !== "string") return void 0;
6459
6459
  if (!record$2(snapshot) || !record$2(snapshot.nodes) || typeof snapshot.nodes.values !== "function") {
6460
6460
  diagnostic("COPILOT_TURN_SELECTION_CHAT_NODES_UNAVAILABLE");
@@ -6468,7 +6468,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6468
6468
  for (const node of nodes) {
6469
6469
  if (!record$2(node) || node.kind !== "turn-tail" || !record$2(node.data) || !record$2(node.data.closing)) continue;
6470
6470
  const closing = node.data.closing;
6471
- if (record$2(closing.finalNode) && closing.finalNode.messageId === messageId && record$2(node.location)) return node.location.turn;
6471
+ if (record$2(closing.finalNode) && closing.finalNode.messageId === messageId && record$2(node.location)) return node;
6472
6472
  }
6473
6473
  }
6474
6474
  function Attribution(props) {
@@ -6509,8 +6509,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6509
6509
  }
6510
6510
  })?.value;
6511
6511
  const evidence = isTurnModelProvenance(provenance) ? provenance : void 0;
6512
- if (evidence?.ended !== true) return null;
6513
- if (!evidence.routes.some((route) => route.provider === "github-copilot-preview" || route.provider === "github-copilot") && parsed === void 0 && live.mode === "unknown") return null;
6512
+ const native = record$2(props.tail) && record$2(props.tail.data) ? props.tail.data : void 0;
6513
+ const nativeCompleted = native?.turn === turn && sequence(native?.seq);
6514
+ if (evidence?.ended !== true && !nativeCompleted) return null;
6515
+ if (evidence === void 0) props.diagnostic("COPILOT_TURN_SELECTION_PROVENANCE_UNAVAILABLE");
6516
+ const nativeRoutes = nativeCompleted && record$2(native?.tokenUsage) && Array.isArray(native.tokenUsage.routes) ? native.tokenUsage.routes : [];
6517
+ if (!(evidence?.routes ?? nativeRoutes).some((route) => record$2(route) && (route.provider === "github-copilot-preview" || route.provider === "github-copilot") && typeof route.model === "string" && route.model.trim() !== "") && parsed === void 0 && live.mode === "unknown") return null;
6514
6518
  const selection = live.mode !== "unknown" ? live : parsed?.preference ? {
6515
6519
  mode: "auto",
6516
6520
  preference: parsed.preference,
@@ -6521,9 +6525,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6521
6525
  return react.createElement(TurnSelectionCard, {
6522
6526
  selection,
6523
6527
  locale: language,
6524
- incomplete: evidence.incomplete
6528
+ incomplete: evidence?.incomplete ?? true
6525
6529
  });
6526
6530
  }
6531
+ function installAutoModelProjections(capabilities) {
6532
+ if (!record$2(capabilities.uiConversation) || !record$2(capabilities.uiConversation.events) || typeof capabilities.uiConversation.events.register !== "function") {
6533
+ capabilities.diagnostic("COPILOT_AUTO_PROJECTIONS_UNAVAILABLE");
6534
+ return noop$1;
6535
+ }
6536
+ const events = capabilities.uiConversation.events;
6537
+ let removeDefinition = noop$1;
6538
+ let removeProvenance = noop$1;
6539
+ try {
6540
+ removeDefinition = events.register(autoModelAttributionDefinition);
6541
+ removeProvenance = events.register(turnModelProvenanceDefinition);
6542
+ } catch {
6543
+ removeProvenance();
6544
+ removeDefinition();
6545
+ capabilities.diagnostic("COPILOT_AUTO_PROJECTIONS_FAILED");
6546
+ return noop$1;
6547
+ }
6548
+ return () => {
6549
+ removeProvenance();
6550
+ removeDefinition();
6551
+ };
6552
+ }
6527
6553
  function installAutoModelPresentation(capabilities) {
6528
6554
  const diagnosed = /* @__PURE__ */ new Set();
6529
6555
  const diagnostic = (code) => {
@@ -6537,12 +6563,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6537
6563
  "spec",
6538
6564
  "inject",
6539
6565
  "register"
6540
- ].every((key) => typeof slotsCandidate[key] === "function") || !record$2(capabilities.uiConversation) || !record$2(capabilities.uiConversation.events) || typeof capabilities.uiConversation.events.register !== "function") {
6566
+ ].every((key) => typeof slotsCandidate[key] === "function")) {
6541
6567
  diagnostic("COPILOT_AUTO_PRESENTATION_UNAVAILABLE");
6542
6568
  return noop$1;
6543
6569
  }
6544
6570
  const slots = slotsCandidate;
6545
- const events = capabilities.uiConversation.events;
6546
6571
  const face = record$2(capabilities.remote) ? capabilities.remote.githubCopilotTurnSelection : void 0;
6547
6572
  const remote = record$2(face) && typeof face.get === "function" ? face : void 0;
6548
6573
  const locale = record$2(capabilities.locale) && typeof capabilities.locale.getLocale === "function" && typeof capabilities.locale.subscribe === "function" ? capabilities.locale : void 0;
@@ -6553,23 +6578,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6553
6578
  return null;
6554
6579
  }
6555
6580
  const useChat = props.useChat;
6556
- const turn = useChat((snapshot) => findTurn(snapshot, props.messageId, diagnostic));
6581
+ const tail = useChat((snapshot) => findTail(snapshot, props.messageId, diagnostic));
6582
+ const turn = record$2(tail) && record$2(tail.location) ? tail.location.turn : void 0;
6557
6583
  if (!record$2(turn) || !sequence(turn.turn)) return null;
6558
6584
  return react.createElement(Attribution, {
6559
6585
  ...props,
6560
6586
  key: `${props.sessionId}:${turn.turn}`,
6561
6587
  turn,
6588
+ tail,
6562
6589
  remote,
6563
6590
  locale,
6564
6591
  diagnostic
6565
6592
  });
6566
6593
  }
6567
- let removeDefinition = noop$1;
6568
- let removeProvenance = noop$1;
6594
+ const removeProjections = capabilities.uiConversation === void 0 ? noop$1 : installAutoModelProjections({
6595
+ uiConversation: capabilities.uiConversation,
6596
+ diagnostic
6597
+ });
6569
6598
  let removeInjection = noop$1;
6570
6599
  try {
6571
- removeDefinition = events.register(autoModelAttributionDefinition);
6572
- removeProvenance = events.register(turnModelProvenanceDefinition);
6573
6600
  removeInjection = slots.inject(SLOT, () => {
6574
6601
  if (slots.spec(SLOT)?.kind !== "list" || slots.spec(SLOT)?.scope !== "session") {
6575
6602
  diagnostic("COPILOT_AUTO_ACTIONS_SLOT_UNAVAILABLE");
@@ -6583,15 +6610,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6583
6610
  });
6584
6611
  } catch {
6585
6612
  removeInjection();
6586
- removeProvenance();
6587
- removeDefinition();
6613
+ removeProjections();
6588
6614
  diagnostic("COPILOT_AUTO_PRESENTATION_FAILED");
6589
6615
  return noop$1;
6590
6616
  }
6591
6617
  return () => {
6592
6618
  removeInjection();
6593
- removeProvenance();
6594
- removeDefinition();
6619
+ removeProjections();
6595
6620
  };
6596
6621
  }
6597
6622
  //#endregion
@@ -9330,6 +9355,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9330
9355
  "slots"
9331
9356
  ], registerSearchUi);
9332
9357
  const usageUi = ctx.inject(["remote.githubCopilotUsage", "slots"], registerCopilotUsageUi);
9358
+ const autoUi = ctx.inject(["remote.githubCopilotTurnSelection", "slots"], (scope) => installAutoModelPresentation({
9359
+ slots: scope.slots,
9360
+ remote: scope.remote,
9361
+ locale: scope.get("locale"),
9362
+ diagnostic: (code) => scope.logger.warn(`[github-copilot] ${code}`)
9363
+ }));
9333
9364
  const presentation = ctx.inject(["uiConversation", "slots"], (scope) => {
9334
9365
  const capabilities = {
9335
9366
  slots: scope.slots,
@@ -9339,7 +9370,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9339
9370
  diagnostic: (code) => scope.logger.warn(`[github-copilot] ${code}`)
9340
9371
  };
9341
9372
  const reasoning = installReasoningPresentation(capabilities);
9342
- const auto = installAutoModelPresentation(capabilities);
9373
+ const auto = installAutoModelProjections(capabilities);
9343
9374
  return () => {
9344
9375
  auto();
9345
9376
  reasoning();
@@ -9347,6 +9378,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9347
9378
  });
9348
9379
  return async () => {
9349
9380
  await usageUi.dispose();
9381
+ await autoUi.dispose();
9350
9382
  await presentation.dispose();
9351
9383
  await searchUi.dispose();
9352
9384
  await ui.dispose();