# Changelog

Notable changes per release, newest first. The DSH peer range is this package's
compatibility contract: a `0.1.x` release does not install on a `0.2.x` runtime,
and the runtime rejects it before pnpm runs.

## [0.4.2] — 2026-11-05

### Changed

- **Adding and deleting now use the same two-beat choreography as every other arrival.** An added card's row opens a place for it and the card slides in from the right, exactly like a returning task; a deleted card slides out to the right first, and only once it is gone does its slot collapse, so the cards below glide up into the gap it left instead of jumping. Each sequence is driven by a constant the timers and the keyframes share (`EXIT_SLIDE_MS`, `WAKE_MS`), and the entrance holds its detail shut until the card lands, so a task created directly as running unfolds rather than sliding in already open.
- **A new task that lands in a folded row pulses that row's count.** Folded cards cannot animate — they are not in the DOM — so a task added while something else is running announces itself where it can be seen.

### Removed

- `exitDurationMs()` and its fallback, which the two-beat exit made obsolete.

## [0.4.1] — 2026-11-05

### Fixed

- **The current step's turning ring was being clipped.** The ring is drawn 2px outside its marker, and the detail region clips to its own box (it needs that for the fold animation), so the marker sits flush against the clipping edge and the ring's leading edge was cut off. The flow now keeps 3px of room for it.

### Changed

- **A returning task's arrival is choreographed.** Instead of rising already open, the row opens a place for it (the slot grows from no height) while the card slides in from the right, and only then does its detail unfold — the component holds the detail shut for the length of the wake, so the sequence reads as arriving, then opening. The wake is 560ms.

### Docs

- The bundled skill now says what `description` is *not*: one or two sentences about what the task **is**, never a report. Findings, attempts and conclusions belong in `progress`, `steps` or `surface`. It carried the opposite advice ("含之前的发现"), which is what produced 250-character descriptions a reader has to wade through to learn what the task is doing.

## [0.4.0] — 2026-11-05

### Changed

- **Running work owns the panel.** When anything is running, those cards are the only ones on screen, and each opens its own detail region without being asked: running work is always a handful of tasks, so the space they would otherwise share is better spent on what the reader came to watch. With nothing running, the open work *is* the live list — the fold exists to get idle work out of the way of work in flight, so it does not appear when there is nothing to get out of the way of.
- **Two folds instead of one.** Open-but-idle work folds under "other open" and finished work under "done". While a row is closed its cards are not rendered at all.
- A card the reader explicitly collapsed stays collapsed as its status changes; an explicit open outlives the status that suggested it.

### Added

- **The wake.** A task that starts again — resumed out of the finished fold, or started after sitting idle — plays a 760ms bloom with a brand-coloured halo and a dot that swells once, so it is *seen* arriving in the live list rather than simply appearing there.
- **Live motion.** A running card breathes on a slow 2.6s halo, and the step it is *currently on* turns a thin ring. That ring is the panel's only literal "something is happening right now", so it is scoped to running cards: a blocked task's current step does not pretend to move. Reduced motion drops the glow and the movement while keeping every state change and both folds.

## [0.3.0] — 2026-11-05

### Changed

- **The list is about work in flight; finished work folds into a shelf.** A long-lived library kept every completed card in the DOM, and the panel read as an archive rather than as "what is happening". Finished tasks now fold into a collapsed "Done N" row beneath the live list, and while that row is closed its cards are **not rendered at all**. The live card also carries a brand-coloured left edge, so the eye finds what is actually running.
- **`task_list` caps finished tasks.** It lists every unfinished task and the most recent 5 finished ones, then a trailing count; `all: true` includes them all and `limit` bounds the lines (default 40). Finished work is history rather than work in flight, and an unbounded list spends context on tasks nobody is going to act on.

### Added

- **The finish beat.** A card that becomes done says so before it leaves: over 620ms the status dot blooms into the success colour, a thin ring expands out of it and dissolves, and a soft success wash crosses the card once. Then its row folds away — the slot's height collapses to `0fr`, so the cards below glide up instead of jumping, with no FLIP measurement pass — and the shelf's count pulses once. The sequence is timed from the same constants the component's timers use, keeps layout untouched (the dot scales inside its own box), and is dropped under `prefers-reduced-motion` except the state change and the fold.

## [0.2.12] — 2026-10-06

### Added

- **An orchestration hook hands the manual over before the model records anything.** The other delivery levers all reach a model that is *already* using the library, which is late for the one instruction that matters most — "record this before you start". A `tools/post-execute` listener now watches for the calls that reveal the intent first: `todo_write` (it decided the work needs tracking), any `subagent*` spawn (it is delegating), `workflow`, `ralph`. The first one in a session attaches the manual to that call through `additionalContexts` — the harness's own channel for attaching context to a request — so the called tool's result is left exactly as its owner wrote it.

  The injected message declares this plugin's own `MessageSourceMap` kind, per the harness's rule that each producer declares its own rather than sharing a catch-all, and `form: 'instructions'` — the semantic vocabulary's term for instructions read out of a file, which is what the bundled skill is. Both delivery channels share one once-per-session set, so exactly one wins and the manual is never sent twice.

## [0.2.11] — 2026-10-05

### Added

- **The plugin now says which build it is.** `taskui_probe` answers `[task-ui] v<version> host alive, tasks=N`, and startup logs `[task-ui] host plugin loaded v<version>`. Neither was answerable before, which turned "the marketplace showed 2.10 but I got 2.3" into guesswork: a marketplace displays the version a registry reports while the install is a package-manager run that can resolve differently — an exact pin, a lockfile entry, or a registry asked in turn — and nothing reconciles the two.

### Changed

- README: "Pin at least 0.2.0" became "use at least 0.2.0", plus a short section on why the displayed and installed versions can disagree and how to make an update land (name the version explicitly; depend on a range rather than an exact pin). An exact pin keeps installing its version no matter what a marketplace shows, and DSH's plugin manager falls back to `registry.npmmirror.com` when the first registry cannot answer, mirror lag included.

## [0.2.10] — 2026-10-01

### Fixed

- **Installs seeded before the marker now migrate too.** 0.2.9 adopted an unstamped copy only when its body already matched the current text — which covers a recent install, but not the users a fix most needs to reach: a copy that predates the marker *and* is several releases old looked exactly like one somebody had edited by hand, so it was left alone with a `SKILL.md.new` beside it and stayed on its old manual.

  The package now carries the sha256 of every body it has ever shipped in this file, taken from its own history — 0.1.1–0.1.5 (6,762 bytes), 0.2.0 (10,904) and 0.2.2 (11,325). An unstamped copy matching one of them is provably ours and unmodified, so it is brought forward. Digests are compared over LF-normalised text, so a copy whose line endings a tool changed still matches. Only a copy matching nothing — the user's own — is left untouched with the new text beside it.

## [0.2.9] — 2026-10-01

### Fixed

- **Migration onto the marked seed is now automatic.** 0.2.8 introduced the marker, but an existing unstamped copy — which is every install that predates it — fell into the "possibly edited" branch: left alone, with `SKILL.md.new` beside it. Safe, but noisy for the common case of a file nobody has touched, and it left those installs unable to update themselves. An unstamped copy whose body already equals this package's text is now **adopted**: only the marker line is written, no instruction text changes, and it updates in place from then on. A copy that genuinely differs is still left untouched with the newer text alongside.

## [0.2.8] — 2026-10-01

### Fixed

- **An upgraded plugin no longer serves a stale skill.** The bundled `task-ui` skill was seeded into `<dshHome>/skills/` **once** and never again, so after an upgrade the model kept being handed whatever manual the version that first ran had written — while the plugin believed it had shipped a new one. The seeded file now carries a marker recording the version and a sha256 of its body, and each activation: refreshes a copy nobody has edited, leaves a copy with no valid marker (hand-edited, or seeded before markers existed) exactly as it is with this version's text written beside it as `SKILL.md.new` and a log line naming both paths, and does nothing when the copy is already current. Fail-soft as before, and never silent about a clobber it declined to make.

### Changed

- `test/host-smoke.mjs` points `$DSH_HOME` at a throwaway directory, so running the suite no longer writes to the developer's real skill root. It covers all three seeding paths: seed when absent, refresh when untouched, leave-and-offer when edited.

## [0.2.7] — 2026-10-01

### Added

- **The library hands its operator manual to the session that starts using it.** The bundled `task-ui` skill stays model-invoked for every other purpose, but a model that never calls the `skill` tool never reads it — and the moment it decides to use the library is exactly when it needs to know how. The skill's body is now attached to the result of the first `task_*` call of a session, once per session.

  A tool result is the right vehicle for three reasons. It lands in the **same turn** — a system-prompt section or a dynamic context could only take effect on the next request, one step after the decision it is meant to inform. It costs nothing in sessions that never touch the library. And it appends to the conversation instead of changing the prompt, so the cached prefix is untouched.

  The body is read from this package's own bundled copy rather than through `ctx.skills`: this plugin runs on the host plane while skill providers mount per agent preset, so a host lookup can miss the catalog a session actually sees. Front matter is stripped, and the delivered text stays under the tool-result pruner's threshold.

## [0.2.6] — 2026-10-01

### Added

- **Just-in-time notes in tool results.** `task_add` now names the fields a title-only entry is missing, and `task_update` on a task that just became `done` names the specific gaps in the finished record: a `nextStep` still set, steps not marked `done`, an empty `description`. They are derived from the record they just wrote — they restate no rule and repeat no guidance — so they say nothing while the record is right and cost nothing until something is wrong, and they land at the moment it can still be fixed. A tool result is appended to the conversation, so unlike a section it never touches the cached prompt prefix.

### Changed

- The completion form moved into the always-on layer. `task_update`'s description now says to clear `nextStep`, leave `steps` all `done`, and write the outcome into `description` — because that rule was reachable only by loading the skill, and a model that never loads the skill is exactly who leaves the record half-finished. (`host-smoke` asserts all three clauses, so a rewording cannot silently drop them.)

## [0.2.5] — 2026-10-01

### Changed

- **The skip boundary is now a shape test, not a length test.** Both the always-on prompt section and the `task_add` description said to skip "trivial single-step requests" / "one-shot answers", and a repository analysis walks straight through that: "analyze X" is one exchange producing one deliverable, so skipping it was a *defensible* reading of the rule. That is how a user's "给你一个任务：分析 `<repo>`" produced no entry — the rule, not the model, was wrong.

  The boundary now names the shapes that count — analyze / investigate / compare / implement / review, and anything the user calls a task — and keeps exactly one exemption: a reply you can give without looking anything up. It also states that a late entry beats no entry, because "before you start" is the moment a model is least likely to pause.

  The bundled skill states the same boundary and records the case that motivated it, so the three surfaces that carry the obligation (section, tool description, skill) agree.

## [0.2.4] — 2026-09-30

### Fixed

- **A reload that collided with the previous instance could still take the app down.** 0.2.3 made the storage-domain open survive `already-open`, but the same window produces other collisions of the same kind: `WebServer.register` throws on a duplicate `(kind, path)` — the host reports it as `webserver: duplicate prefix route "/task-ui"` — and `Tools.register` fails on a duplicate name within one layer. The crash log says what a synchronous throw out of `apply()` means: `dsh: fatal load failure`, and the application exits.

  Every scope-global registration the plugin makes — the two HTTP routes, the prompt section, and all six tools — is now acquired through one tolerant path. It retries that class of failure (the storage facility's `already-open`, or the web server's duplicate-route error) with a short backoff, and each disposer is owned by the plugin's own `ctx.effect`, which is what actually releases the name. When a resource never frees, the plugin logs it and stays loaded but degraded: a panel without its HTTP API is a far better outcome than an application that will not start.

- Live SSE streams are ended when the plugin is disposed, so a browser's `EventSource` is not left waiting on a channel that nothing will ever write to.

### Added

- `test/host-smoke.mjs` drives the collision path directly: with two injected duplicate-route throws, both routes must still be acquired, and disposing the plugin must free the prefix route.

## [0.2.3] — 2026-09-30

### Fixed

- **Toggling the plugin off could crash the whole application.** `apply()` opened the `task_ui` storage domain and never handled a rejection, so a `DomainError` carrying `already-open` escaped as an unhandled promise rejection — which the host treats as fatal, taking the app down mid-reload. `already-open` is documented as *transient* ("the name is open or still closing"), and this path produces it by construction: a host reloads plugins without awaiting the previous instance's disposal, so the next `apply()` runs while the old domain is still tearing down.

  Both halves of the fix are needed. The handle is now closed from the plugin's own `ctx.effect` disposer — `DomainFacility.open` documents that the caller owns the handle, and relying on the facility's asynchronous unmount fallback is what left the name reserved for the next `apply()` to collide with. The open itself retries that one code with a bounded backoff, because a transient failure deserves a retry rather than a hard failure. Any rejection is also observed, so nothing can reach the host as an unhandled rejection.

### Added

- `test/bundle-css-check.mjs` — verifies the *built* client bundle is internally consistent: every class in its exported map has a rule in the CSS text that bundle injects. The source-level class check cannot see a build that drops or renames a rule.

## [0.2.2] — 2026-09-30

### Changed

- **`skills/task-ui/SKILL.md`** — the completion form now keeps the step flow and
  marks it `done`, instead of sending `steps: []`. Clearing it discarded the one
  thing a later reader most wants — the sequence of what was actually done — and
  made the panel's detail degrade to a single derived node; only `nextStep` is
  cleared on completion. This reaches **fresh installs only**: the Host seeds the
  skill into `<dshHome>/skills/` once and never overwrites it, so an existing
  deployment keeps whatever it already has.
- **README** — the absence of a session/provenance field is now documented as a
  deliberate design decision (tasks are session-independent, so a handoff needs
  current state and the next action, not the origin) rather than as a gap. The
  blocked-reason item stays, on its own.

## [0.2.1] — 2026-09-30

### Added

- **`task_get(id)`** — reads one task in full: description, progress, the whole
  step flow, next step, dependencies, linked job and timestamps, ordered the way
  a session picking up someone else's work needs it. The durable record carried
  far more than `task_list` printed, and a later session had no way to reach it.
- **`task_list` triage clause** — each line gains `— next: ...`, so filtering
  shows what every task does next while the detail stays in `task_get`.
- **`steps` and `nextStep`** on the record, with the flow's states (`done` /
  `current` / `next` / `todo`) validated at the zod boundary on write.
- **Step flow in the detail card** — progress is drawn as a vertical flow rather
  than a bar: finished and pending steps share the plain frame, `current` gets a
  solid brand frame with a faint tint, `next` a dashed one. A flow the owner
  never wrote falls back to `progress` + `nextStep`, and says so on screen.
- **Unprompted use** — a registered system-prompt section plus rewritten tool
  descriptions. The descriptions carry the when-and-how (the shape DSH uses for
  its own `todo_write`); the section is the always-on nudge, covering record /
  keep current / read back / skip trivial, and renders a shorter variant for
  subagents, which are told only to keep their own task's record true.
- **Expired job links** — a `running` task whose job predates the current process
  is flagged in `task_list` (`[expired]`), in `task_get` (a `warning:` line
  before the actionable state) and in the panel (warn-coloured job line). The job
  registry is in-process, so after a restart those links cannot be alive; the
  record is annotated rather than rewritten, because the plugin cannot know
  whether the work finished, was abandoned, or went unrecorded.
- **Panel motion** — new tasks rise in while the bottom-anchored panel slides up
  by the height it gained; a deleted card holds its slot through its exit
  animation.
- **Resizable panel** — drag the left edge (or focus it and use ←/→) for
  260–760px, remembered in `localStorage`.

### Changed

- Tool descriptions now state each tool's purpose, the moment to act, and its
  boundary, and the bundled skill keeps the detailed workflow.
- `config.promptSection` (default `true`) drops just the prompt section, for a
  deployment that would rather rely on the tool descriptions alone.

### Fixed

- Deleting a task made the whole list flash and the panel run a
  shrink/grow/shrink cycle: the removed row is re-adopted as a ghost inside a
  *layout* effect, so it never leaves the DOM for a painted frame.
- The panel could vanish entirely — a `ReferenceError` in the motion effect's
  dependency array. DSH isolates each slot entry, so a component that throws
  renders nothing while the rest of the UI stays healthy.

### Build

- `npm test`: `tsc --noEmit` against the published `0.2.0-rc.2` type packages
  (dev-only, pinned exactly, never shipped) plus host-smoke, client-smoke,
  render and CSS-class checks. The typecheck found a real latent bug on its
  first run; tsdown alone never type-checks.

## [0.2.0] — 2026-09-30

### Added

- Support for `0.2.x` DSH runtimes alongside `0.1.x`; peer ranges widened to
  `^0.1.5-rc.2 || ^0.2.0-rc.2`.

### Changed

- Job-status sync is version-adaptive: `jobs.events.subscribe({ owners: 'all' },
  …)` on 0.2, `jobs.onJobsChanged` on 0.1. A runtime with neither logs a line and
  disables only the bridge, keeping the tools, the panel and the HTTP API.

### Fixed

- `installation rejected: Plugin dsh-global-task-list@0.1.5 is incompatible with
  dsh 0.2.0-rc.2` — caused by peer ranges that excluded the running runtime.
- Agent-origin detection read `session.header.origin` instead of the always-
  undefined `header.meta?.origin`, which made every agent look like a master.

## [0.1.5] — 2026-09-11

### Fixed

- Ported the client bundle to the `0.1.5` client module table (`defineStore`),
  which earlier hosts do not expose; before this the panel failed to load with
  `Failed to load plugins`.

## [0.1.4] — 2026-08-22

### Added

- The bundled `task-ui` skill is seeded into the user skill root on first
  activation (and never overwritten afterwards).

### Fixed

- The panel refreshes on task changes from any session.

## [0.1.3] — 2026-08-22

### Changed

- Documented the exact `allowBuilds` key a pnpm GitHub install requires.

## [0.1.2] — 2026-08-22

### Added

- Host half migrated to TypeScript (`src/index.ts`) with its own build.
- The panel hides off the conversation view, and its header stays visible while
  the list scrolls.

### Fixed

- Session-scoped inject signature (`sessionId, actions`) — the panel previously
  showed 0 tasks.

## [0.1.1] — 2026-08-14

Initial release: a cross-session global task library, a floating panel with
status/delete/split controls, subagent job-status sync, and the generative-UI
`surface` renderer.

[0.4.2]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.4.1...v0.4.2
[0.4.1]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.4.0...v0.4.1
[0.4.0]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.12...v0.3.0
[0.2.12]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.11...v0.2.12
[0.2.11]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.10...v0.2.11
[0.2.10]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.9...v0.2.10
[0.2.9]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.8...v0.2.9
[0.2.8]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.7...v0.2.8
[0.2.7]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.6...v0.2.7
[0.2.6]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.5...v0.2.6
[0.2.5]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.4...v0.2.5
[0.2.4]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.3...v0.2.4
[0.2.3]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.2...v0.2.3
[0.2.2]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.1.5...v0.2.0
[0.1.5]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/sgzxs/dsh-global-task-list/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/sgzxs/dsh-global-task-list/releases/tag/v0.1.1
