dsh-github-copilot 0.4.0-alpha.98 → 0.4.0
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 +97 -17
- package/CHANGELOG.md +217 -0
- package/CONTRIBUTING.md +9 -0
- package/README.md +108 -18
- package/README.zh.md +99 -18
- package/deployment-baseline.json +234 -8
- package/docs/account-management-experience.md +143 -0
- package/docs/auto-high-cost.md +154 -0
- package/docs/auto-iteration-review.json +22 -0
- package/docs/auto-review-sampling.md +60 -0
- package/docs/auto-task-routing.md +23 -7
- package/docs/automatic-model-routing.md +33 -5
- package/docs/copilot-accounts.md +376 -0
- package/docs/copilot-compaction.md +23 -2
- package/docs/copilot-usage.md +24 -4
- package/docs/evidence-driven-iteration.md +86 -0
- package/docs/images/copilot-accounts-credits.png +0 -0
- package/docs/images/copilot-accounts.png +0 -0
- package/docs/images/copilot-current-provenance.json +39 -0
- package/docs/images/copilot-model-preferences.png +0 -0
- package/docs/images/copilot-search-routing.png +0 -0
- package/docs/images/copilot-session-continuation.png +0 -0
- package/docs/manual-compaction-recovery.md +50 -7
- package/docs/mockups/copilot-account-dropdown.html +71 -0
- package/docs/mockups/copilot-account-management.html +393 -0
- package/docs/model-compatibility-acceptance.md +34 -16
- package/docs/official-first-020-rc2.md +1 -0
- package/docs/plugin-diagnostics.md +452 -0
- package/docs/session-continuation.md +141 -0
- package/docs/session-search-routing.md +1 -1
- package/docs/single-route-migration.md +5 -4
- package/lib/client.js +4415 -846
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis-io.js +78 -0
- package/lib/diagnostics-analysis.js +425 -0
- package/lib/diagnostics-types-FVf6zjob.js +182 -0
- package/lib/index.js +10391 -6015
- package/lib/manual-compaction-recovery.js +163 -38
- package/lib/remote.js +593 -34
- package/lib/routed-web.js +1 -1
- package/lib/{search-routing-jzNYveyK.js → search-routing-CV2hs8as.js} +139 -139
- package/lib/types/account-dropdown.d.ts +22 -0
- package/lib/types/account-model-auth.d.ts +1 -1
- package/lib/types/authorization-code-clipboard.d.ts +4 -0
- package/lib/types/authorization-controller.d.ts +2 -0
- package/lib/types/auto-allocation-card.d.ts +9 -0
- package/lib/types/auto-allocation-evidence.d.ts +38 -0
- package/lib/types/auto-allocation.d.ts +24 -0
- package/lib/types/auto-model-host.d.ts +2 -0
- package/lib/types/auto-model-routing.d.ts +6 -2
- package/lib/types/auto-review-sampling.d.ts +6 -0
- package/lib/types/auto-task-assessment.d.ts +1 -1
- package/lib/types/auto-task-classifier.d.ts +2 -2
- package/lib/types/background-compaction.d.ts +2 -2
- package/lib/types/client.d.ts +19 -3
- package/lib/types/compaction-continuation-ui.d.ts +29 -0
- package/lib/types/compaction-continuation.d.ts +48 -0
- package/lib/types/compaction-input-estimate.d.ts +24 -0
- package/lib/types/compaction-replay.d.ts +18 -0
- package/lib/types/composer-notice-style.d.ts +7 -0
- package/lib/types/config.d.ts +42 -2
- package/lib/types/context-evidence-ui.d.ts +18 -1
- package/lib/types/context-evidence.d.ts +152 -4
- package/lib/types/copilot-account-presentation.d.ts +7 -0
- package/lib/types/copilot-accounts-card.d.ts +43 -0
- package/lib/types/copilot-accounts-host.d.ts +93 -0
- package/lib/types/copilot-accounts-remote.d.ts +85 -0
- package/lib/types/copilot-accounts-types.d.ts +43 -0
- package/lib/types/copilot-auth.d.ts +3 -1
- package/lib/types/copilot-usage-card.d.ts +23 -0
- package/lib/types/copilot-usage-host.d.ts +9 -1
- package/lib/types/copilot-usage-remote.d.ts +2 -1
- package/lib/types/copilot-usage-types.d.ts +1 -0
- package/lib/types/diagnostics-analysis-io.d.ts +23 -0
- package/lib/types/diagnostics-analysis.d.ts +295 -0
- package/lib/types/diagnostics-card.d.ts +11 -0
- package/lib/types/diagnostics-client.d.ts +13 -0
- package/lib/types/diagnostics-collector.d.ts +36 -0
- package/lib/types/diagnostics-host.d.ts +72 -0
- package/lib/types/diagnostics-remote.d.ts +109 -0
- package/lib/types/diagnostics-types.d.ts +431 -0
- package/lib/types/manual-compaction-recovery.d.ts +18 -3
- package/lib/types/model-preferences-card.d.ts +1 -1
- package/lib/types/native-settings-style.d.ts +10 -0
- package/lib/types/parent-model-follow-card.d.ts +2 -11
- package/lib/types/preview-provider.d.ts +6 -0
- package/lib/types/preview-route.d.ts +7 -5
- package/lib/types/remote.d.ts +9 -6
- package/lib/types/replay-recovery-host.d.ts +2 -2
- package/lib/types/replay-recovery-ui.d.ts +3 -1
- package/lib/types/request-body-evidence.d.ts +3 -1
- package/lib/types/responses-replay-compat.d.ts +2 -1
- package/lib/types/responses-request-compression.d.ts +33 -0
- package/lib/types/session-accounts-controller.d.ts +20 -0
- package/lib/types/session-accounts-host.d.ts +33 -0
- package/lib/types/session-accounts-remote.d.ts +114 -0
- package/lib/types/session-accounts.d.ts +38 -0
- package/lib/types/session-continuation-host.d.ts +45 -0
- package/lib/types/session-continuation-remote.d.ts +22 -0
- package/lib/types/session-continuation-types.d.ts +62 -0
- package/lib/types/session-continuation-ui.d.ts +49 -0
- package/lib/types/session-continuation.d.ts +14 -0
- package/lib/types/turn-request-models.d.ts +55 -0
- package/lib/types/turn-selection-card.d.ts +15 -1
- package/lib/types/turn-selection-host.d.ts +23 -0
- package/lib/types/turn-selection-remote.d.ts +4 -0
- package/lib/types/turn-selection.d.ts +19 -4
- package/package.json +19 -3
- package/scripts/analyze-diagnostics.mjs +91 -0
- package/scripts/iteration-review.mjs +53 -0
package/deployment-baseline.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.4.0
|
|
11
|
+
"version": "0.4.0"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"piAi": "0.87.1",
|
|
253
253
|
"runtimeDependencies": {
|
|
254
254
|
"@earendil-works/pi-ai": "0.87.1",
|
|
255
|
-
"zod": "
|
|
255
|
+
"zod": "4.6.5"
|
|
256
256
|
},
|
|
257
257
|
"sharedPeerDependencies": {
|
|
258
258
|
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
@@ -288,6 +288,91 @@
|
|
|
288
288
|
]
|
|
289
289
|
},
|
|
290
290
|
"capabilities": [
|
|
291
|
+
{
|
|
292
|
+
"id": "copilot-local-diagnostics",
|
|
293
|
+
"required": true,
|
|
294
|
+
"evidenceScope": "synthetic-collector-ui-native-gateway-storage-and-settings-not-live-reliability",
|
|
295
|
+
"activation": "default-off-explicit-profile-local-enable",
|
|
296
|
+
"sourceMarkers": [
|
|
297
|
+
{"file": "src/diagnostics-types.ts", "marker": "DIAGNOSTICS_MAX_BYTES = 2 * 1024 * 1024"},
|
|
298
|
+
{"file": "src/diagnostics-collector.ts", "marker": "noteClientGaps"},
|
|
299
|
+
{"file": "src/diagnostics-host.ts", "marker": "diagnosticsDomainForProfile"},
|
|
300
|
+
{"file": "src/diagnostics-client.ts", "marker": "createClientDiagnosticsScope"},
|
|
301
|
+
{"file": "src/remote.ts", "marker": "...diagnosticsRemote.descriptors"},
|
|
302
|
+
{"file": "src/config.ts", "marker": "diagnosticsEnabled:"},
|
|
303
|
+
{"file": "AGENTS.md", "marker": "Default-off local account/Checking/compaction diagnostics"}
|
|
304
|
+
],
|
|
305
|
+
"tests": [
|
|
306
|
+
{"file": "tests/diagnostics-collector.spec.ts", "name": "is disabled until enabled, records success denominators and settles once"},
|
|
307
|
+
{"file": "tests/diagnostics-client.spec.ts", "name": "rejects stale status responses and settles an unmounted Checking operation once"},
|
|
308
|
+
{"file": "tests/diagnostics-card.spec.ts", "name": "requires a confirmed durable enable and a separate destructive clear confirmation"},
|
|
309
|
+
{"file": "tests/fixtures/diagnostics-storage-core.fixture.ts", "name": "isolates profiles on the home-wide backend and preserves memory on a real publish failure"},
|
|
310
|
+
{"file": "tests/fixtures/diagnostics-gateway-core.fixture.ts", "name": "binds diagnostics through actual strict Client and Host gateways with durable enable and clear fences"}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"id": "copilot-session-accounts",
|
|
315
|
+
"required": true,
|
|
316
|
+
"evidenceScope": "synthetic-turn-routing-native-gateways-settings-persistence-and-ui-not-live-account-access",
|
|
317
|
+
"activation": "managed-only-explicit-session-choice-or-global-default",
|
|
318
|
+
"sourceMarkers": [
|
|
319
|
+
{"file": "src/session-accounts-host.ts", "marker": "class SessionAccountsHost"},
|
|
320
|
+
{"file": "src/session-accounts-controller.ts", "marker": "extends TypertRemoteService"},
|
|
321
|
+
{"file": "src/session-accounts-remote.ts", "marker": "githubCopilotSessionAccount"},
|
|
322
|
+
{"file": "src/config.ts", "marker": "sessionAccounts:"},
|
|
323
|
+
{"file": "src/remote.ts", "marker": "...sessionAccountsRemote.descriptors"},
|
|
324
|
+
{"file": "AGENTS.md", "marker": "Historical Account is an additive assistant-actions disclosure"}
|
|
325
|
+
],
|
|
326
|
+
"tests": [
|
|
327
|
+
{"file": "tests/session-accounts.spec.ts", "name": "freezes each turn across preference changes, steps and retries"},
|
|
328
|
+
{"file": "tests/session-accounts-host.spec.ts", "name": "holds account mutation fencing through abort until the actual turn boundary"},
|
|
329
|
+
{"file": "tests/session-accounts-host.spec.ts", "name": "ignores identity completion after the turn ends"},
|
|
330
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "switches only subsequent Session turns inside Credits and can restore inheritance"},
|
|
331
|
+
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds Session account choices and historical reads through native Client and %s Host gateways"},
|
|
332
|
+
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent native credentials and SettingsForms CAS across profile restart without cross-account OAuth writes"}
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"id": "independent-copilot-accounts",
|
|
337
|
+
"required": true,
|
|
338
|
+
"evidenceScope": "synthetic-public-services-native-adapter-and-ui-not-live-oauth-or-provider-access",
|
|
339
|
+
"activation": "managed-only-explicit-account-selector",
|
|
340
|
+
"sourceMarkers": [
|
|
341
|
+
{"file": "src/copilot-accounts-host.ts", "marker": "async ensureIdentityFor(accountId: string)"},
|
|
342
|
+
{"file": "AGENTS.md", "marker": "Approved multi-account ownership extension (#297)"},
|
|
343
|
+
{"file": "src/remote.ts", "marker": "...copilotAccountsRemote.descriptors"},
|
|
344
|
+
{"file": "src/copilot-accounts-card.ts", "marker": "removeAccount(accountId: string, expectedRevision: number)"},
|
|
345
|
+
{"file": "src/copilot-account-presentation.ts", "marker": "account data and credentials never travel between surfaces"},
|
|
346
|
+
{"file": "docs/copilot-accounts.md", "marker": "A mutable active-account lookup inside each store method is forbidden"}
|
|
347
|
+
],
|
|
348
|
+
"tests": [
|
|
349
|
+
{"file": "tests/copilot-identity-refresh.spec.ts", "name": "renews expired identity once for account %s without changing metadata-only reads"},
|
|
350
|
+
{"file": "tests/copilot-account-identity-cache.spec.ts", "name": "hydrates saved inactive names without activating them, then reuses them"},
|
|
351
|
+
{"file": "tests/account-dropdown.spec.ts", "name": "backs translucent native menu tokens with opaque Canvas and uses a dark elevation shadow"},
|
|
352
|
+
{"file": "tests/copilot-account-identity-cache.spec.ts", "name": "retains inactive verified names after freshness expiry without reads or network in status"},
|
|
353
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "settles quota before a slow identity renewal and uses nonforcing ensure on visible refresh cadence"},
|
|
354
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "freezes the effective account when following is unchecked and restores following through the same CAS"},
|
|
355
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "retains confirmed following when consent is cancelled and disables it during confirmation"},
|
|
356
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "disables following when the Session selection cannot be read instead of treating it as a fixed account"},
|
|
357
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "never writes a captured A refresh into B after an external selection change"},
|
|
358
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "runs fresh switch identity and model preflight concurrently but commits only after both settle"},
|
|
359
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "permits record-bound requests during selector switching without admitting global requests or credential mutations"},
|
|
360
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "cancels and drains sibling switch preflight before releasing its mutation fence"},
|
|
361
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "rejects a changed credential identity during overlapping switch checks without saving"},
|
|
362
|
+
{"file": "tests/copilot-accounts-card.spec.ts", "name": "renders metadata and permits a confirmed switch while unrelated identity names remain pending"},
|
|
363
|
+
{"file": "tests/copilot-accounts-card.spec.ts", "name": "uses the latest parent callback without resetting a pending switch or repeating initial reads"},
|
|
364
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "preserves uncertain commit ahead of missing-slot recovery"},
|
|
365
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "rechecks externally started canonical authorization before selector CAS"},
|
|
366
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "retains canonical admission through polling and cancellation settlement"},
|
|
367
|
+
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent native credentials and SettingsForms CAS across profile restart without cross-account OAuth writes"},
|
|
368
|
+
{"file": "tests/copilot-accounts-card.spec.ts", "name": "requires a separate confirmation and uses the captured selector revision"},
|
|
369
|
+
{"file": "tests/copilot-accounts-card.spec.ts", "name": "reauthorizes the existing slot without requesting a new account or switching"},
|
|
370
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "shows current identity only in details without a Chat switching control"},
|
|
371
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "refuses to combine account B identity with account A quota"},
|
|
372
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "immediately revokes mounted presentation on a Models mutation and rejects late previous-account results"},
|
|
373
|
+
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "mounts authorization, account, role and search-catalog Remotes on the exact target Client gateway"}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
291
376
|
{
|
|
292
377
|
"id": "missing-turn-usage-explanation",
|
|
293
378
|
"required": true,
|
|
@@ -321,12 +406,21 @@
|
|
|
321
406
|
{"file": "src/index.ts", "marker": "installContextEvidence(ctx)"},
|
|
322
407
|
{"file": "src/client.ts", "marker": "registerContextEvidenceUi"},
|
|
323
408
|
{"file": "src/context-evidence.ts", "marker": "githubCopilotContextEvidence"},
|
|
409
|
+
{"file": "src/context-evidence-ui.ts", "marker": "ContextIncidentPresentation"},
|
|
410
|
+
{"file": "src/replay-recovery-ui.ts", "marker": "conversation.input.dock"},
|
|
411
|
+
{"file": "src/composer-notice-style.ts", "marker": "var(--dsh-content-font-size-secondary, 13px)"},
|
|
324
412
|
{"file": "docs/copilot-usage.md", "marker": "historical input sample, not current occupancy"}
|
|
325
413
|
],
|
|
326
414
|
"tests": [
|
|
327
415
|
{"file": "tests/context-usage.spec.ts", "name": "classifies zero only for separate historical evidence without changing the sample"},
|
|
328
416
|
{"file": "tests/context-evidence.spec.ts", "name": "replays failed zero samples without discarding the last valid input sample"},
|
|
417
|
+
{"file": "tests/context-evidence.spec.ts", "name": "separates committed compaction, subsequent request success and applicable input sampling"},
|
|
418
|
+
{"file": "tests/context-evidence.spec.ts", "name": "tracks unchanged-header native steps and reads only the settled message source leaves"},
|
|
419
|
+
{"file": "tests/context-evidence.spec.ts", "name": "keeps ordinary repeated steps and unsampled success quiet after compaction"},
|
|
329
420
|
{"file": "tests/context-evidence-ui.spec.ts", "name": "labels counts as historical rather than current occupancy in %s"},
|
|
421
|
+
{"file": "tests/context-evidence-ui.spec.ts", "name": "reacts to only the current open Session and pending selection, preserving the native meter"},
|
|
422
|
+
{"file": "tests/context-evidence-ui.spec.ts", "name": "keeps unknown projection evidence diagnostic-only"},
|
|
423
|
+
{"file": "tests/replay-recovery-ui.spec.ts", "name": "uses native auxiliary typography for the entire notice and inherited controls in an independent dock row"},
|
|
330
424
|
{"file": "tests/fixtures/session-context-core.fixture.ts", "name": "cold-folds native model selections independently without replacing the controller projection"},
|
|
331
425
|
{"file": "tests/preview-route.spec.ts", "name": "forwards native SDK failed zero usage without changing the shared accounting stream"},
|
|
332
426
|
{"file": "tests/preview-route.spec.ts", "name": "preserves native cancellation usage on %s (%s input tokens)"},
|
|
@@ -356,7 +450,7 @@
|
|
|
356
450
|
{"file": "tests/fixtures/copilot-usage-selector-core.fixture.ts", "name": "renders and reacts to the owning Session on %s"},
|
|
357
451
|
{"file": "tests/scripts/copilot-usage-gateway.test.mjs", "name": "quota Remote reaches the actual Host gateway without startup or signed-out network requests"},
|
|
358
452
|
{"file": "tests/client-bundle.spec.ts", "name": "mounts strict Host result codecs through the published rc.1 client carrier"},
|
|
359
|
-
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "mounts authorization, role and search-catalog Remotes on the exact target Client gateway"}
|
|
453
|
+
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "mounts authorization, account, role and search-catalog Remotes on the exact target Client gateway"}
|
|
360
454
|
]
|
|
361
455
|
},
|
|
362
456
|
{
|
|
@@ -505,19 +599,40 @@
|
|
|
505
599
|
"evidenceScope": "synthetic-public-subclass-and-exact-tagged-source-no-live-inference",
|
|
506
600
|
"sourceMarkers": [
|
|
507
601
|
{"file": "src/manual-compaction-recovery.ts", "marker": "extends BasicCompactionEngine"},
|
|
602
|
+
{"file": "src/manual-compaction-recovery.ts", "marker": "automaticRecovery: z.boolean().default(true)"},
|
|
603
|
+
{"file": "src/manual-compaction-recovery.ts", "marker": "maxCalls: failedAttempt ? 15 : 16"},
|
|
604
|
+
{"file": "src/manual-compaction-recovery.ts", "marker": "reduceCompactionInputLimit(input, inputLimit)"},
|
|
605
|
+
{"file": "src/compaction-input-estimate.ts", "marker": "export function estimateCompactionInputBytes"},
|
|
508
606
|
{"file": "src/manual-compaction-recovery.ts", "marker": "COPILOT_MANUAL_RECOVERY_"},
|
|
509
607
|
{"file": "src/background-compaction.ts", "marker": "copilot-compact"},
|
|
608
|
+
{"file": "src/compaction-replay.ts", "marker": "request.purpose !== 'compaction'"},
|
|
609
|
+
{"file": "src/compaction-continuation.ts", "marker": "COPILOT_CONTINUATION_COMPACTION_BOUNDARY_UNAVAILABLE"},
|
|
610
|
+
{"file": "src/compaction-continuation-ui.ts", "marker": "Compacting with visible history"},
|
|
611
|
+
{"file": "src/compaction-continuation-ui.ts", "marker": "const successLifetimeMs = 8000"},
|
|
612
|
+
{"file": "src/context-evidence-ui.ts", "marker": "presentation.dispose()"},
|
|
613
|
+
{"file": "src/background-compaction.ts", "marker": "visible-history"},
|
|
510
614
|
{"file": "src/background-compaction.ts", "marker": "this.jobs.wait(jobId"},
|
|
511
615
|
{"file": "src/preview-route.ts", "marker": "recoveryLimits(modelId)"},
|
|
512
616
|
{"file": "docs/manual-compaction-recovery.md", "marker": "separately selected"}
|
|
513
617
|
],
|
|
514
618
|
"tests": [
|
|
619
|
+
{"file": "tests/compaction-continuation-ui.spec.ts", "name": "expires eight seconds after first confirmed completion, not rerender, reread or remount"},
|
|
620
|
+
{"file": "tests/compaction-continuation-ui.spec.ts", "name": "keeps unavailable distinct and dismissible without hiding a later failure"},
|
|
515
621
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "reduces an oversized balanced history with bounded complete calls and an unmarked aggregate audit"},
|
|
622
|
+
{"file": "tests/compaction-input-estimate.spec.ts", "name": "avoids metadata-driven sixteen-call exhaustion without changing dispatched messages"},
|
|
516
623
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "rejects an indivisible span before dispatch and leaves recovery to native failure handling"},
|
|
517
624
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "rejects unmatched tool calls before dispatch instead of splitting a call and result"},
|
|
518
625
|
{"file": "tests/background-compaction.spec.ts", "name": "acknowledges before completion and outlives a five-minute caller deadline"},
|
|
626
|
+
{"file": "tests/compaction-replay.spec.ts", "name": "authorizes only the exact manual summary operation and preserves visible tool content"},
|
|
627
|
+
{"file": "tests/session-continuation-host.spec.ts", "name": "applies persisted continuation before a native summary and reports only native replacement success"},
|
|
628
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "persistent policy restores automatic replay-blocked compaction without a command, recovery engine=%s"},
|
|
629
|
+
{"file": "tests/background-compaction.spec.ts", "name": "reports only allowlisted causes through native error wrappers"},
|
|
630
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "recovers only an explicitly authorized manual job through one native transaction"},
|
|
519
631
|
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "commits beyond the carrier deadline without a model wakeup and keeps status owner-scoped"},
|
|
520
|
-
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "recovers oversized manual history with one native transaction and honest multi-call audit"}
|
|
632
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "recovers oversized manual history with one native transaction and honest multi-call audit"},
|
|
633
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "defaults automatic oversized recovery on without a manual command, enabled=%s"},
|
|
634
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "escalates only a typed summary capacity failure once: %s"},
|
|
635
|
+
{"file": "tests/preview-route.spec.ts", "name": "binds explicit summary capacity proof to its Agent rather than the current default"}
|
|
521
636
|
]
|
|
522
637
|
},
|
|
523
638
|
{
|
|
@@ -584,8 +699,11 @@
|
|
|
584
699
|
{"file": "src/remote.ts", "marker": "githubCopilot.setModelExcluded"},
|
|
585
700
|
{"file": "src/preview-provider.ts", "marker": "native.streamSimple"},
|
|
586
701
|
{"file": "src/auto-assessment-evidence.ts", "marker": "SemanticAssessmentEvidenceSchema"},
|
|
702
|
+
{"file": "src/auto-task-assessment.ts", "marker": "performance.now() >= deadline"},
|
|
587
703
|
{"file": "src/request-body-timeout-marker.ts", "marker": "COPILOT_REQUEST_BODY_TIMEOUT"},
|
|
588
704
|
{"file": "src/request-body-evidence.ts", "marker": "REQUEST_BODY_EVIDENCE_LIMITS"},
|
|
705
|
+
{"file": "src/responses-request-compression.ts", "marker": "MAXIMUM_WORK_BYTES"},
|
|
706
|
+
{"file": "src/responses-request-compression.ts", "marker": "satisfiesCompressionSavings"},
|
|
589
707
|
{"file": "src/request-upload-evidence.ts", "marker": "createRequestUploadObserver"},
|
|
590
708
|
{"file": "src/copilot-stream-liveness.ts", "marker": "COPILOT_STREAM_IDLE_TIMEOUT"},
|
|
591
709
|
{"file": "src/preview-route.ts", "marker": "Math.min(idle * 2, 2_147_483_647)"},
|
|
@@ -593,6 +711,27 @@
|
|
|
593
711
|
{"file": "src/pi-provider-bridge.ts", "marker": "PiStreamPublicCompatibility"}
|
|
594
712
|
],
|
|
595
713
|
"tests": [
|
|
714
|
+
{"file": "tests/responses-request-compression.spec.ts", "name": "losslessly gzips eligible JSON and sets exact HTTP encoding and length without mutating headers"},
|
|
715
|
+
{"file": "tests/responses-request-compression.spec.ts", "name": "skips bodies above the compression work limit"},
|
|
716
|
+
{"file": "tests/responses-request-compression.spec.ts", "name": "requires both the absolute and proportional savings thresholds"},
|
|
717
|
+
{"file": "tests/config.spec.ts", "name": "keeps managed Responses request compression default-off and boolean-only"},
|
|
718
|
+
{"file": "tests/preview-provider.spec.ts", "name": "preserves published-adapter JSON and usage across identity and gzip encoding"},
|
|
719
|
+
{"file": "tests/preview-provider.spec.ts", "name": "keeps caller-owned Fetch unchanged and does not resend a gzip 415 response"},
|
|
720
|
+
{"file": "tests/preview-provider.spec.ts", "name": "rechecks the request/account fence with both opt-ins and never dispatches revoked work"},
|
|
721
|
+
{"file": "tests/preview-provider.spec.ts", "name": "keeps native %s transport when the option is enabled"},
|
|
722
|
+
{"file": "tests/preview-provider.spec.ts", "name": "sends gzip with correct framing through Node Fetch"},
|
|
723
|
+
{"file": "tests/preview-provider.spec.ts", "name": "keeps original JSON for replay-scope checks after gzip without retiring the account"},
|
|
724
|
+
{"file": "tests/preview-provider.spec.ts", "name": "recompresses identical native JSON after HTTP 408 retries without an identity resend"},
|
|
725
|
+
{"file": "tests/preview-route.spec.ts", "name": "reads compression policy when a prepared Responses call reaches lazy HTTP dispatch"},
|
|
726
|
+
{"file": "tests/preview-route.spec.ts", "name": "does not let compressed wire bytes bypass native hard context admission"},
|
|
727
|
+
{"file": "tests/request-body-timeout.spec.ts", "name": "distinguishes original JSON composition from compressed HTTP body bytes"},
|
|
728
|
+
{"file": "tests/request-body-timeout.spec.ts", "name": "reports a skipped opt-in compression reason without changing identity diagnostics"},
|
|
729
|
+
{"file": "tests/auto-task-assessment.spec.ts", "name": "rejects late results even before the scheduled timeout callback runs"},
|
|
730
|
+
{"file": "tests/auto-task-assessment.spec.ts", "name": "aborts preparation at the monotonic deadline before an adapter can start"},
|
|
731
|
+
{"file": "tests/preview-route.spec.ts", "name": "does not dispatch an auxiliary request when native preparation outlasts a delayed deadline timer"},
|
|
732
|
+
{"file": "tests/preview-provider.spec.ts", "name": "checks the auxiliary deadline immediately before native %s Fetch and releases the lease"},
|
|
733
|
+
{"file": "tests/auto-task-classifier.spec.ts", "name": "prefers advertised reasoning-off candidates without inferring latency or model-name capabilities"},
|
|
734
|
+
{"file": "tests/auto-selection-explanation.spec.ts", "name": "distinguishes continuity and category pool from semantic model merit (%s)"},
|
|
596
735
|
{"file": "tests/preview-provider.spec.ts", "name": "routes an unseen ID through published Core and native %s with Bearer auth"},
|
|
597
736
|
{"file": "tests/preview-provider.spec.ts", "name": "takes protocol and independent input limits from descriptor evidence rather than the local GPT-6 catalog"},
|
|
598
737
|
{"file": "tests/preview-provider.spec.ts", "name": "does not infer controls from a name or unfamiliar advertised effort labels"},
|
|
@@ -602,6 +741,9 @@
|
|
|
602
741
|
{"file": "tests/preview-route.spec.ts", "name": "uses unmodified stock LlmRuntime preparation and leaves canonical model registration alone"},
|
|
603
742
|
{"file": "tests/fixtures/model-exclusions-core.fixture.ts", "name": "keeps native tool steps in an admitted turn after exclusion and enforces exclusion on the next turn (%s)"},
|
|
604
743
|
{"file": "tests/authorization-controller.spec.ts", "name": "answers a narrow single-model save without reading credentials or enumerating sessions"},
|
|
744
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "keeps a real mounted row saving across equivalent parent snapshots and applies the strict result without rereading"},
|
|
745
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "sends one CAS intent at a time and never sends a queued intent after an unconfirmed response"},
|
|
746
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "cancels unsent row intents explicitly on a changed preference scope and ignores the late save"},
|
|
605
747
|
{"file": "tests/preview-route.spec.ts", "name": "replays opaque reasoning and tool-call identities through the native adapter on a second turn"},
|
|
606
748
|
{"file": "tests/preview-route.spec.ts", "name": "enriches only a verified 408 while preserving native failure classification and retry ownership"},
|
|
607
749
|
{"file": "tests/preview-provider.spec.ts", "name": "observes verified %s timeout without changing bytes, Response, native retries or credential ownership"},
|
|
@@ -684,6 +826,38 @@
|
|
|
684
826
|
{"file": "tests/preview-route.spec.ts", "name": "does not retain a replay-scope failure across independent dispatches of one native prepared lease: %s"}
|
|
685
827
|
]
|
|
686
828
|
},
|
|
829
|
+
{
|
|
830
|
+
"id": "managed-session-visible-history-continuation",
|
|
831
|
+
"required": true,
|
|
832
|
+
"scope": "managed-responses-exact-session-turn-and-signal",
|
|
833
|
+
"liveEndpointAcceptance": "not-claimed",
|
|
834
|
+
"sourceMarkers": [
|
|
835
|
+
{"file": "src/session-continuation.ts", "marker": "class SessionContinuationTurn"},
|
|
836
|
+
{"file": "src/session-continuation.ts", "marker": "COPILOT_CONTINUATION_REASONING_WORK_LIMIT"},
|
|
837
|
+
{"file": "src/session-continuation-host.ts", "marker": "path: ['continuationDefaultHistory']"},
|
|
838
|
+
{"file": "src/session-continuation-host.ts", "marker": "COPILOT_CONTINUATION_TURN_BOUNDARY_UNAVAILABLE"},
|
|
839
|
+
{"file": "src/session-continuation-remote.ts", "marker": "authorizeNext"},
|
|
840
|
+
{"file": "src/copilot-usage-ui.ts", "marker": "useSessionContinuationSwitch"},
|
|
841
|
+
{"file": "src/account-dropdown.ts", "marker": "data-copilot-dropdown-option"},
|
|
842
|
+
{"file": "docs/mockups/copilot-account-dropdown.html", "marker": "Approved Dropdown Mock"},
|
|
843
|
+
{"file": "docs/account-management-experience.md", "marker": "All accounts, quota"}
|
|
844
|
+
],
|
|
845
|
+
"tests": [
|
|
846
|
+
{"file": "tests/account-dropdown.spec.ts", "name": "supports arrows, Home, End and Escape without closing the containing Chat panel"},
|
|
847
|
+
{"file": "tests/session-continuation.spec.ts", "name": "continues A-B-B-A by omitting pre-turn reasoning while retaining new tool-loop reasoning"},
|
|
848
|
+
{"file": "tests/session-continuation.spec.ts", "name": "does not traverse or serialize ordinary contents when a request exceeds 16 MiB"},
|
|
849
|
+
{"file": "tests/session-continuation.spec.ts", "name": "omits large historical ciphertext without a whole-request byte cap"},
|
|
850
|
+
{"file": "tests/session-continuation.spec.ts", "name": "yields during ciphertext hashing and rejects revocation without establishing a baseline"},
|
|
851
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "compacts and rebuilds an Auto request with large historical continuation reasoning, continuing=%s"},
|
|
852
|
+
{"file": "tests/replay-recovery-ui.spec.ts", "name": "enables only persistent Session continuation after loss disclosure, without legacy authorization or sending"},
|
|
853
|
+
{"file": "tests/replay-recovery-ui.spec.ts", "name": "does not reauthorize an already enabled policy or change it when failure evidence expires"},
|
|
854
|
+
{"file": "tests/session-continuation.spec.ts", "name": "does not replay baseline ciphertext after its ID or embedded summary changes"},
|
|
855
|
+
{"file": "tests/session-continuation-host.spec.ts", "name": "captures birth-time defaults and consumes one-turn consent"},
|
|
856
|
+
{"file": "tests/session-continuation-ui.spec.ts", "name": "requires off-switch choice: %s"},
|
|
857
|
+
{"file": "tests/preview-route.spec.ts", "name": "filters persistent Session consent through the published adapter on successive turns without history writes"},
|
|
858
|
+
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds persistent Session continuation through actual Client and %s Host gateways"}
|
|
859
|
+
]
|
|
860
|
+
},
|
|
687
861
|
{
|
|
688
862
|
"id": "managed-explicit-replay-recovery",
|
|
689
863
|
"required": true,
|
|
@@ -695,14 +869,15 @@
|
|
|
695
869
|
{"file": "src/replay-recovery-host.ts", "marker": "COPILOT_REPLAY_RECOVERY_TURN_ACTIVE"},
|
|
696
870
|
{"file": "src/replay-recovery-remote.ts", "marker": "githubCopilotReplayRecovery.setEnabled"},
|
|
697
871
|
{"file": "src/replay-recovery-remote.ts", "marker": "githubCopilotReplayRecovery.authorize"},
|
|
698
|
-
{"file": "src/replay-recovery-ui.ts", "marker": "
|
|
872
|
+
{"file": "src/replay-recovery-ui.ts", "marker": "recovery: true"},
|
|
873
|
+
{"file": "src/session-continuation-ui.ts", "marker": "Enable visible-history continuation"}
|
|
699
874
|
],
|
|
700
875
|
"tests": [
|
|
701
876
|
{"file": "tests/replay-recovery.spec.ts", "name": "keeps default replay and requires a revision-bound confirmation"},
|
|
702
877
|
{"file": "tests/replay-recovery.spec.ts", "name": "preserves source, fresh reasoning, tools, other models and other owners"},
|
|
703
878
|
{"file": "tests/replay-recovery-host.spec.ts", "name": "requires the native initiating session and signal, rejects active-turn writes and revokes late requests"},
|
|
704
879
|
{"file": "tests/replay-recovery.spec.ts", "name": "admits only the next matching native turn, including its steps and retries"},
|
|
705
|
-
{"file": "tests/replay-recovery-ui.spec.ts", "name": "
|
|
880
|
+
{"file": "tests/replay-recovery-ui.spec.ts", "name": "enables only persistent Session continuation after loss disclosure, without legacy authorization or sending"},
|
|
706
881
|
{"file": "tests/replay-recovery-ui.spec.ts", "name": "is absent normally, reads on settled turns without polling and resets dismissal only for new evidence"},
|
|
707
882
|
{"file": "tests/preview-route.spec.ts", "name": "offers exact failed replay only to its initiating session and recovers after explicit confirmation"},
|
|
708
883
|
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds explicit replay recovery through native Client and %s Host gateways"}
|
|
@@ -744,6 +919,28 @@
|
|
|
744
919
|
{"file": "tests/account-model-auth.spec.ts", "name": "sanitizes credential backend failures and keeps account identity independent of token rotation"}
|
|
745
920
|
]
|
|
746
921
|
},
|
|
922
|
+
{
|
|
923
|
+
"id": "managed-auto-review-temperature-override",
|
|
924
|
+
"required": true,
|
|
925
|
+
"sourceMarkers": [
|
|
926
|
+
{"file": "src/config.ts", "marker": "responsesOmitTemperature: z.boolean().default(false)"},
|
|
927
|
+
{"file": "src/preview-provider.ts", "marker": "guard.responsesOmitTemperature === true"},
|
|
928
|
+
{"file": "src/index.ts", "marker": "ctx.effect(() => installAutoReviewSampling(ctx))"},
|
|
929
|
+
{"file": "src/auto-review-sampling.ts", "marker": "module.apply === fiber.runtime.callback"},
|
|
930
|
+
{"file": "vitest.auto-review-published.config.ts", "marker": "passWithNoTests: false"},
|
|
931
|
+
{"file": "scripts/verify-tagged-core.mjs", "marker": "tests/fixtures/auto-review-copilot-core.fixture.ts"}
|
|
932
|
+
],
|
|
933
|
+
"tests": [
|
|
934
|
+
{"file": "tests/config.spec.ts", "name": "keeps managed Responses temperature omission default-off and boolean-only"},
|
|
935
|
+
{"file": "tests/preview-provider.spec.ts", "name": "applies explicit Responses omission=%s independently of thinking metadata %j"},
|
|
936
|
+
{"file": "tests/preview-provider.spec.ts", "name": "preserves default Responses temperature regardless of thinking metadata %j"},
|
|
937
|
+
{"file": "tests/preview-route.spec.ts", "name": "reads temperature omission from dynamic config at lazy native stream dispatch"},
|
|
938
|
+
{"file": "tests/fixtures/auto-review-copilot-core.fixture.ts", "name": "omits temperature with explicit opt-in without weakening the %s verdict boundary"},
|
|
939
|
+
{"file": "tests/fixtures/auto-review-copilot-core.fixture.ts", "name": "activates reviewer-only sampling through the actual plugin Host entry"},
|
|
940
|
+
{"file": "tests/fixtures/auto-review-copilot-core.fixture.ts", "name": "uses the native initiator and frozen Session account without a reviewer sessionId"},
|
|
941
|
+
{"file": "tests/loader-composition.spec.ts", "name": "starts and disposes without an optional native reviewer package or package resolver"}
|
|
942
|
+
]
|
|
943
|
+
},
|
|
747
944
|
{
|
|
748
945
|
"id": "responses-public-reasoning-and-safe-replay-delegation",
|
|
749
946
|
"required": true,
|
|
@@ -1122,6 +1319,27 @@
|
|
|
1122
1319
|
{"file": "tests/client-no-model-roles.spec.ts", "name": "does not resurrect a role entry when a retained legacy Remote arrives later"}
|
|
1123
1320
|
]
|
|
1124
1321
|
},
|
|
1322
|
+
{
|
|
1323
|
+
"id": "managed-copilot-high-cost-allocation",
|
|
1324
|
+
"required": true,
|
|
1325
|
+
"sourceMarkers": [
|
|
1326
|
+
{"file": "src/auto-allocation.ts", "marker": "high-cost-v1"},
|
|
1327
|
+
{"file": "src/config.ts", "marker": "highCostModelIds"},
|
|
1328
|
+
{"file": "src/model-preferences-card.ts", "marker": "High cost"},
|
|
1329
|
+
{"file": "src/turn-selection-host.ts", "marker": "allocationSummary"},
|
|
1330
|
+
{"file": "src/auto-allocation-evidence.ts", "marker": "completeHistory: z.literal(false)"},
|
|
1331
|
+
{"file": "scripts/agent.mjs", "marker": "iterationReview"},
|
|
1332
|
+
{"file": "docs/auto-high-cost.md", "marker": "separate acceptance"}
|
|
1333
|
+
],
|
|
1334
|
+
"tests": [
|
|
1335
|
+
{"file": "tests/auto-allocation.spec.ts", "name": "gives every candidate opportunity without an absolute previous-model shortcut"},
|
|
1336
|
+
{"file": "tests/auto-allocation-evidence.spec.ts", "name": "counts each turn once, bounds retention and never recovers missing evidence after removal"},
|
|
1337
|
+
{"file": "tests/auto-model-routing.spec.ts", "name": "keeps costly Fast models eligible and evidence opt-out independent of the selected route"},
|
|
1338
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "saves orthogonal high-cost preferences narrowly without credential or Session reads"},
|
|
1339
|
+
{"file": "tests/client.spec.ts", "name": "saves a high-cost row through its narrow Remote without discovery and retains exclusion state"},
|
|
1340
|
+
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent native credentials and SettingsForms CAS across profile restart without cross-account OAuth writes"}
|
|
1341
|
+
]
|
|
1342
|
+
},
|
|
1125
1343
|
{
|
|
1126
1344
|
"id": "managed-copilot-auto-intent-continuity",
|
|
1127
1345
|
"required": true,
|
|
@@ -1160,6 +1378,11 @@
|
|
|
1160
1378
|
{"file": "src/auto-model-presentation.ts", "marker": "installAutoModelProjections"},
|
|
1161
1379
|
{"file": "src/auto-model-presentation.ts", "marker": "turnModelProvenanceDefinition"},
|
|
1162
1380
|
{"file": "src/turn-model-provenance.ts", "marker": "assistant/message"},
|
|
1381
|
+
{"file": "src/turn-request-models.ts", "marker": "stateVersion: 1"},
|
|
1382
|
+
{"file": "src/turn-request-models.ts", "marker": "active.step === null"},
|
|
1383
|
+
{"file": "src/turn-selection-card.ts", "marker": "Turn model and selection evidence"},
|
|
1384
|
+
{"file": "src/turn-selection-card.ts", "marker": "Recorded models"},
|
|
1385
|
+
{"file": "src/turn-selection-remote.ts", "marker": "RequestedModelsSchema"},
|
|
1163
1386
|
{"file": "src/turn-selection-card.ts", "marker": "Selection unknown"},
|
|
1164
1387
|
{"file": "src/turn-selection-remote.ts", "marker": "lookup: 'agent'"},
|
|
1165
1388
|
{"file": "src/turn-selection-host.ts", "marker": "extends TypertRemoteService"},
|
|
@@ -1171,7 +1394,7 @@
|
|
|
1171
1394
|
{"file": "tests/scripts/parent-model-follow.test.mjs", "name": "explicit same-model and different-model child selections both win"},
|
|
1172
1395
|
{"file": "tests/auto-model-routing.spec.ts", "name": "retains legacy length evidence but does not use it as task or supplier category evidence"},
|
|
1173
1396
|
{"file": "tests/auto-model-routing.spec.ts", "name": "uses the task/category policy with one hard-eligible pool for all preferences"},
|
|
1174
|
-
{"file": "tests/auto-model-routing.spec.ts", "name": "
|
|
1397
|
+
{"file": "tests/auto-model-routing.spec.ts", "name": "uses finite continuity but never lets it override task category or input fit"},
|
|
1175
1398
|
{"file": "tests/auto-model-routing.spec.ts", "name": "discloses category fallbacks and never guesses missing category from ID or capacity"},
|
|
1176
1399
|
{"file": "tests/auto-task-assessment.spec.ts", "name": "bounds context, never reads attachment/reasoning bodies, and does not downshift omitted context"},
|
|
1177
1400
|
{"file": "tests/auto-task-assessment.spec.ts", "name": "inherits difficult-task evidence only through explicit bounded continuations"},
|
|
@@ -1196,6 +1419,9 @@
|
|
|
1196
1419
|
{"file": "tests/client.spec.ts", "name": "registers and disposes Auto actions while the optional conversation fiber remains pending"},
|
|
1197
1420
|
{"file": "tests/fixtures/reasoning-presentation-core.fixture.ts", "name": "renders retained Auto evidence without optional projections through native %s and slots"},
|
|
1198
1421
|
{"file": "tests/turn-model-provenance.spec.ts", "name": "retains known models around zero-usage failed attempts without reading payloads"},
|
|
1422
|
+
{"file": "tests/turn-request-models.spec.ts", "name": "captures only headers inside a recorded step, never inherits adjacent or current selections"},
|
|
1423
|
+
{"file": "tests/turn-request-models-runtime.spec.ts", "name": "cold-folds same-turn requested models through the native public registry without changing events"},
|
|
1424
|
+
{"file": "tests/turn-selection-card.spec.ts", "name": "keeps model evidence first inside the existing dialog with multiple routes and overflow (%s)"},
|
|
1199
1425
|
{"file": "tests/preview-route.spec.ts", "name": "publishes Auto as a virtual picker entry but refuses unresolved adapter dispatch"},
|
|
1200
1426
|
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "shrinks durable history and rebuilds the switched model request without sending the oversized original"}
|
|
1201
1427
|
]
|
|
@@ -1228,7 +1454,7 @@
|
|
|
1228
1454
|
{"file": "tests/compact-account.spec.ts", "name": "renders a neutral checking state then only a compact signed-in row"},
|
|
1229
1455
|
{"file": "tests/compact-account.spec.ts", "name": "shows signed-out CTA and automatically reveals authorization without opening Manage"},
|
|
1230
1456
|
{"file": "tests/compact-account.spec.ts", "name": "retains manual management and live actions when toggled during authorization"},
|
|
1231
|
-
{"file": "tests/compact-account.spec.ts", "name": "keeps
|
|
1457
|
+
{"file": "tests/compact-account.spec.ts", "name": "keeps refresh and Retry inside Manage while discovery failures stay visible when collapsed"},
|
|
1232
1458
|
{"file": "tests/compact-account.spec.ts", "name": "cleans timers and ignores late requests after detach or Remote replacement"},
|
|
1233
1459
|
{"file": "tests/compact-account.spec.ts", "name": "keeps cancellation failures visible without reviving a stale code"},
|
|
1234
1460
|
{"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,143 @@
|
|
|
1
|
+
# Copilot account management and continuation experience
|
|
2
|
+
|
|
3
|
+
Approved account switching reference: [dropdown mock](./mockups/copilot-account-dropdown.html).
|
|
4
|
+
The [Chat account selection mock](./mockups/copilot-chat-account-selection.html)
|
|
5
|
+
supersedes its Chat menu: only configured accounts appear in the list, with
|
|
6
|
+
following controlled separately.
|
|
7
|
+
The [complete continuation mock](./mockups/copilot-account-management.html) retains
|
|
8
|
+
the earlier search-form presentation as historical context; the dropdown replaces it.
|
|
9
|
+
Open the HTML locally; append `?scenario=off-switch` to start with continuation
|
|
10
|
+
disabled and an account switch awaiting confirmation. All accounts, quota,
|
|
11
|
+
authorization, messages and model availability in this mock are synthetic.
|
|
12
|
+
It performs no network requests and persists no credentials or settings.
|
|
13
|
+
|
|
14
|
+
## Chat: quick selection, not a second settings page
|
|
15
|
+
|
|
16
|
+
The Credits control opens a compact current-account summary and Switch button.
|
|
17
|
+
Do not render all saved accounts until Switch is opened. A compact anchored dropdown
|
|
18
|
+
marks the effective current account and supports bounded internal scrolling.
|
|
19
|
+
List every configured account, not a hard-coded two-account limit. A separate
|
|
20
|
+
**Follow global default** checkbox clears the Session override when enabled;
|
|
21
|
+
disabling it freezes the currently effective account. Choosing any account,
|
|
22
|
+
including today's default, disables following and creates an explicit override.
|
|
23
|
+
Both paths use the same continuation confirmation, revision readback and CAS,
|
|
24
|
+
and remain disabled while selection is unknown, confirming or saving. Cancelled
|
|
25
|
+
confirmation retains the confirmed checkbox state; failed writes show uncertainty.
|
|
26
|
+
Add accounts only in Models, never in the Chat dropdown. Do not add an account search field or repeat Switch
|
|
27
|
+
buttons per row. Escape closes only the dropdown and restores its trigger; arrows,
|
|
28
|
+
Home and End navigate enabled options. Outside interaction dismisses the list.
|
|
29
|
+
Adding an account in Models does not select it. Quota is account billing-cycle data, not
|
|
30
|
+
context occupancy or Session cost; missing and pooled data retain their semantics.
|
|
31
|
+
|
|
32
|
+
Selection applies to subsequent turns of the viewed Session. An active turn
|
|
33
|
+
keeps its admitted account and policy. Save failures retain their real uncertainty
|
|
34
|
+
and never imply that a change succeeded. Session explicit choices do not change
|
|
35
|
+
other Sessions or the global default.
|
|
36
|
+
|
|
37
|
+
The composer Credits/usage pill opens a popover that includes a collapsible
|
|
38
|
+
**Visible-history continuation** disclosure only while the viewed Session is
|
|
39
|
+
open and its effective selection is the managed account-discovered Copilot
|
|
40
|
+
route. Expand it and choose **On** under **Session policy** to explicitly enable
|
|
41
|
+
an existing Session; the loss disclosure appears before the choice. The
|
|
42
|
+
canonical/native route does not show this control. Saving sets a persistent
|
|
43
|
+
Session policy, not the new-Session default: it applies to subsequent turns and
|
|
44
|
+
managed native compaction in that Session, including when the account does not
|
|
45
|
+
change. The active turn retains its admitted policy. No message is sent or
|
|
46
|
+
retried by enabling it.
|
|
47
|
+
See the [synthetic composer capture](./images/copilot-session-continuation.png);
|
|
48
|
+
it shows the control's appearance, not a live Session or policy read.
|
|
49
|
+
|
|
50
|
+
The separate **New Session continuation default** is managed in Models under
|
|
51
|
+
GitHub Copilot → Manage. Full account management belongs in Models; show a
|
|
52
|
+
"Manage accounts and models" entry only with a working public navigation
|
|
53
|
+
callback. Do not show a disabled link or unavailable-navigation paragraph.
|
|
54
|
+
Opening and closing Settings must not discard the composer draft or change the
|
|
55
|
+
selected Session. Direct navigation and automatic expansion depend on published
|
|
56
|
+
navigation APIs; absent support leaves navigation to ordinary Settings, never
|
|
57
|
+
parent DOM manipulation or a nonfunctional entry.
|
|
58
|
+
|
|
59
|
+
## Models: one Manage disclosure, two responsibilities
|
|
60
|
+
|
|
61
|
+
The existing native Settings layout and provider controls remain. The collapsed
|
|
62
|
+
Copilot contribution shows current default identity, model status, cache age and
|
|
63
|
+
one Manage button. Manage expands:
|
|
64
|
+
|
|
65
|
+
- Account management: current default account, Switch dropdown/add, identity
|
|
66
|
+
refresh, reauthorization, guarded removal, and new-Session continuation default.
|
|
67
|
+
- Model preferences: cross-account shared exclusions, model search and filters,
|
|
68
|
+
account-specific availability, discovery diagnostics and model refresh.
|
|
69
|
+
|
|
70
|
+
Removal requires explicit confirmation. It removes only locally saved account
|
|
71
|
+
authorization, not GitHub-side access, conversations or shared model preferences.
|
|
72
|
+
Preserve existing canonical/default/in-use removal guards; do not silently choose
|
|
73
|
+
another account.
|
|
74
|
+
|
|
75
|
+
Keep saved-account reauthorization/removal in a separate collapsed management
|
|
76
|
+
disclosure, not in the switching menu. The dropdown remains an account choice,
|
|
77
|
+
not another settings page. Global switching retains its explicit confirmation;
|
|
78
|
+
Chat retains the continuation confirmation when the current policy is off.
|
|
79
|
+
|
|
80
|
+
Model preferences are shared by exact model ID. Availability and capability
|
|
81
|
+
evidence remain account-specific. Missing models retain saved preferences;
|
|
82
|
+
returning models reuse them without becoming selected. Newly discovered models
|
|
83
|
+
are enabled unless excluded, but must satisfy authenticated metadata and admission
|
|
84
|
+
checks. Unknown/stale availability is not verified availability or definitive
|
|
85
|
+
absence. Do not discover every account solely to render a union catalog.
|
|
86
|
+
Fixed unavailable selections require explicit user correction; Auto uses only
|
|
87
|
+
eligible unexcluded models of the admitted account.
|
|
88
|
+
|
|
89
|
+
## Continuation and explicit-off recovery
|
|
90
|
+
|
|
91
|
+
The approved default is lossy visible-history continuation enabled for new
|
|
92
|
+
Sessions, with the loss disclosed beside the control. Existing Sessions and
|
|
93
|
+
seeded/forked histories must not silently inherit a new loss authorization.
|
|
94
|
+
Global changes do not retroactively rewrite a Session's captured initial policy.
|
|
95
|
+
Session overrides, including explicit off, persist and are reversible.
|
|
96
|
+
|
|
97
|
+
Every new admitted turn omits pre-existing encrypted reasoning items and their
|
|
98
|
+
embedded summaries, including on the same account. Visible messages, tool
|
|
99
|
+
calls/results and stored history remain unchanged. Current-turn reasoning stays
|
|
100
|
+
available for tool steps and native retries. This does not solve quota, HTTP 408
|
|
101
|
+
or oversized context and does not guarantee supplier acceptance.
|
|
102
|
+
|
|
103
|
+
This is a persistent Session policy, not only a one-time summary consent. Its
|
|
104
|
+
enabled state is captured at new-turn admission and also governs summaries
|
|
105
|
+
inside an observed managed native compaction bracket. Explicit visible-history
|
|
106
|
+
consent does not send or retry chat; the user must separately invoke native
|
|
107
|
+
Retry when appropriate.
|
|
108
|
+
|
|
109
|
+
When continuation is off and the user switches accounts, stop before saving the
|
|
110
|
+
selection and disclose the potential replay risk. Offer persistent enable and
|
|
111
|
+
switch, keep off and switch, or cancel. Do not offer next-turn-only authorization.
|
|
112
|
+
Account differences alone do not prove supplier rejection. Never guess encrypted
|
|
113
|
+
item origin or silently filter history.
|
|
114
|
+
|
|
115
|
+
After an exact supplier replay rejection, retain the native failed turn and
|
|
116
|
+
surface the same persistent Session policy: when off, disclose loss and offer
|
|
117
|
+
Enable/Cancel; when on, show diagnostic guidance without repeated authorization.
|
|
118
|
+
Do not show duration radios or unavailable Models navigation. Failure-evidence
|
|
119
|
+
expiry does not disable the persistent policy. Authorization never sends or retries. The user explicitly retries
|
|
120
|
+
the task through the native mechanism. Mock assistant answers are demonstrations,
|
|
121
|
+
not evidence of real cross-account success. Do not fabricate durable messages,
|
|
122
|
+
errors, replay or assistant content to imitate the mock.
|
|
123
|
+
|
|
124
|
+
## Theme and accessibility
|
|
125
|
+
|
|
126
|
+
Use native theme tokens for surfaces, text, borders, focus and errors. Native
|
|
127
|
+
select popup options must remain readable in dark and light themes; do not inherit
|
|
128
|
+
light popup backgrounds with dark-theme white text. Dropdowns and long account lists
|
|
129
|
+
must remain keyboard-operable, bounded and usable on narrow viewports. Explicit
|
|
130
|
+
loading, unknown, stale, failed-save and cancellation states are required.
|
|
131
|
+
|
|
132
|
+
The shared Models/Chat account dropdown must composite translucent native menu
|
|
133
|
+
tokens over an opaque system Canvas, so underlying settings and quota text never
|
|
134
|
+
bleed through. Dropdown and Credits panel elevation uses a dark shadow, not
|
|
135
|
+
CanvasText (which becomes a white glow in dark mode). Theme acceptance must
|
|
136
|
+
include translucent tokens, both themes/surfaces and narrow viewports; fixtures
|
|
137
|
+
that replace the token with opaque Canvas alone cannot establish this behavior.
|
|
138
|
+
|
|
139
|
+
## Implementation status
|
|
140
|
+
|
|
141
|
+
This document records the approved target, not a release or runtime attestation.
|
|
142
|
+
Implementation, native gateway/settings persistence, request admission,
|
|
143
|
+
dark/light interaction checks and required CI must qualify it before delivery.
|