# Changelog

## 0.1.6

- Suppressed only the exact native `assistant.message`, tool-call delta,
  `external_tool.requested`, and tool-call usage replay emitted after the
  official pending-result RPC has acknowledged a DSH tool result. Conflicting
  correlations still fail closed, while genuinely new tool calls in the same
  continuation remain visible to DSH.

## 0.1.5

- Preserved the existing official Copilot session when a non-pending DSH replay
  intentionally changes its tool declarations or system prompt, such as after
  installing `dsh-files`. Prompt-cache telemetry is accepted once only when its
  complete before/after diff matches the DSH-declared transition; the effective
  names, descriptions, and schemas are then revalidated before later model
  output, while undeclared or repeated capability drift remains fail-closed.
- Accepted the official CLI's root `agentStop` hook start/end lifecycle after a
  DSH-owned tool continuation when it is an exact no-op. Hook re-entry, block
  output, mismatched sessions, extra fields, and incomplete lifecycles remain
  fail-closed instead of being treated as ambient model work.
- Accepted the official `sessionStart` no-op hook on an ordinary multi-turn
  resume only when its `initialPrompt` exactly equals the prompt already
  guarded for the current DSH send. Pending-tool resumes still require an empty
  prompt, while unguarded or rewritten prompt content remains fail-closed.
- Accepted the official `preToolUse` no-op hook on an ordinary resumed turn only
  when every call ID, tool name, and argument value exactly matches a DSH tool
  call already declared by the model. Unknown, duplicated, or rewritten calls
  and incomplete hook lifecycles remain fail-closed.
- Retired fully validated, completed or expired pending-tool history before
  applying the newly selected model. A later user turn can now switch models
  and recover from an older failed continuation without producing
  `INVALID_REPLAY`; active or unverified replay state is still rejected.
- Stopped treating the official catalog's `max_prompt_images` value as a hard
  adapter-side limit. The pinned SDK/CLI accepts multiple distinct images even
  when that metadata reports `1`; request and pending tool-result images are no
  longer rejected or removed on catalog count alone, and repeated durable image
  references retain every prompt occurrence while sharing one read, byte budget,
  and SDK blob.
- Preserved provider-owned reasoning-effort identifiers such as the official
  `none` value instead of constraining dynamic or configured catalogs to a
  plugin-owned enum. One newly advertised effort can no longer collapse an
  otherwise valid Copilot model catalog to an empty picker.
- Removed every provider-owned Chat Input contribution: the attachment button,
  generic-file trigger, custom attachment rail, document-level intake handlers,
  and custom model selector. DSH now exclusively owns its native image intake,
  attachment presentation, editable text surface, and model/effort selector;
  the provider contributes only catalog metadata and request behavior. This
  removes hidden file-reference text that could retain caret/layout space or
  reappear when the user typed beside a populated attachment rail.
- Removed the unused client dependencies on Conversation, Input Trigger, and
  Model Selection UI packages. The settings client remains additive and does
  not register any `conversation.input.*` slot.

## 0.1.4

- Added a DSH Web composer attachment control with multi-file selection plus
  drag/drop and file-paste interception, removing the host's image-only input
  restriction for this provider.
- Added persistent, content-addressed browser upload storage and opaque DSH
  message references. Files are integrity-checked before every request and
  forwarded through the official Copilot SDK `file` attachment contract; the
  provider does not parse or send them to a direct model API itself.
- Added generic-file limits, same-origin/loopback upload fencing, strict file
  name and MIME validation, symlink/tamper rejection, and backward-compatible
  invisible reference rendering.
- Fixed `TOOL_ISOLATION_FAILED` for official CLI file normalization. Live
  binary `data` and persisted `assetId` telemetry are accepted only when their
  SHA-256 identity matches the provider's content-addressed file path; unknown
  fields and mismatched paths, names, bytes, or hashes remain fail-closed.
- Added deterministic contracts and an authenticated packed-artifact DSH Web
  probe for Markdown, HTML, PNG, legacy Word `.doc`, and Excel `.xlsx` in one
  request. Copilot Free `auto` resolved to `gpt-5-mini`, read all five files,
  and returned the required success marker. The same five-file flow also
  passed through the real browser composer UI.

## 0.1.3

- Exposed image input for the pinned official `auto` router when its catalog
  omits `supports.vision`. The exact SDK `1.0.11` / CLI `1.0.81` pair accepts
  the public image-attachment path; an explicit `vision: false` still remains
  text-only, and no other model id gains inferred capability.
- Added deterministic model/request regressions plus an authenticated packed
  DSH Web probe for both a direct JPEG attachment and a DSH `read_image` tool
  result. Copilot Free completed both through `auto`; DSH persisted one image
  and one successful rich tool result, while the official logs recorded the
  same 149,228-byte `image/jpeg` payload in both paths.
- Rejected DSH `glob`/`grep` candidates that satisfy the public schema but
  violate the filesystem-search runtime's hidden non-empty/path/include
  constraints through the official CLI permission callback, then allowed the
  official root turn to repair them. The adapter never rewrites tool arguments.
- Buffered candidate tool deltas until their complete arguments were known and
  quarantined the rejected message, usage, permission, and failed-execution
  lifecycle so DSH persists only the repaired call and result.
- Added deterministic coverage for every hidden `glob`/`grep` value constraint
  and a packed-artifact DSH Web probe. With Copilot Free, the official event log
  contained one rejected `path: ""` candidate and one repaired candidate while
  the DSH log contained exactly one successful call and no failed tool result.
- Fixed legitimate `prompt_cache_break` telemetry after a DSH-owned tool
  continuation being rejected as `TOOL_ISOLATION_FAILED` when the prior cached
  root request used `initiator: "agent"` and the next ordinary root request used
  `initiator: "user"`.
- Kept delegated prompt-cache initiators and actual tool-definition drift
  fail-closed while accepting both directions of the official CLI's root
  `user`/`agent` lifecycle.
- Added the observed root `agent -> user` cache-frontier shape to deterministic
  isolation tests and to the live isolation probe's positive and negative
  fixtures.
- Re-ran the authenticated Copilot Free DSH Web sequence with one guarded tool
  execution, one result submission, and an ordinary follow-up; the official
  checkpoints retained identical DSH tool, system-prompt, and cache-config
  fingerprints across the `user -> agent -> user` transition.

## 0.1.2

- Fixed ordinary follow-up turns after a successfully completed DSH-owned tool
  continuation being rejected as `STALE_REPLAY`, while preserving exact-once
  rejection for resubmitted pending tool results.
- Restricted completed-replay continuation and newer pending generations to
  conversations whose prior pending work was definitely consumed. Live,
  cancelled, and ambiguously cleaned-up generations remain fail-closed, and
  late callbacks cannot downgrade those terminal outcomes.
- Added regressions for DSH system-prompt and skill-catalog context injection,
  consecutive external-tool rounds, post-tool ordinary turns, and terminal
  replay-ledger races.
- Rejected system-instruction changes while an external tool replay is still
  pending; completed non-tool replays continue to support system rebinding.
- Added an authenticated DSH Web production probe that requires one guarded
  successful tool result followed by a completed ordinary turn in the same
  session.

## 0.1.1

- Fixed the Web client bundle registration id to match the scoped npm package
  name required by DSH `client-modules`.
- Added source and packed-artifact regression checks that fail when the client
  registration id drifts from `package.json.name`.

## 0.1.0

- Replaced the copied Copilot SDK implementation with exact dependencies on
  `@github/copilot-sdk@1.0.11` and the official `@github/copilot@1.0.81` CLI.
- Renamed the standalone package to `@bobhuhu/dsh-llm-github-copilot-cli` while keeping
  provider route `copilot`.
- Added one adapter compatible with DSH `0.1.1-rc.2` and tagged source host
  `dsh-v0.1.2-alpha.1`.
- Added stateful official sessions, replay validation, deterministic history
  bootstrap, DSH-owned external tools, rich tool results, images, reasoning,
  usage, stable errors, cancellation, lifecycle recovery, status commands, and
  a read-only Web settings section.
- Added exact ambient-tool isolation and fail-closed official runtime version
  validation, including authoritative revalidation after official catalog and
  non-model-facing MCP lifecycle updates. A monotonic refresh revision closes
  catalog-change races during metadata inspection in both the adapter and live
  isolation probe.
- Kept fail-closed isolation compatible with the pinned CLI's current root-user,
  model telemetry, permission, tool-execution, and shutdown lifecycle events,
  while still correlating every declared external tool and permission request.
- Classified the pinned CLI's undocumented `prompt_cache_break` and
  `model.turn_retry` lifecycle telemetry with strict root-turn shapes and
  fail-closed capability-drift checks.
- Quarantined undeclared built-in tool candidates that the official CLI rejects
  internally, required correlated failed execution telemetry, and buffered
  declared tool deltas whose runtime `toolName` is temporarily null or absent.
- Accepted DSH system-only requests with an empty conversation history; only a
  replay continuation with no new message remains invalid.
- Preserved structured terminal session errors without issuing a second abort,
  so quota, status, and request-id facts cannot be masked by abort, disconnect,
  or adapter-finally cleanup failures.
- Added exact model ids to `/copilot-status` and a vertical plugin-registration
  test proving minimal configured fallback models through DSH list/resolve.
- Localized the read-only Web status in English and Chinese and rejected
  unsupported baseline compatibility controls before provider registration.
- Kept auxiliary request purpose model-hidden and isolated its replay namespace
  from ordinary conversations without constructing service headers.
- Added cross-process pending-tool recovery evidence, bounded startup disposal,
  confirmed active/pending disposal cancellation, and official tool-event
  boundary fixes.
- Exercised pending-tool expiry against an authenticated Copilot Free account,
  including reasoning-before-tool output, rejection of late tool results,
  unrelated-session concurrency, and fresh-turn recovery on the same DSH
  session.
- Exercised the packed artifact through DSH `0.1.1-rc.2` Web/headless profile
  installation, native `koffi` build, text/tool streaming, active and pending
  cancellation, process fencing, concurrent-session survival, replay expiry,
  same-session recovery, official-session restart, and redacted Web status.
- Built the exact tagged DSH `0.1.2-alpha.1` source host and exercised the same
  packed artifact through its signed Web session and six-session lifecycle
  contract, including cancellation, replay expiry, process fencing,
  concurrency, and recovery.
- Accepted a generation-correlated official root abort event as authoritative
  cancellation when the concurrent SDK abort RPC loses its response, while
  retaining explicit transport failure when no native cancellation evidence is
  observed.
- Preserved independently optional cache usage without inventing aggregate
  totals when official input or output counters are absent.
- Added exact prepared-model context/reasoning metadata, vision-safe host
  preparation, single-attempt pending cancellation, disposal-time prepared-call
  ownership, bounded timer arithmetic, and strict final-prefix validation.
- Added prebuilt package artifacts so registry and GitHub consumers do not
  compile this package during installation.
- Documented the pinned public SDK limitations for sampling controls, native
  import of foreign history, internal CLI retries, and crash-atomic tool-result
  submission.
