Skip to content

1.3.0

Choose a tag to compare

@geminixiang geminixiang released this 09 Oct 16:35

What's changed

Highlights

  • /compact [instructions] (/pi-compact in Slack) summarizes a session's older messages with pi-durable's compaction to free up context, in DMs and at a channel's top level, and reports the context size before and after. Earlier messages stay in the session history.
  • Codemode store(key, value) and load(key) keep JSON values across scripts in a conversation, as in Pi. Values survive a restart, a thread started from a run sees the values as of that run, and /new clears them.

Upgrade steps

  • Run mikan migrate after upgrading. The new step 0013-session-usage records the spend of sessions imported from 0.5.3 in pi-durable's usage ledger; the daemon does not start while it is pending.
  • Existing Slack apps must add /pi-compact to their slash commands. The example manifests include it.

Notable changes

  • MCP tool results reach the model through pi-mcp's toLlmContent, so an image embedded as a resource is passed to the model as an image.
  • Slack DM tasks are found, and their status and acknowledgement read, from pi-durable's task records instead of log.jsonl, so task status keeps working after a lost or rotated log. Task threads started before 1.1.0 are no longer recognized as tasks, and tasks started from 1.1.0 to 1.2.2 list without their acknowledgement.

Fixes

  • The Admin portal's usage views count each session's own spend: a thread started from the run that caused it no longer repeats its parent's spend. Totals now include failed attempts and compaction.
  • /new in a DM no longer waits for running background tasks or other DM threads (#158).

Verification

  • CI and the Slack E2E workflow pass for each change.
  • Each change was checked with an acceptance eval against the previous main, and on a local Slack daemon.
  • 1.3.0-beta.1 ran on a production deployment: mikan migrate completed, and /pi-compact worked in a DM.

See CHANGELOG.md for details.