Skip to content

v2.3.1

Choose a tag to compare

@itechmeat itechmeat released this 02 Dec 06:26
48096b4

Open Second Brain v2.3.1 - A Session Opened Before an Update No Longer Keeps the Old Version

Open Second Brain v2.3.1 fixes what happened to a session that was still open when the Claude Code plugin was updated: it ran the old version without saying so, and its next start moved the commands on PATH back to it. Such a session now says in one line that it should be restarted, its tool servers refuse every write, and the commands on PATH follow a launcher that only the installed version moves. The pulse board gets the follow-ups of 2.3.0: agents raise what they need from you on the board, projects get a display name and your own order, and the web page installs as an application.

How it looks

A session that outlived an update prints this line at every session start, and once more at its next prompt:

Open Second Brain 2.3.2 is installed, this session runs 2.3.1: restart the session to run 2.3.2. A reconnect of the servers or a resume in the same host process keeps 2.3.1.

The owner's commands for the projects of the board:

$ o2b brain pulse name <project> <name>
$ o2b brain pulse order <project>...
$ o2b brain pulse adopt <key> <project|q>

What is new

  • Agents raise what they need from you on the pulse board. The pulse rule of every scope that registers brain_pulse now asks the agent to raise every question, approval or action it needs from you as an item before its turn ends, and to name the item's token (=osb4) in the chat line that asks it. The board, not the chat, holds what the agent waits for.
  • An end-of-turn check of the questions in an answer. In your main session on the brain store, a line of the final message outside code and quotes that ends with a question mark and names no token of an open or answered item continues the turn once, with a text that names at most three such lines and asks the agent to raise each with brain_pulse. It is advisory: it misses an ask without a question mark and takes a rhetorical question for one.
  • The board from the shell, also for a session whose server is outdated. o2b tool-call brain_pulse runs with the shell's working folder as the caller's folder and the session OPEN_SECOND_BRAIN_SESSION_ID names, so an item raised from a project folder lands in that project. A server_outdated refusal ends with that command, so an agent of an outdated session can still reach you. The board refuses every write of a child session (child-session).
  • Outdated servers are counted on both pulse pages. While tool servers on the machine refuse writes, both pages show one line with the count, exact only when its check read the whole folder of marks in time; otherwise the line starts with "At least". Servers of 2.3.0 and earlier leave no mark.
  • o2b update restarts an older watch service its unit runs. When the installer's unit (a systemd user unit on Linux, a launchd agent on macOS) serves this update's store, is active and runs an older version of that store's service, o2b update restarts it and says restarted only once the new service names the installed version. Any other service is left as it is, with the command you can run.
  • The pulse page installs as an application. The service serves a web app manifest and the Open Second Brain icons beside the page, with no service worker, so the page gets its own icon and window: with Chrome on Android, "Add to Home Screen" in Safari on iOS and iPadOS, and the install button of a Chromium browser on the desktop, from the machine itself or over HTTPS. Install from an address that does not carry pulse_web_token: the machine's own page with no token set, or a reverse proxy that sends Authorization: Bearer <token>. The page also carries the Open Second Brain logo as its tab icon and asks search engines neither to index nor to follow it.
  • Items and chips read faster. Each item starts with an icon of its kind (a question orange, a notice blue, an approval green, an action violet); an item that blocks work says "blocking work" beside its time. An item's details, a project's work lines ("Work lines: N sessions") and its closed tail ("Closed: N") are each one line that opens on a click and stays open across live updates. A chip's count is orange when one of the items is a question, blue when all are notices and neutral otherwise; a chip whose project has blocking work has a dark edge.
  • Your order of the projects. Drag a project chip on the web page, or lift a focused chip with Space, move it with the arrow keys and drop it with Space: every page of the board, o2b brain pulse and the tool's read then show the projects in that order, then the others in their order of first appearance, then "Outside projects" unless it is named. It is the shared setting pulse.project_order of at most 64 groups, which o2b brain pulse order <project>... also sets and --clear removes. A save that fails or gets no answer within ten seconds puts back the last confirmed order and says so in one line.
  • A display name for a project. o2b brain pulse name <project> <name> gives a project the name you read it by, kept in the shared setting pulse.project_names, and --clear removes it. The Markdown page's heading, the web page's chip, card title and notification title, the o2b brain pulse listing, the session block and the prompt hook's lines show it. A name is one line of 1 to 64 code points, cosmetic and never an address: no command takes a project by it.
  • o2b brain pulse adopt <key> <project|q> places a group 2.2.0 wrote, named by the key its heading shows or a refusal names, into a project or, with q, into "Outside projects", and prints where the group now belongs.

Fixed

  • A session of an earlier version no longer moves the commands on PATH back. In 2.2.0 and 2.3.0 every session start pointed ~/.local/bin/o2b, o2b-hook and vault-log at its own plugin folder with no version check. For a plugin-cache install these entries now lead to a launcher in open-second-brain/launcher of the user data folder, which runs the version folder its pointer file names, and only the installed version moves the pointer. The commands follow at the first session of the installed version; while a folder the host already removed is missing, o2b and vault-log print one line and exit 127 (9009 on Windows), and o2b doctor reports the launcher as cli_launcher.
  • A server that outlived its install is recognised. The outdated-server guard compared the running version with a package.json the plugin cache leaves in place after an update, so a server of the previous version kept writing. It now reads which version the host's install record (installed_plugins.json) installs for the server's working folder and refuses every write, brain_pulse reads included, with server_outdated and a message to restart the agent session. Servers of 2.2.0 and 2.3.0 that keep running still write with their own version until they are quit.
  • An outdated session says so. A session whose own hooks run another version than the one installed for its working folder gets one line first at every session start, also with no vault, and once more at its next prompt. It never blocks. On a host whose hooks run through the launcher (Codex and the adapter hosts) the agent learns of an outdated server only from its refusal.
  • The pulse page keeps the keyboard focus through live updates, on the chip of the same project, or the summary or the token of the same item.
  • The pulse page says when it cannot connect. After ten seconds the status turns to "not connected", with a line that names several open tabs as a possible cause, and the page connects again by itself.
  • A settings write lands in the store it was read from. o2b brain settings set and unset and the brain_settings tool append to the store their settings were read from; when the configuration names another store by then, the write fails and nothing is written.
  • o2b tool-call refuses argument names that reach a prototype. A --tool-arg named __proto__, constructor or prototype is a usage error (exit 2).
  • The machine config is private to its user. On Linux and macOS every writer of config.yaml leaves it at mode 0600, keeps a narrower mode, and creates a missing config folder with mode 0700.

Good to know

  • A first write no longer moves live 2.2.0 items into "Outside projects". While an item of a 2.2.0 group is open or answered, an agent's write from a folder that belongs to no project is refused whole, with a text that names the counts and o2b brain pulse adopt. Reads and your own commands are never refused.
  • The order and the names of the projects are yours. brain_settings refuses pulse.project_order and pulse.project_names to an agent (operator_only_setting), and the write gate denies an agent's shell run of o2b brain pulse order, name and adopt. An agent may relay your naming of its own project only when the name stands as written in your own turn; a relayed rename needs the new letters in your own words the same way.
  • o2b doctor fails on a machine config that others can access. On Linux and macOS it is a failed config_permissions check until the file is narrowed (chmod 600 <path>); o2b update narrows it itself and leaves a symbolic link alone.
  • o2b update changes a watch unit only when it serves this store. A unit of another store, or one whose store cannot be established, is left as it is, and the update says why.
  • The end-of-turn check costs one more model step each time it fires. pulse_ask_check_enabled: "false" in the machine config, or OPEN_SECOND_BRAIN_PULSE_ASK_CHECK_ENABLED=0, turns it off, which one-shot runs (claude -p, codex exec) need.
  • Update every machine that uses the board. A machine still on 2.2.0 or 2.3.0 keeps the order of first appearance, shows each project by its key or folder name, and its servers leave no mark for the count of outdated servers.

Update

bun add -g open-second-brain@2.3.1

For the Claude Code plugin, only a new host process applies the update: after claude plugin update open-second-brain@open-second-brain, quit every running host process and start it again (a reconnect of the servers, a resume, a clear or a compaction keeps the old version), check o2b --version after the first new session, and run o2b update once on a machine that runs the watch service. The steps are in Upgrading to 2.3.1. Reference: docs/pulse-web.md, "The pulse board" in docs/mcp.md and docs/cli-reference.md. Full list of changes: CHANGELOG.md.