dsh-github-copilot 0.4.0-alpha.124 → 0.4.0-alpha.126

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/AGENTS.md CHANGED
@@ -42,7 +42,7 @@ This repository owns twelve narrow surfaces:
42
42
  7. A bounded account-discovery route that supplies validated endpoint/capability metadata to the published native adapter, plus exact plugin-owned model exclusions enforced across its directory, Auto pools and direct admission, without maintaining model-ID routing rules or changing Core's catalog.
43
43
  8. Optional, provider-scoped Chat presentation for completed empty reasoning disclosures; durable content and encrypted replay metadata remain Core-owned.
44
44
  9. Compatibility-only policy restoration and request recovery for existing dedicated planner/executor Sessions. Model roles UI, settings writes and new dedicated roots are retired (#158); never reintroduce them or migrate histories implicitly.
45
- 10. Managed-route estimated input/output admission, optional exact-request pressure signalling through official compaction recovery, and supported low summary effort only when no effort is already resolved. See [compaction budgets](./docs/copilot-compaction.md). Preserve truthful capacities, requested output caps, native errors/replay and transaction ownership; no hidden history trimming, wire chunking, competing compaction service or automatic model switch. The separately selected, single-service [recovery engine](./docs/manual-compaction-recovery.md) defaults to automatic segmented recovery for known oversized summaries or one typed native capacity failure through the public subclass hook. Preserve `automaticRecovery: false`, native `auto: false`, scopes and custom engines; at most 16 physical calls including a failed first attempt, no recursive retry or 408/network/auth/quota fallback. Installation alone never selects or migrates an engine.
45
+ 10. Managed-route estimated input/output admission, optional exact-request pressure signalling through official compaction recovery, supported low summary effort only when no effort is already resolved, and default-off lossless gzip for explicitly opted-in account-proven HTTP Responses requests. See [compaction budgets](./docs/copilot-compaction.md). Preserve truthful capacities, requested output caps, native errors/replay and transaction ownership; no hidden history trimming, wire chunking, competing compaction service or automatic model switch. The separately selected, single-service [recovery engine](./docs/manual-compaction-recovery.md) defaults to automatic segmented recovery for known oversized summaries or one typed native capacity failure through the public subclass hook. Preserve `automaticRecovery: false`, native `auto: false`, scopes and custom engines; at most 16 physical calls including a failed first attempt, no recursive retry or 408/network/auth/quota fallback. Installation alone never selects or migrates an engine.
46
46
  11. Optional account quota reads and a session-scoped composer usage control through public credentials, strict Remotes and additive slots. Keep account billing-cycle credits separate from context tokens and session cost. Missing, pooled, legacy and stale data must retain their real semantics; never infer credits from token estimates or account deltas. A separate plugin-owned historical context projection may diagnose failed-zero readings, never filter shared native usage, replace Core's meter, infer current occupancy/percentages or rewrite history. See [quota boundaries](./docs/copilot-usage.md).
47
47
  12. Default-off local account/Checking/compaction diagnostics through public storage-domain and strict additive Remotes. Keep fixed-dimension Client/Host and logical/physical populations separate, with bounded handles/rows, 14-day retention, explicit loss/uncertainty and native commit evidence. Isolate the home-wide backend by public profile context, never account/Session identity; one writer per profile is required. No content, raw errors, identities/hashes, credential/history reads, ad-hoc files, Settings logs, upload, daily task or automatic repair. Enable/pause uses only the hidden volatile `diagnosticsEnabled` CAS leaf; clear is a separately confirmed epoch fence. Missing/corrupt storage remains unavailable, never healthy empty data. Publication does not enable collection. See [local diagnostics](./docs/plugin-diagnostics.md).
48
48
 
@@ -109,8 +109,9 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
109
109
  - `src/wire.ts`, `src/wire-anthropic.ts`: inline hosted-search streaming.
110
110
  - `src/traditional-search.ts`: `github-copilot-hosted` `ctx.web` provider.
111
111
  - `src/serialize.ts`, `src/sse.ts`, `src/failure.ts`: protocol conversion and bounded error handling.
112
- - `src/response-error-body.ts`, `src/request-body-timeout.ts`, `src/request-upload-evidence.ts`: bounded clone-only HTTP error evidence and safe managed upload-timeout guidance. Request-scoped public Node diagnostic events supply numeric local body-write/header/ALPN evidence only after an exact verified `408/user_request_timeout`; absent events, multiple native requests and work limits stay explicit. Always dispose subscriptions when Fetch settles, without changing its arguments, Response/errors, dispatcher, proxy or retry owner. Local body-write completion is not upload duration, kernel ACK, supplier receipt or execution; its absence does not prove incomplete upload. Native failure classification/retry metadata stay unchanged; final JSON bytes are not tokens or a payload limit. Never infer overflow, auto-compact, trim history, switch models or add retries from a 408.
113
- - `src/request-body-evidence.ts`: verified-408-only, bounded numeric original-JSON span accounting through the existing fetch hook. Conversation/tool definitions/top-level system/residual partition total bytes; structural image and opaque replay spans are disjoint conversation subsets, never decoded contents. Unknown/limited evidence stays explicit. Fetch-to-header time excludes clone inspection and is not upload duration. No success-path analysis, retained body, automatic mitigation or supplier-limit claim.
112
+ - `src/response-error-body.ts`, `src/request-body-timeout.ts`, `src/request-upload-evidence.ts`: bounded clone-only HTTP error evidence and safe managed upload-timeout guidance. Request-scoped public Node diagnostic events supply numeric local body-write/header/ALPN evidence only after an exact verified `408/user_request_timeout`; absent events, multiple native requests and work limits stay explicit. Always dispose subscriptions when Fetch settles, without changing its arguments, Response/errors, dispatcher, proxy or retry owner. Local body-write completion is not upload duration, kernel ACK, supplier receipt or execution; its absence does not prove incomplete upload. Native failure classification/retry metadata stay unchanged; final JSON bytes are not tokens or a payload limit. A separate explicit opt-in compression setting is default-off and never activated by a 408; never infer overflow, auto-compact, trim history, switch models or add retries from a 408.
113
+ - `src/responses-request-compression.ts`: asynchronous `node:zlib` gzip at `Z_BEST_SPEED` only for exact account-proven official Copilot HTTPS `/responses` JSON POSTs through the existing public Fetch seam. `github-copilot.responsesRequestCompression` defaults false; enforce the 256 KiB minimum, 32 MiB compression-work bound and both 5%/4 KiB savings thresholds. Skips retain the original request with a fixed reason, and cancellation/account/deadline fences run before dispatch. No custom Fetch, other protocol, explicit `auto`/WebSocket, DNS/proxy/dispatcher changes, context-admission or replay changes, resend after an encoding rejection, or new retry. Gzip is wire encoding, not compaction or proof of supplier receipt.
114
+ - `src/request-body-evidence.ts`: verified-408-only, bounded numeric original-JSON span accounting through the existing fetch hook. Conversation/tool definitions/top-level system/residual partition total bytes; structural image and opaque replay spans are disjoint conversation subsets, never decoded contents. Unknown/limited evidence stays explicit. Fetch-to-header time excludes clone inspection and is not upload duration. With gzip, report original JSON composition and prepared HTTP-body bytes separately; neither establishes delivered bytes. No success-path analysis, retained body, automatic mitigation or supplier-limit claim.
114
115
  - `src/copilot-stream-liveness.ts`: request-local HTTP/SSE byte-idle observation, paired with the public native adapter's bounded assistant-chunk deadline. Default five-minute byte idle and ten-minute semantic silence; no fake assistant output, private watchdog access, new retry or Core patch. Consumer think time is excluded; explicit WebSocket/auto stays native-only. `chatStreamLiveness: false` restores native-only timing. `chatMaxRequestImageBytes` retains Core's 20 MiB default; smaller explicit settings authorize only native image offload, not hidden history trimming or a guessed supplier limit. Synthetic heartbeat evidence is not production heartbeat proof.
115
116
  - `tests/`: unit and integration evidence; mirror the source area being changed.
116
117
  - `deployment-baseline.json`: declared machine-readable compatibility and capability evidence inventory.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.126 (prepared)
4
+
5
+ - Align plugin-owned Models, account management, model preferences, continuation disclosures, Credits details and plugin settings with the unchanged official rc.2 font family, type scale, themed neutral controls and focus states (#361).
6
+ - Match compact provider actions to native Edit; keep Sign out and Refresh content-sized, and wrap model actions below long names/IDs on narrow layouts. Preserve authorization, CAS, preferences, continuation, quota and native UI ownership.
7
+ - Isolated real-component browser comparisons cover desktop/narrow widths and light/dark themes; they do not prove live Desktop activation or authorize installation/restart.
8
+
9
+ ## 0.4.0-alpha.125 (prepared)
10
+
11
+ - Add the experimental, default-off `github-copilot.responsesRequestCompression` option: account-proven managed HTTP Responses JSON may use bounded, lossless gzip at the existing public Fetch boundary (#358).
12
+ - Retain the original JSON for native admission, retries, replay and diagnostics; skip unsuitable bodies, preserve caller-owned Fetch and native failure handling, and never resend uncompressed or trim history.
13
+ - Distinguish original composition bytes from prepared gzip body bytes in verified 408 guidance. Synthetic transport evidence is not proof of delivery, provider capability or universal timeout mitigation; no live install or enablement.
14
+
3
15
  ## 0.4.0-alpha.124 (prepared)
4
16
 
5
17
  - Plan compaction from model-facing content and tools instead of serializing native IDs, provenance and opaque replay envelopes, fixing metadata-driven exhaustion of the unchanged 16-call bound (#352).
package/README.md CHANGED
@@ -19,13 +19,15 @@ Identity display accepts GitHub Enterprise Managed User names, including their u
19
19
 
20
20
  Models and Chat share an opaque, theme-aware account dropdown; translucent native menu tokens cannot reveal underlying controls or quota text. Both use restrained dark elevation in light and dark mode.
21
21
 
22
+ Plugin-owned Models, account, preferences and settings controls use DSH's native font family, setting/caption hierarchy, neutral control radii and keyboard focus treatment. Compact provider actions stay aligned with native Edit; Manage actions no longer stretch across the row. These presentation changes do not change authorization, model preferences or continuation policy.
23
+
22
24
  Visible-history continuation no longer rejects entire requests at 16 MiB. It processes only bounded encrypted reasoning, yields to cancellation, and preserves ordinary tool/image content. Real token pressure still uses the enabled native automatic-compaction engine and request rebuild; processing limits are not context overflow. See [continuation boundaries](./docs/session-continuation.md).
23
25
 
24
26
  Visible Models and Credits resolve missing names for saved accounts without activating them. Verified names remain cached for the Host lifetime, including inactive accounts; the ten-minute freshness interval governs revalidation, not name display. Credential changes, removal and failed identity verification invalidate names. Shared per-account requests and a thirty-second failure cooldown remain; explicit refresh retries immediately. Names do not prove authorization or model access. See [account lifecycle](./docs/copilot-accounts.md).
25
27
 
26
28
  Adding an account now keeps the device-authorization link, selectable URL, one-time code, Copy code action and Cancel together while authorization is pending. After GitHub authorizes, identity and model verification are shown as a separate phase. Adding never changes the global default; use the existing explicit **Switch** action when ready. Technical diagnostics are secondary, and account/turn identity fallbacks never expose opaque account IDs or infer historical identity from today's settings.
27
29
 
28
- **Package version: `0.4.0-alpha.124`. Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. Verify the published Release and assets before using the versioned commands below; these instructions do not prove publication or installation.
30
+ **Package version: `0.4.0-alpha.126` (prepared). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. Verify the published Release and assets before using the versioned commands below; these instructions do not prove publication or installation.
29
31
 
30
32
  ## What you can do
31
33
 
@@ -91,10 +93,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
91
93
  For a **standalone named profile**:
92
94
 
93
95
  ```sh
94
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.124/dsh-github-copilot-0.4.0-alpha.124.tgz
96
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.126/dsh-github-copilot-0.4.0-alpha.126.tgz
95
97
  ```
96
98
 
97
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.124` after publication. Official rc.2's **Desktop-bundled CLI** also supports reserved-profile plugin management; a global/generic `dsh` shim is not equivalent. Qualify the installed entry before use. See [Desktop CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) and the distinct [standalone offline procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles). Neither path authorizes registry-policy bypass, peer patches or configuration deletion.
99
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.126` after publication. Official rc.2's **Desktop-bundled CLI** also supports reserved-profile plugin management; a global/generic `dsh` shim is not equivalent. Qualify the installed entry before use. See [Desktop CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) and the distinct [standalone offline procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles). Neither path authorizes registry-policy bypass, peer patches or configuration deletion.
98
100
 
99
101
  After an approved reload/restart:
100
102
 
@@ -177,6 +179,8 @@ For continuing steps with a committed managed route and no pending model change,
177
179
 
178
180
  For exact verified `408 / user_request_timeout`, diagnostics describe bounded request composition and observable timing, not a proven payload limit or root cause. Image counts include native Responses tool outputs; older stored diagnostics may have counted those images as residual history. Bytes are not tokens; timing is not upload duration. Small, image-free requests can also time out. Follow [request-budget and timeout guidance](./docs/copilot-compaction.md); do not automatically trim history, disable proof, switch models or add retries.
179
181
 
182
+ The experimental `github-copilot.responsesRequestCompression` option is **off by default**. When explicitly enabled, it losslessly gzips only eligible managed HTTP Responses requests through the existing native Fetch seam. It starts at 256 KiB, skips compression work above 32 MiB and requires at least 5% and 4 KiB savings; every skip sends the original request. This changes prepared HTTP body bytes, not context/token admission. Custom Fetch, explicit `auto`/WebSocket and other protocols remain native, and a gzip rejection is never automatically resent uncompressed. On a verified 408, diagnostics distinguish original JSON composition from the prepared gzip body size; neither proves delivery or cures every timeout. Installation does not enable the option.
183
+
180
184
  The same failure can include request-scoped native local body-write/header milestones, negotiated TLS ALPN and a Node writable-buffer count. These are local submission observations, not kernel ACK or supplier receipt; missing events do not prove an incomplete upload. Unsupported or ambiguous transports report unavailable evidence. No request contents are logged and no connection, proxy, dispatcher or retry is changed.
181
185
 
182
186
  HTTP/SSE liveness separates five-minute byte idle from bounded ten-minute assistant-output silence by default. Consumer work is excluded; WebSocket/explicit `auto` stays native-only. This does not cure supplier HTTP 408s. Images are admitted against actual native-projected MIME evidence; the plugin does not own conversion or infer format support from filenames. [Image compatibility](./docs/image-input-compatibility.md).
@@ -194,6 +198,7 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
194
198
  | `accountModelFailureCooldownMs` | `300000` | 5min non-forcing discovery failure cooldown |
195
199
  | `chatStreamLiveness` | `true` | Managed HTTP/SSE byte observation |
196
200
  | `chatStreamIdleTimeoutMs` | `300000` | Byte-idle deadline; separate from search |
201
+ | `responsesRequestCompression` | `false` | Experimental lossless gzip for eligible managed HTTP Responses requests |
197
202
  | `chatMaxRequestImageBytes` | `20971520` | Native 20 MiB outgoing-image budget, not a total JSON limit |
198
203
  | `requestBudgetSafetyTokens` | `4096` | Estimated input safety allowance |
199
204
  | `requestBudgetPressureRatio` | `0.9` | Early pressure with supported enabled recovery |
@@ -260,14 +265,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
260
265
  GitHub Releases and npm distribute the same original verified tarball. Pin a version; verify Release SHA-256 or npm `dist.integrity`. Never repack an immutable release or move/reuse its tag.
261
266
 
262
267
  ```sh
263
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.124/dsh-github-copilot-0.4.0-alpha.124.tgz
264
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.124/SHA256SUMS
268
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.126/dsh-github-copilot-0.4.0-alpha.126.tgz
269
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.126/SHA256SUMS
265
270
  sha256sum --check SHA256SUMS
266
271
  ```
267
272
 
268
273
  ```powershell
269
274
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
270
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.124.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
275
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.126.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
271
276
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
272
277
  ```
273
278
 
package/README.zh.md CHANGED
@@ -16,13 +16,15 @@
16
16
 
17
17
  Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜单 token 即使半透明,也不会透出底下的按钮或额度文字。明暗主题均使用克制的深色投影,不产生白色光晕。
18
18
 
19
+ 插件的 Models、账号、模型偏好和设置控件统一使用 DSH 原生字体、设置/辅助文字层级、中性圆角及键盘焦点样式。紧凑操作与原生 Edit 对齐;Manage 内的操作按钮不再铺满整行。这些外观调整不会改变授权、模型偏好或降级续聊策略。
20
+
19
21
  可见历史续聊不再按整包 16 MiB 拒绝请求。过滤只对加密推理做有界、可取消的处理,普通工具输出和图片内容保持不变。真实 token 压力仍交给已启用的原生自动 compact 引擎,完成摘要后重建请求;处理工作量上限不会被误报为上下文溢出。参见[续聊边界](./docs/session-continuation.md)。
20
22
 
21
23
  可见的 Models 和 Credits 会补齐已保存账号缺失的名称,不需要先激活账号。已验证名称在 Host 生命周期内缓存,未激活账号也会保留;十分钟是重新验证的间隔,不是名字的显示期限。凭据变更、账号移除及身份验证失败会使名称失效。同账号共享请求、失败冷却三十秒,显式刷新可立即重试。名称不能证明授权有效或模型可用。参见[账号生命周期](./docs/copilot-accounts.md)。
22
24
 
23
25
  添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
24
26
 
25
- **包版本:`0.4.0-alpha.124`。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。执行下方带版本的命令前须核验正式发布与资产;这些说明不证明已发布或已安装。
27
+ **包版本:`0.4.0-alpha.126`(准备中)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。执行下方带版本的命令前须核验正式发布与资产;这些说明不证明已发布或已安装。
26
28
 
27
29
  ## 你可以做什么
28
30
 
@@ -81,10 +83,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
81
83
  **独立具名 profile**:
82
84
 
83
85
  ```sh
84
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.124/dsh-github-copilot-0.4.0-alpha.124.tgz
86
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.126/dsh-github-copilot-0.4.0-alpha.126.tgz
85
87
  ```
86
88
 
87
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.124`。官方 rc.2 **Desktop 随附的专属 CLI**也支持管理保留 profile;全局/普通 `dsh` shim 不等价。使用前核验实际安装入口,参见[Desktop CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及独立的[具名 profile 离线流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)。两种路径都不授权绕过包源政策、修改 peer 或删除配置。
89
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.126`。官方 rc.2 **Desktop 随附的专属 CLI**也支持管理保留 profile;全局/普通 `dsh` shim 不等价。使用前核验实际安装入口,参见[Desktop CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及独立的[具名 profile 离线流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)。两种路径都不授权绕过包源政策、修改 peer 或删除配置。
88
90
 
89
91
  经批准 reload/restart 后:
90
92
 
@@ -167,6 +169,8 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
167
169
 
168
170
  严格核验的 `408 / user_request_timeout`诊断给出有界请求构成和可观察耗时,不证明供应方 payload 上限或根因。图片统计包括原生 Responses 工具输出中的图片;旧的已存诊断可能把这些图片算作剩余历史。字节不是 tokens,耗时不是上传时长;小型无图请求也可能超时。参见[预算与超时指导](./docs/copilot-compaction.md),不要自动裁剪历史、禁用 proof、切换模型或增加重试。
169
171
 
172
+ 实验性配置 `github-copilot.responsesRequestCompression` **默认关闭**。显式开启后,仅通过现有原生 Fetch 接口对符合条件的托管 HTTP Responses 请求进行无损 gzip 编码。请求至少 256 KiB;超过 32 MiB 的压缩工作会跳过,且必须同时节省至少 5% 和 4 KiB;任何跳过都会发送原始请求。这只改变准备发送的 HTTP body 字节,不改变 context/token 准入。自定义 Fetch、显式 `auto`/WebSocket 和其他协议维持原生行为;gzip 被拒绝后绝不会自动改成未压缩请求重发。严格核验的 408 诊断会区分原始 JSON 组成字节与准备发送的 gzip body 大小;两者均不证明请求已送达,也不保证消除超时。安装不会启用此选项。
173
+
170
174
  同一失败还可包含请求级原生客户端的本地请求体写入/响应头里程碑、协商出的 TLS ALPN 与 Node 写缓冲字节数。这些只是本地提交观测,不是内核 ACK 或供应方接收证明;缺失事件不代表上传未完成。不支持或存在歧义的传输会明确报告证据不可用。不记录请求内容,也不改变连接、代理、dispatcher 或重试。
171
175
 
172
176
  HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手输出静默,排除消费者工作;WebSocket/显式 `auto`仍仅使用原生路径。这不修复供应方 HTTP 408。图片按原生实际投影 MIME 证据准入;插件不负责转换,也不按文件名猜格式支持。[图片兼容](./docs/image-input-compatibility.md)。
@@ -184,6 +188,7 @@ HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手
184
188
  | `accountModelFailureCooldownMs` | `300000` | 非强制发现失败冷却 5min |
185
189
  | `chatStreamLiveness` | `true` | 托管 HTTP/SSE 字节观察 |
186
190
  | `chatStreamIdleTimeoutMs` | `300000` | 字节 idle 期限,与搜索独立 |
191
+ | `responsesRequestCompression` | `false` | 实验性托管 HTTP Responses 无损 gzip |
187
192
  | `chatMaxRequestImageBytes` | `20971520` | 原生 20 MiB 出站图片预算,非总 JSON 上限 |
188
193
  | `requestBudgetSafetyTokens` | `4096` | 估算输入安全余量 |
189
194
  | `requestBudgetPressureRatio` | `0.9` | 启用受支持恢复时的提前压力 |
@@ -250,14 +255,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
250
255
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
251
256
 
252
257
  ```sh
253
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.124/dsh-github-copilot-0.4.0-alpha.124.tgz
254
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.124/SHA256SUMS
258
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.126/dsh-github-copilot-0.4.0-alpha.126.tgz
259
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.126/SHA256SUMS
255
260
  sha256sum --check SHA256SUMS
256
261
  ```
257
262
 
258
263
  ```powershell
259
264
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
260
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.124.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
265
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.126.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
261
266
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
262
267
  ```
263
268
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.124"
11
+ "version": "0.4.0-alpha.126"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -693,6 +693,8 @@
693
693
  {"file": "src/auto-task-assessment.ts", "marker": "performance.now() >= deadline"},
694
694
  {"file": "src/request-body-timeout-marker.ts", "marker": "COPILOT_REQUEST_BODY_TIMEOUT"},
695
695
  {"file": "src/request-body-evidence.ts", "marker": "REQUEST_BODY_EVIDENCE_LIMITS"},
696
+ {"file": "src/responses-request-compression.ts", "marker": "MAXIMUM_WORK_BYTES"},
697
+ {"file": "src/responses-request-compression.ts", "marker": "satisfiesCompressionSavings"},
696
698
  {"file": "src/request-upload-evidence.ts", "marker": "createRequestUploadObserver"},
697
699
  {"file": "src/copilot-stream-liveness.ts", "marker": "COPILOT_STREAM_IDLE_TIMEOUT"},
698
700
  {"file": "src/preview-route.ts", "marker": "Math.min(idle * 2, 2_147_483_647)"},
@@ -700,6 +702,21 @@
700
702
  {"file": "src/pi-provider-bridge.ts", "marker": "PiStreamPublicCompatibility"}
701
703
  ],
702
704
  "tests": [
705
+ {"file": "tests/responses-request-compression.spec.ts", "name": "losslessly gzips eligible JSON and sets exact HTTP encoding and length without mutating headers"},
706
+ {"file": "tests/responses-request-compression.spec.ts", "name": "skips bodies above the compression work limit"},
707
+ {"file": "tests/responses-request-compression.spec.ts", "name": "requires both the absolute and proportional savings thresholds"},
708
+ {"file": "tests/config.spec.ts", "name": "keeps managed Responses request compression default-off and boolean-only"},
709
+ {"file": "tests/preview-provider.spec.ts", "name": "preserves published-adapter JSON and usage across identity and gzip encoding"},
710
+ {"file": "tests/preview-provider.spec.ts", "name": "keeps caller-owned Fetch unchanged and does not resend a gzip 415 response"},
711
+ {"file": "tests/preview-provider.spec.ts", "name": "rechecks the request/account fence after compression and never dispatches revoked work"},
712
+ {"file": "tests/preview-provider.spec.ts", "name": "keeps native %s transport when the option is enabled"},
713
+ {"file": "tests/preview-provider.spec.ts", "name": "sends gzip with correct framing through Node Fetch"},
714
+ {"file": "tests/preview-provider.spec.ts", "name": "keeps original JSON for replay-scope checks after gzip without retiring the account"},
715
+ {"file": "tests/preview-provider.spec.ts", "name": "recompresses identical native JSON after HTTP 408 retries without an identity resend"},
716
+ {"file": "tests/preview-route.spec.ts", "name": "reads compression policy when a prepared Responses call reaches lazy HTTP dispatch"},
717
+ {"file": "tests/preview-route.spec.ts", "name": "does not let compressed wire bytes bypass native hard context admission"},
718
+ {"file": "tests/request-body-timeout.spec.ts", "name": "distinguishes original JSON composition from compressed HTTP body bytes"},
719
+ {"file": "tests/request-body-timeout.spec.ts", "name": "reports a skipped opt-in compression reason without changing identity diagnostics"},
703
720
  {"file": "tests/auto-task-assessment.spec.ts", "name": "rejects late results even before the scheduled timeout callback runs"},
704
721
  {"file": "tests/auto-task-assessment.spec.ts", "name": "aborts preparation at the monotonic deadline before an adapter can start"},
705
722
  {"file": "tests/preview-route.spec.ts", "name": "does not dispatch an auxiliary request when native preparation outlasts a delayed deadline timer"},
@@ -84,6 +84,7 @@ All three keys belong to the existing `github-copilot` settings namespace:
84
84
  | `requestBudgetSafetyTokens` | 4096 | Non-negative safe integer; more allowance means less usable input. Lowering it trades away preventive headroom and does not change native SDK safeguards. |
85
85
  | `requestBudgetPressureRatio` | 0.9 | 0.01 through 1, step 0.01, for eligible ordinary loop calls only. |
86
86
  | `compactionReasoning` | `prefer-low` | Supported low-cost default for otherwise unspecified summary effort; `preserve` keeps existing defaults. |
87
+ | `responsesRequestCompression` | `false` | Experimental, opt-in lossless gzip for eligible managed HTTP Responses requests; no context reduction or additional retry. |
87
88
 
88
89
  The existing `enabled` switch remains hosted-search-only. These controls do not change global/default model selection, enable another account route, or transfer conversation data to another provider.
89
90
 
@@ -91,6 +92,10 @@ The existing `enabled` switch remains hosted-search-only. These controls do not
91
92
 
92
93
  HTTP `408 / user_request_timeout` is separate from input-budget overflow. For the exact observed request-body timeout response, the managed route supplies a safe `COPILOT_REQUEST_BODY_TIMEOUT` diagnostic and final JSON UTF-8 byte count when available, while preserving native failure classification and retries. These bytes include serialized messages, tools and replay/attachments; they are not token occupancy or an advertised HTTP-size limit. Repeated unchanged retries cannot reduce the request. After retries exhaust, an explicit native compaction may reduce compressible history, but giant fixed prefixes/attachments and network/service faults may remain. The existing optional manual recovery engine must be separately selected; installing the account plugin does not enable it. No 408 triggers automatic compaction, hidden history trimming, credential refresh, model switching, timeout changes or a second retry loop. Consult [GitHub troubleshooting](https://docs.github.com/en/copilot/how-tos/troubleshoot-copilot/troubleshoot-common-issues) and [service status](https://www.githubstatus.com/) without bypassing network policy.
93
94
 
95
+ `github-copilot.responsesRequestCompression` is a separate, experimental, default-off upload mitigation. Explicit opt-in gzips only account-proven official Copilot HTTPS `/responses` POSTs with a string JSON body, at the existing plugin-owned Fetch seam after native serialization, replay normalization and context admission. Custom Fetch, other APIs, explicit `auto` and WebSocket remain unchanged. It starts at 256 KiB, skips compression work above 32 MiB, and requires at least 5% and 4 KiB savings; every ineligible, oversized or uneconomic body remains the original native request. The asynchronous work is cancellation/account/deadline fenced before dispatch. No route pinning, hidden trimming, token/admission changes, identity resend after 415, retry or model switch is added.
96
+
97
+ For a verified 408 after a compressed request, the diagnostic labels the original JSON composition bytes separately from the prepared gzip HTTP-body bytes (excluding transport framing). The compressed size is not confirmed delivered bytes, a token count, a provider size limit or proof of a network cause. A skipped compression may include one fixed reason; request bodies and headers are not retained. Synthetic controls support an opt-in mitigation only, not a universal provider capability or guaranteed 408 cure. Keep it off where endpoint support is unknown; disabling it affects later dispatches and installation never enables it.
98
+
94
99
  For [#263](https://github.com/cloga/dsh-github-copilot/issues/263), the same public final-body fetch hook additionally captures a monotonic fetch-invocation-to-response-header duration, before clone observation. This is round-trip latency, not measured upload progress, throughput or time spent reading the body. Only a verified exact error triggers numeric composition analysis; successful requests are not analyzed or retained.
95
100
 
96
101
  For #291, request-scoped public Node/Undici diagnostic channels also observe local body-write completion and native response-header timing, negotiated TLS ALPN when exposed, and a public Node writable-buffer count at body-write completion. Exactly one matching native request is required; no matching event, multiple requests (such as redirects), and more than eight request identities yield explicit unavailable, ambiguous or work-limited evidence, never combined partial timings. H2 connection evidence does not depend on H1-only header-write events; reused H2 sockets or custom transports may leave ALPN unavailable. Subscriptions stop when Fetch settles, including errors, before bounded response-clone analysis. Only an exact verified timeout emits these numeric observations; no request fields, headers, URLs, content, replay or credentials are retained or logged. The original Fetch arguments, signal, Response/error, dispatcher, proxy, connections and retries remain native-owned.