dsh-github-copilot 0.4.0-alpha.108 → 0.4.0-alpha.109

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
@@ -51,7 +51,9 @@ Identity presentation uses additive `ensureIdentity` Remotes, including explicit
51
51
 
52
52
  The user approved independently authorized account records in the existing DSH credentials service. The canonical `llm-pi-ai/github-copilot` record remains unchanged as the compatibility account. Additional plugin-owned `github-copilot/account-<opaque-id>` records must be written directly by official pi-ai OAuth through public account-bound stores; never copy/move grants, refill the canonical record, introduce a separate credential storage service, patch Core, or implement another wire/catalog. Native `Models.getAuth()` and DSH `modifyRecord()` remain the refresh and serialization owners.
53
53
 
54
- Settings store only the opaque global account selector and explicit `sessionAccounts` rows. Missing/invalid selectors or records fail explicitly, without another-account fallback. Models alone manages authorizations and the global default; Credits may select an already authorized account for this Session's subsequent turns or restore global inheritance (#305). An explicit choice equal to the default remains explicit. Freeze account ownership before Auto assessment and request admission, holding mutation fences until native `turn/end`/disposal; later Session/default changes never redirect running steps, retries or search. Account-local credentials, metadata, quota, proof cancellation and native adapter composition must remain isolated. Keep one public adapter/controller registration, with no second wire/catalog or Core changes. Reauthorization/removal of a pinned record stays blocked; global-default selection may continue independently.
54
+ Settings store only the opaque global account selector and explicit `sessionAccounts` rows. Missing/invalid selectors or records fail explicitly, without another-account fallback. Models manages reauthorization/removal and the global default; Credits may select an already authorized account for this Session's subsequent turns, restore global inheritance or run add-only authorization without selecting it (#305/#318). An explicit choice equal to the default remains explicit. Freeze account ownership before Auto assessment and request admission, holding mutation fences until native `turn/end`/disposal; later Session/default changes never redirect running steps, retries or search. Account-local credentials, metadata, quota, proof cancellation and native adapter composition must remain isolated. Keep one public adapter/controller registration, with no second wire/catalog or Core changes. Reauthorization/removal of a pinned record stays blocked; global-default selection may continue independently.
55
+
56
+ Account selection shows the current account and searchable Switch, never a flat unbounded account list. One Models Manage disclosure contains account management and cross-account exact-ID model preferences. Continuation settings belong beside account controls. Persist the initial default-on epoch and later global changes with path-level CAS; only unseeded Sessions born after a known epoch inherit it, never retroactively enroll existing/unknown/forked histories. Persistent Session overrides and bounded turn/signal filtering remain separate from Host-lifetime next-turn authorization. Explicit-off account changes require persistent/next-turn/off/cancel choices, then fresh account revision readback before CAS. No automatic send/retry, history writes, private Settings navigation or inferred encrypted account origin. The approved synthetic mock and current navigation limit are documented in [account management](./docs/account-management-experience.md).
55
57
 
56
58
  Use hidden volatile `sessionAccounts` with path-level SettingsForms CAS, readback and restart evidence. Session account Remotes use explicit viewed IDs, native Agent lookup and strict codecs, never automatic Client scope. Credits uses that Session's account for identity/quota, rejecting mismatched or late results. Historical Account is an additive assistant-actions disclosure beside native Usage, captured only after a real ordinary native chunk; bounded Host-lifetime evidence becomes unknown after restart/eviction and is never reconstructed from today's settings. No new durable events, history/default/model/Usage writes, automatic account fallback, replay deletion or message retry. See [the requirements and acceptance gates](./docs/copilot-accounts.md).
57
59
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.109 (prepared)
4
+
5
+ - Record the approved synthetic account-management mock and unify current-account/Switch interactions in Chat and Models. Search bounded account lists, add without selecting, and retain guarded full management inside one Models Manage disclosure with shared exact-ID model preferences (#318).
6
+ - Add persistent Session on/off/default policies, a creation-time global default for new unseeded Sessions, reversible next-turn consent and cancel-safe explicit-off account-switch confirmation. Existing/unknown/seeded histories are not enrolled retroactively. Authorization never sends or retries.
7
+ - Filter bounded pre-turn encrypted reasoning and embedded summaries through the published native Responses adapter; retain current-turn tool-loop reasoning, visible messages, native retries and durable history. Expose persistent/next-turn controls after exact replay failures; keep the native manual retry action.
8
+ - Preserve account/default/continuation settings revisions, dark/light native control readability, cancellation and stale-response fences. The pinned Core lacks a public Models deep link, so Chat provides manual navigation; no Core patch, credential copying, second transport or live installation.
9
+
3
10
  ## 0.4.0-alpha.108 (prepared)
4
11
 
5
12
  - Align context evidence and replay recovery with native secondary typography throughout, including explanations and controls. Use the public full-width input dock above the composer instead of the non-wrapping statistics row (#315).
package/README.md CHANGED
@@ -19,7 +19,7 @@ Visible Models and Credits renew expired identity without forcing fresh reads on
19
19
 
20
20
  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.
21
21
 
22
- **Source candidate: `0.4.0-alpha.108` (unreleased). 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. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
22
+ **Source candidate: `0.4.0-alpha.109` (unreleased). 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. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
23
23
 
24
24
  ## What you can do
25
25
 
@@ -59,10 +59,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
59
59
  For a **standalone named profile**:
60
60
 
61
61
  ```sh
62
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
62
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.109/dsh-github-copilot-0.4.0-alpha.109.tgz
63
63
  ```
64
64
 
65
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.108` 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.
65
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.109` 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.
66
66
 
67
67
  After an approved reload/restart:
68
68
 
@@ -172,7 +172,11 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
172
172
  | AUTH, Responses replay-scope or TLS failure | Review [request diagnostics](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics) and [usage TLS boundaries](./docs/copilot-usage.md#account-data-boundary). After an exact scope rejection, **Replay recovery** appears automatically when the session's turn ends or the session opens. Review the loss of matching old encrypted items and their summaries, then authorize **Next matching turn only** (default choice) or **Continue in this session**. Both expire within one hour of the evidence and require the same validation state. Recovery itself stays off until confirmed; use native Send/Retry separately. It never rewrites history or retries automatically, and is not a 408 fix. Never reset credentials or disable TLS as an automatic repair. |
173
173
  | Hosted search unavailable | Check account/protocol/probe diagnostics; a legacy override stays authoritative until explicitly reset |
174
174
 
175
- Context evidence and Replay recovery use compact, full-width notices above the composer; native statistics stay unchanged. Switching accounts does not make old encrypted reasoning portable. The concise scope error points to explicit recovery or a new conversation; bounded, sanitized dispatch counts stay in Host diagnostics, not the main error. **Authorized** means permission is ready, not that a message was sent or recovery succeeded.
175
+ The Credits account panel shows the current account and **Switch**; Models has one **Manage** disclosure for account management and shared model preferences. Search saved accounts, add without selecting, and confirm guarded local removal in Models. Exact-ID exclusions are shared across accounts; availability is account-specific. See the [approved experience and interactive mock](./docs/account-management-experience.md).
176
+
177
+ [Visible-history continuation](./docs/session-continuation.md) is configured beside account switching, not permanently above the composer. New unseeded Sessions default on after the feature's first successful activation; existing Sessions and inherited histories remain off unless explicitly authorized. Global defaults affect new Sessions only; Session on/off overrides persist. With continuation off, a different-account switch offers persistent enable, next-turn-only, keep off or cancel. Each new enabled turn omits prior encrypted reasoning and embedded summaries, even on the same account; current-turn reasoning, visible messages, tools and disk history remain unchanged. Authorization never auto-sends/retries and is not a quota/context cure. Next-turn-only consent is lost on Host restart. Exact replay failures expose authorization guidance and require a separate native retry. The pinned Core lacks a public Models deep link; Chat gives manual navigation instructions.
178
+
179
+ Context evidence and Replay recovery use compact, centered notices bounded by the native composer width. Model/item counts and status refresh live in collapsed technical details; loss consent remains explicit. The context notice explains that native 0% does not establish an empty context; native statistics stay unchanged. Switching accounts does not make old encrypted reasoning portable. The concise scope error points to explicit recovery or a new conversation; bounded, sanitized dispatch counts stay in Host diagnostics, not the main error. **Authorized** means permission is ready, not that a message was sent or recovery succeeded.
176
180
 
177
181
  ## Ownership and further reading
178
182
 
@@ -212,14 +216,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
212
216
  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.
213
217
 
214
218
  ```sh
215
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
216
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/SHA256SUMS
219
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.109/dsh-github-copilot-0.4.0-alpha.109.tgz
220
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.109/SHA256SUMS
217
221
  sha256sum --check SHA256SUMS
218
222
  ```
219
223
 
220
224
  ```powershell
221
225
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
222
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.108.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
226
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.109.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
223
227
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
224
228
  ```
225
229
 
package/README.zh.md CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
19
19
 
20
- **源码候选版本:`0.4.0-alpha.108`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
20
+ **源码候选版本:`0.4.0-alpha.109`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
21
21
 
22
22
  ## 你可以做什么
23
23
 
@@ -57,10 +57,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
57
57
  **独立具名 profile**:
58
58
 
59
59
  ```sh
60
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
60
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.109/dsh-github-copilot-0.4.0-alpha.109.tgz
61
61
  ```
62
62
 
63
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.108`。官方 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 或删除配置。
63
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.109`。官方 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 或删除配置。
64
64
 
65
65
  经批准 reload/restart 后:
66
66
 
@@ -170,7 +170,11 @@ HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手
170
170
  | AUTH、Responses replay scope 或 TLS 错误 | 查看[请求诊断](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics)及[额度 TLS 边界](./docs/copilot-usage.md#account-data-boundary)。精确 scope 拒绝后,**回放恢复**会在当前轮结束或打开会话时自动提示。查看旧加密项及项内摘要的损失后,可选择**仅下一轮使用恢复**(默认选项)或**在本会话内继续使用**;两者都要求验证状态不变,最长不超过证据产生后一小时。恢复默认关闭,确认授权也不发送消息,需另行使用原生发送或重试。不改磁盘历史,也不是 408 修复。不自动重置凭据或关闭 TLS。 |
171
171
  | Hosted search 不可用 | 检查账号/协议/probe 诊断;旧 override 保留至显式 reset |
172
172
 
173
- 上下文证据与回放恢复以紧凑、全宽提示纵向显示在输入框上方,原生统计不变。切换账号不会让旧加密推理自动变得可跨账号使用。简短 scope 错误指向显式恢复或新会话;有界、脱敏的请求结构计数留在 Host 诊断中,不挤占主错误。**已授权**只表示授权已准备好,不表示消息已发送或恢复已成功。
173
+ Credits 账号面板只显示当前账号和 **切换**;Models 用一个 **管理** 展开账号管理与共享模型偏好。支持搜索账号、添加但不自动选中,在 Models 确认受保护的本地账号移除。按精确模型 ID 共享排除偏好,可用性仍按账号验证。参见[已确认体验与交互 mock](./docs/account-management-experience.md)。
174
+
175
+ [可见历史续聊模式](./docs/session-continuation.md)放在账号切换旁,不再常驻输入框上方。功能首次成功激活后创建的非继承 Session 默认开启;已有 Session、继承历史仍需明确授权。全局默认只影响新 Session,Session 开关覆盖跨重启保留。关闭时切换到不同账号,提供持续开启、仅下一轮、保持关闭或取消。启用后的每个新 turn 省略旧加密推理及其内嵌摘要,同账号也适用;当前轮新推理、可见消息、工具记录和磁盘历史不变。授权不自动发送或重试,不解决额度或上下文超限;仅下一轮授权在 Host 重启后失效。精确回放失败提供授权引导,用户另行点击原生重试。当前 Core 没有公开 Models 直达 API,Chat 提供手动导航路径。
176
+
177
+ 上下文证据与回放恢复以紧凑、居中提示显示在输入框上方,宽度遵循原生输入框。模型、项数和状态刷新收进默认折叠的技术详情;有损恢复仍需明确确认。上下文提示直接说明原生 0% 不代表上下文为空,原生统计不变。切换账号不会让旧加密推理自动变得可跨账号使用。简短 scope 错误指向显式恢复或新会话;有界、脱敏的请求结构计数留在 Host 诊断中,不挤占主错误。**已授权**只表示授权已准备好,不表示消息已发送或恢复已成功。
174
178
 
175
179
  ## 所有权与深入阅读
176
180
 
@@ -210,14 +214,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
210
214
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
211
215
 
212
216
  ```sh
213
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
214
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/SHA256SUMS
217
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.109/dsh-github-copilot-0.4.0-alpha.109.tgz
218
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.109/SHA256SUMS
215
219
  sha256sum --check SHA256SUMS
216
220
  ```
217
221
 
218
222
  ```powershell
219
223
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
220
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.108.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
224
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.109.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
221
225
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
222
226
  ```
223
227
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.108"
11
+ "version": "0.4.0-alpha.109"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -745,6 +745,28 @@
745
745
  {"file": "tests/preview-route.spec.ts", "name": "does not retain a replay-scope failure across independent dispatches of one native prepared lease: %s"}
746
746
  ]
747
747
  },
748
+ {
749
+ "id": "managed-session-visible-history-continuation",
750
+ "required": true,
751
+ "scope": "managed-responses-exact-session-turn-and-signal",
752
+ "liveEndpointAcceptance": "not-claimed",
753
+ "sourceMarkers": [
754
+ {"file": "src/session-continuation.ts", "marker": "class SessionContinuationTurn"},
755
+ {"file": "src/session-continuation-host.ts", "marker": "path: ['continuationDefaultHistory']"},
756
+ {"file": "src/session-continuation-host.ts", "marker": "COPILOT_CONTINUATION_TURN_BOUNDARY_UNAVAILABLE"},
757
+ {"file": "src/session-continuation-remote.ts", "marker": "authorizeNext"},
758
+ {"file": "src/copilot-usage-ui.ts", "marker": "useSessionContinuationSwitch"},
759
+ {"file": "docs/account-management-experience.md", "marker": "All accounts, quota"}
760
+ ],
761
+ "tests": [
762
+ {"file": "tests/session-continuation.spec.ts", "name": "continues A-B-B-A by omitting pre-turn reasoning while retaining new tool-loop reasoning"},
763
+ {"file": "tests/session-continuation.spec.ts", "name": "does not replay baseline ciphertext after its ID or embedded summary changes"},
764
+ {"file": "tests/session-continuation-host.spec.ts", "name": "captures birth-time defaults and consumes one-turn consent"},
765
+ {"file": "tests/session-continuation-ui.spec.ts", "name": "requires off-switch choice: %s"},
766
+ {"file": "tests/preview-route.spec.ts", "name": "filters persistent Session consent through the published adapter on successive turns without history writes"},
767
+ {"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds persistent Session continuation through actual Client and %s Host gateways"}
768
+ ]
769
+ },
748
770
  {
749
771
  "id": "managed-explicit-replay-recovery",
750
772
  "required": true,
@@ -1297,7 +1319,7 @@
1297
1319
  {"file": "tests/compact-account.spec.ts", "name": "renders a neutral checking state then only a compact signed-in row"},
1298
1320
  {"file": "tests/compact-account.spec.ts", "name": "shows signed-out CTA and automatically reveals authorization without opening Manage"},
1299
1321
  {"file": "tests/compact-account.spec.ts", "name": "retains manual management and live actions when toggled during authorization"},
1300
- {"file": "tests/compact-account.spec.ts", "name": "keeps normal refresh inside Manage and visible Retry outside for actual failures"},
1322
+ {"file": "tests/compact-account.spec.ts", "name": "keeps refresh and Retry inside Manage while discovery failures stay visible when collapsed"},
1301
1323
  {"file": "tests/compact-account.spec.ts", "name": "cleans timers and ignores late requests after detach or Remote replacement"},
1302
1324
  {"file": "tests/compact-account.spec.ts", "name": "keeps cancellation failures visible without reviving a stale code"},
1303
1325
  {"file": "tests/compact-account.spec.ts", "name": "orders cancellation after pending start so a late Host preflight cannot create an abandoned flow"},
@@ -0,0 +1,93 @@
1
+ # Copilot account management and continuation experience
2
+
3
+ Approved interaction reference: [standalone mock](./mockups/copilot-account-management.html).
4
+ Open the HTML locally; append `?scenario=off-switch` to start with continuation
5
+ disabled and an account switch awaiting confirmation. All accounts, quota,
6
+ authorization, messages and model availability in this mock are synthetic.
7
+ It performs no network requests and persists no credentials or settings.
8
+
9
+ ## Chat: quick selection, not a second settings page
10
+
11
+ The Credits control opens a compact current-account summary and Switch button.
12
+ Do not render all saved accounts until Switch is opened. The selector supports
13
+ search, bounded scrolling, following the global account and adding an account.
14
+ Adding an account does not select it. Quota is account billing-cycle data, not
15
+ context occupancy or Session cost; missing and pooled data retain their semantics.
16
+
17
+ Selection applies to subsequent turns of the viewed Session. An active turn
18
+ keeps its admitted account and policy. Save failures retain their real uncertainty
19
+ and never imply that a change succeeded. Session explicit choices do not change
20
+ other Sessions or the global default.
21
+
22
+ The same panel includes a collapsible continuation policy and a single
23
+ "Manage accounts and models" entry. Full management belongs in Models.
24
+ Opening and closing Settings must not discard the composer draft or change the
25
+ selected Session. Direct navigation and automatic expansion depend on published
26
+ navigation APIs; absent support requires a named diagnostic and truthful manual
27
+ navigation instructions, not parent DOM manipulation.
28
+
29
+ ## Models: one Manage disclosure, two responsibilities
30
+
31
+ The existing native Settings layout and provider controls remain. The collapsed
32
+ Copilot contribution shows current default identity, model status, cache age and
33
+ one Manage button. Manage expands:
34
+
35
+ - Account management: current default account, Switch/search/add, identity
36
+ refresh, reauthorization, guarded removal, and new-Session continuation default.
37
+ - Model preferences: cross-account shared exclusions, model search and filters,
38
+ account-specific availability, discovery diagnostics and model refresh.
39
+
40
+ Removal requires explicit confirmation. It removes only locally saved account
41
+ authorization, not GitHub-side access, conversations or shared model preferences.
42
+ Preserve existing canonical/default/in-use removal guards; do not silently choose
43
+ another account.
44
+
45
+ Model preferences are shared by exact model ID. Availability and capability
46
+ evidence remain account-specific. Missing models retain saved preferences;
47
+ returning models reuse them without becoming selected. Newly discovered models
48
+ are enabled unless excluded, but must satisfy authenticated metadata and admission
49
+ checks. Unknown/stale availability is not verified availability or definitive
50
+ absence. Do not discover every account solely to render a union catalog.
51
+ Fixed unavailable selections require explicit user correction; Auto uses only
52
+ eligible unexcluded models of the admitted account.
53
+
54
+ ## Continuation and explicit-off recovery
55
+
56
+ The approved default is lossy visible-history continuation enabled for new
57
+ Sessions, with the loss disclosed beside the control. Existing Sessions and
58
+ seeded/forked histories must not silently inherit a new loss authorization.
59
+ Global changes do not retroactively rewrite a Session's captured initial policy.
60
+ Session overrides, including explicit off, persist and are reversible.
61
+
62
+ Every new admitted turn omits pre-existing encrypted reasoning items and their
63
+ embedded summaries, including on the same account. Visible messages, tool
64
+ calls/results and stored history remain unchanged. Current-turn reasoning stays
65
+ available for tool steps and native retries. This does not solve quota, HTTP 408
66
+ or oversized context and does not guarantee supplier acceptance.
67
+
68
+ When continuation is off and the user switches accounts, stop before saving the
69
+ selection and disclose the potential replay risk. Offer persistent enable and
70
+ switch, next-turn-only enable and switch, keep off and switch, or cancel.
71
+ Account differences alone do not prove supplier rejection. Never guess encrypted
72
+ item origin or silently filter history.
73
+
74
+ After an exact supplier replay rejection, retain the native failed turn and
75
+ surface persistent enable or next-turn-only authorization plus full management
76
+ navigation. Authorization never sends or retries. The user explicitly retries
77
+ the task through the native mechanism. Mock assistant answers are demonstrations,
78
+ not evidence of real cross-account success. Do not fabricate durable messages,
79
+ errors, replay or assistant content to imitate the mock.
80
+
81
+ ## Theme and accessibility
82
+
83
+ Use native theme tokens for surfaces, text, borders, focus and errors. Native
84
+ select popup options must remain readable in dark and light themes; do not inherit
85
+ light popup backgrounds with dark-theme white text. Search and long account lists
86
+ must remain keyboard-operable, bounded and usable on narrow viewports. Explicit
87
+ loading, unknown, stale, failed-save and cancellation states are required.
88
+
89
+ ## Implementation status
90
+
91
+ This document records the approved target, not a release or runtime attestation.
92
+ Implementation, native gateway/settings persistence, request admission,
93
+ dark/light interaction checks and required CI must qualify it before delivery.
@@ -13,8 +13,9 @@ publication, installation and loaded runtime state are separate evidence.
13
13
  - Keep multiple independently authorized GitHub Copilot accounts in one DSH
14
14
  profile. Models retains the global default. Sessions without an override
15
15
  inherit that default at each new turn; explicit Session choices take priority.
16
- - Models alone manages authorizations. A low-frequency account selector inside
17
- existing Credits applies to this Session's subsequent turns. No standalone
16
+ - Models manages reauthorization/removal and the global default; Credits supports
17
+ add-only authorization without selection. Its searchable account selector
18
+ applies to this Session's subsequent turns. No standalone
18
19
  composer selector, one-turn override or DSH application identity replacement.
19
20
  - Persist OAuth grants through the existing DSH credentials service. Use
20
21
  official pi-ai login, refresh and transport, not copied credentials, a token
@@ -218,12 +219,18 @@ cannot be named `remove`: official rc.2 reserves that inherited service name
218
219
  and rejects the entire Client contribution.
219
220
 
220
221
  Credits shows the Session's next-turn account and quota under the existing title.
221
- Its **Switch account** disclosure lists saved authorizations and **Follow global
222
- default**. No Add, reauthorization or sign-out action appears in Chat. Changing
222
+ Its **Switch** disclosure searches saved authorizations and offers **Follow global
223
+ default** plus add-only authorization. Reauthorization, removal and global
224
+ selection remain in Models. Changing
223
225
  the preference while a turn runs leaves that turn's old account pinned; the
224
226
  popover identifies it separately. Other Sessions are unchanged. Unknown identity
225
227
  is unavailable, not a stale username presented as current.
226
228
 
229
+ One Models **Manage** groups account management and shared exact-ID model
230
+ preferences. The Credits account panel contains continuation policy; when off,
231
+ an account change pauses for explicit persistent/next-turn/off/cancel consent.
232
+ See [the approved experience and mock](./account-management-experience.md).
233
+
227
234
  Completed managed turns have a compact **Account** disclosure alongside native
228
235
  Usage/selection actions through the public assistant-actions slot. This is
229
236
  request-account evidence, not billing attribution or a subagent account rollup.