Skip to content

0.5.0: the plugin carries on while Codex holds its hooks for a review, and a session's token counts travel beside it - #8

Merged
Blapi merged 1 commit into
mainfrom
release-0.5.0
Nov 17, 2026
Merged

Blapi merged 1 commit into
mainfrom
release-0.5.0

Conversation

@Blapi

@Blapi Blapi commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

What changes

While Codex holds the hooks for a review

Since Codex 0.164.0 (openai/codex#54619), Codex keeps your trust of a plugin's hooks against the plugin's files. So each update of this plugin sets its five hooks aside until you review them again, and Codex installs an update by itself. A terminal session asks ("5 hooks are new or changed"), the desktop app asks on the plugin's page, and a run with no screen says nothing. Until the review, earlier versions recalled nothing and sent nothing.

Codex still starts the plugin's recall tool, so from 0.5.0 the plugin carries on from there:

  • past_recall's answer says that the hooks wait and where to review them, so that Codex tells you. $past:status says it on its Hooks line, with the day the hooks last ran.
  • Your sessions are still sent. One watcher on the machine sends each thread once it has been quiet for its sitting length (30 minutes by default). Every sitting is closed by then, so none is sent twice, and what is sent for a sitting is what a hook sends.
  • The watcher keeps the hooks' rules: a folder in deny and a subagent's thread are left alone, and what was typed before connecting, or under another project's key, stays on the machine.
  • This holds only where the hooks ran on the machine before. Hooks you never trusted send nothing. To stop sending while the hooks wait, set "ingest": false in ~/.past/config.json or disable the plugin.
  • Recall at session start and before a prompt stays off until you review the hooks: only a hook can do it.

Beside a session, what it ran on

  • Beside each sitting and each recall go the model's name, the token counts Codex recorded for the sitting, how the model is paid for (read from whether an API key variable is set, never from its value) and whether Codex's own memory is on.
  • None of it is part of what is rendered, so no hash moves and nothing already in past.dev is sent again. The sittings sent before the update get their counts once, as ids and numbers with no text.
  • "modelUsage": false in ~/.past/config.json sends none of it. $past:cut and $past:status say what travels.

hooks/hooks.json is untouched. Like every update, this one makes Codex ask you to review the hooks once.

Checked

By hand, in throwaway homes against a local stand-in for the Memory API, on Node 16 and 22:

  • A quiet thread is sent once and never again; a thread that resumes after a pause sends its new sitting alone; a thread not yet quiet is sent once it is.
  • Nothing is sent for a thread older than the hooks' last run, a subagent's thread, a thread in an ignored folder, a machine whose hooks never ran, or hooks that run on this version.
  • With no key, a thread is recorded under no connection; after $past:connect and a new prompt, only that prompt's sitting goes.
  • A refused send is kept for $past:status and goes at the next try.
  • The tool's answer opens with the notice while the hooks wait or never ran, and not otherwise.
  • On a real Codex (0.165.0) with a home of its own: hooks trusted on 0.2.0 read modified after the update to 0.4.0, and again after 0.4.1 with no command run; with the hooks held, Codex started the plugin's server, the server the watcher, and a quiet thread reached the stand-in.
  • cut prints the same bytes as 0.4.1 over real threads. The script parses on Node 14.

Not run: a turn on a model. Nobody has watched Codex skip a held hook, or the model pass the notice on.

🤖 Generated with Claude Code

…, and a session's token counts travel beside it

Since Codex 0.164.0, Codex keeps your trust of a plugin's hooks against the plugin's files, so it
sets the five hooks aside each time the plugin updates, until you review them again, and it installs
an update by itself. Until then no hook ran: nothing was recalled and no session was sent, and a run
with no screen said nothing about it.

Codex still starts the plugin's recall tool, so the plugin now carries on from there while the hooks
wait. `past_recall`'s answer and `$past:status` say that the hooks wait and where to review them. One
watcher on the machine sends each thread once it has been quiet for its sitting length, so no sitting
is sent twice; it leaves ignored folders and subagent threads alone, and records the connection a
thread is typed under as a hook does. It runs only where the hooks ran before: hooks you never
trusted send nothing. Recall before a prompt stays off until you review the hooks.

Beside each sitting and each recall go the model's name, the token counts Codex recorded, how the
model is paid for and whether Codex's own memory is on; none of it is part of what is rendered, so
nothing already in past.dev is sent again. The sittings sent before the update get their counts
once, with no text. `"modelUsage": false` sends none of it.

hooks/hooks.json is untouched. Like every update, this one makes Codex ask you to review the hooks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@Blapi
Blapi marked this pull request as ready for review November 17, 2026 15:08
@Blapi
Blapi merged commit f211e8f into main Nov 17, 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