Skip to content

0.4.0: a sitting also closes past 50 KB of prose, a compaction holds the open sitting for an hour, and a credit refusal pauses the operation - #6

Merged
Blapi merged 1 commit into
mainfrom
release-0.4.0
Nov 5, 2026
Merged

Blapi merged 1 commit into
mainfrom
release-0.4.0

Conversation

@Blapi

@Blapi Blapi commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

What changes

The Codex plugin takes the same version number as the Claude Code plugin from here on; there is no 0.3.x.

  • A sitting also closes once it holds 50 KB of prose (sittingKilobytes in ~/.past/config.json, 50 by default, 10 at least), once Codex has answered. A thread that never goes quiet, an agent at work for hours, is cut all the same, and a send of it carries one sitting again rather than the whole. The size is pinned per session beside sittingMinutes: a session already sent keeps the cut it was sent with, so nothing already in past.dev moves and backfill re-sends nothing.
  • A compaction sends the sittings that closed since the last send, once each, and the one still open only when the session's last send is an hour old. The transcript on disk loses nothing at a compaction; the open sitting goes when the Codex process exits or the session goes idle. Before, every compaction sent the session so far again, as a new revision.
  • A credit refusal pauses the refused operation. After 402 out-of-credits the plugin keeps unsent sessions locally and checks the balance at most once every five minutes per paused operation; a write refusal does not pause recall. $past:status --refresh reads the balance now and clears the pause once it suffices.
  • A waiter started by an earlier version is replaced at the next turn, session start or $past:status.

hooks/hooks.json is untouched, so no hook's trust is reset.

Checked by hand, as AGENTS.md describes: the old and the new script over the same real transcripts in throwaway homes against a local stand-in for the API, comparing what cut prints, what each request carries and what state.json keeps; Node 14 parses the script and Node 16 prints the same cut as Node 22.

🤖 Generated with Claude Code

…the open sitting for an hour, and a credit refusal pauses the operation

A sitting also closes once it holds `sittingKilobytes` of prose (50 by default, 10 at least), once
Codex has answered, so a thread that never goes quiet is cut all the same; the size is pinned per
session, and a session already sent keeps the cut it was sent with. PreCompact sends the sittings
that closed since the last send, once each, and the one still open only when the session's last
send is an hour old. After `402 out-of-credits` the refused operation pauses and the balance is
checked at most every five minutes (`$past:status --refresh` checks it now). A waiter started by an
earlier version is replaced. hooks/hooks.json is untouched. The version number is the Claude Code
plugin's from here on; there is no 0.3.x.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Blapi
Blapi marked this pull request as ready for review November 5, 2026 11:32
@Blapi
Blapi merged commit 4dc4d2d into main Nov 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant