Skip to content

v2.1.0

Latest

Choose a tag to compare

@Loco-King Loco-King released this 05 Sep 02:23
· 1 commit to master since this release

Added

  • Per-conversation state tracking: get_time_since_last_check, get_session_duration, and get_full_context now accept an optional conversation_id parameter. Passing it scopes session/gap tracking to that conversation specifically, in ~/.chronast/conversations/<id>.json, and it survives server restarts.

Changed

  • State layout moved from a single per-process state-<pid>.json file to one file per tracked record: ~/.chronast/conversations/<id>.json (conversation-scoped) or ~/.chronast/instances/<uuid>.json (fallback, keyed by a random instance ID instead of PID so a recycled PID can't inherit a dead process's session clock).
  • Calls that omit conversation_id fall back to per-server-instance tracking (the old behavior) and now carry an explicit warning field in the response, so a scoped call and a fallback call are distinguishable in the output.
  • Added a throttled background sweep that removes stale records automatically: conversation records after 48 hours idle, instance records after the configured gap threshold.

Notes

  • This resolves the known limitation from 2.0.x where session/gap state could be shared across concurrent conversations in the same server process.
  • Upgrading from 2.0.x leaves old state-<pid>.json files behind in ~/.chronast/. They are no longer read and can be deleted.