github mksglu/context-mode v1.0.1

latest releases: v1.0.89, v1.0.88, v1.0.87...
one month ago

v1.0.1 — Session Task State Fix

Bug Fix

Completed tasks no longer resurface after context compaction.

When context compacted, the session guide was including already-completed tasks — causing the model to re-suggest finished work. Three layers were fixed:

  • snapshot.ts renderTaskState() — Now reconstructs the full task list from create/update events, filters completed tasks, and returns empty when all tasks are done. Previously only showed the last raw event.
  • session-directive.mjs buildSessionDirective() — Filters completed tasks from the session guide. Section renamed from ## Tasks to ## Pending Tasks. No section emitted if all tasks are complete.
  • session-directive.mjs writeSessionEventsFile() — Splits tasks into ## Tasks In Progress and ## Tasks Completed sections for accurate FTS5 indexing. Previously labeled all tasks as "In Progress" regardless of status.

Tests

  • tests/snapshot-task-state.test.ts — 8 new tests for renderTaskState() completion filtering
  • tests/session-directive-tasks.test.ts — 7 new tests for directive and events file task splitting
  • Updated 3 existing tests in tests/session/session-snapshot.test.ts to use structured task event format

34 test files, 705 tests — all green.

Install

# Claude Code (plugin marketplace)
/install context-mode

# Other platforms (global install)
npm install -g context-mode

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.