Skip to content

v2.1.39 — Status Continuity

Choose a tag to compare

@taekim34 taekim34 released this 20 Sep 03:45
41a9c79

A bug-fix release for two reported defects. PR #157.

A finished phase /pdca status could not see (#156)

Six Stop handlers passed agentOutput to extractFeatureFromContext and the
function read neither it nor currentStatus, so the feature always fell through
to primaryFeature — empty in a project whose first feature is the one being
recorded. The handler exited without writing, and /pdca status showed nothing
for work that had just completed; where another feature existed, the phase
attached to that one. plan-plus-stop also scanned the hook payload rather than
the skill's output, and a Stop payload never carries the assistant's answer.

  • The feature is recovered from the document path the phase names in its output,
    matched against the project's own pdca.docPaths.* templates. The file must
    exist, and an output naming two features defers to the recorded one.
  • getPdcaStatusView() (lib/pdca/status-derive.js) reads the phase from the
    documents as well: a plan document means the plan phase happened, whoever
    recorded it, so a lost write no longer empties the progress surface. Read-only,
    and never ahead of a recorded phase.
  • plan-plus and btw now point at pdca-status.json; starter, dynamic and
    enterprise keep memory.json, which is the 9-phase pipeline store, and say
    what it holds. plan-plus's task-template matches the [Plan] {feature}
    Task the runtime creates.

A warning on every session start (#155)

hooks/hooks.json carried a $schema key by convention. The URL it named 404s,
so it bought no editor completion, and Claude Code up to 2.1.268 reported it as an
unknown top-level key once per session. Removed. Two contract assertions that
required the field now pin the loader's accepted set instead — $schema,
description, hooks, modules, surface as of Claude Code 2.1.276 — which is
what decides whether a session warns.

Verification

  • Full suite compared against the previous release: no new failures.
  • Live hook dispatch re-recorded because hooks.json changed: 21 events,
    pass=23 fail=0.
  • End to end with a Stop payload shaped the way Claude Code sends it: before, no
    status file; after, the phase recorded against the right feature.
  • Hook cost +9 ms on the handler (0.09% of its 10 s timeout).

Reported by @jojo3420 (#156) and @BrightGold70 (#155).