Repository navigation
The coding-agent plugins declare a minimum server version and SessionStart warns when the server is older - #328
Merged
Merged
Conversation
zlareb1
force-pushed
the
feat/plugin-min-server
branch
3 times, most recently
from
November 7, 2026 10:28
eda1304 to
c3b38e5
Compare
…Start warns when the server is older Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ocation Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… only what the server sends Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
feat/plugin-min-server
branch
from
November 7, 2026 10:41
7e700f6 to
02aa8aa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The Claude Code and Codex plugins name the oldest Loom server they support, so a later release can warn a session started against an older server, in one line, and the
loom-statuscheck reports the same.GET /v1/healthreports the server'sversion.Why
The plugins carry their own version and update through each client's plugin manager, apart from the server. A plugin newer than the server it talks to fails in its hooks one op at a time, with nothing to tell the user that the server is the thing to upgrade. Each plugin now declares the oldest server its hooks support, and SessionStart says when the connected server is older. It never blocks a session.
minServerVersionin both manifests (integrations/claude-code-plugin/.claude-plugin/plugin.json,integrations/codex-plugin/.codex-plugin/plugin.json), kept equal bytests/unit/test_codex_plugin.py, a plainX.Y.Zno newer than the server's own version. It rises only in a release pull request, to that release, when a hook merged since the previous release needs an op it first serves. Raised onmainbefore the release, it would tell everymainbuild and every user of the last release to upgrade to a release that does not exist yet..claude/rules/plugins.mdand the release process page say so. It is1.0.0: every op the hooks,lib/andbin/name (34 of them) is listed in v1.0.0's operations reference.lib/server-version.mjs). SessionStart already made oneGET /v1/healthto measure the round trip.probeHealthnow also returns that answer's body, and the call runs inside the primer'sPromise.all, so there is no extra round trip. It is bounded by 3 seconds, or by a lowerLOOM_HOOK_TIMEOUT_MS, since SessionStart now waits for it.versionis older than the minimum, the primer's notices gain one line:loom: the Loom server at <url> runs <v>, older than <min>, the oldest this plugin (<plugin v>) supports; upgrade the server.1.2.0-rc.1meets a minimum of 1.2.0.versionfield, a version that is not SemVer, or no readable manifest.loom-statusskill's client check (bin/loom-client-status.mjs) reports the same sentence as aserver versionwarning, which does not fail the check.GET /v1/healthgainsversion(the value ofserver/__init__.py). Its answer is unauthenticated and already carriesbuild_commit, so this exposes nothing new. No released server sends the field yet, so the warning fires only against servers from the release that ships this change on.Both plugins move from 1.2.9 to 1.2.10.
Scope and risk
The SessionStart hook in both plugins (the Codex copy is generated by
scripts/codegen/agent_plugin_sync.py), one new lib module,probeHealth(renamed frommeasureRoundTrip, with its bound) inlib/loom-client.mjs, theloom-statusclient check and skill text, the two manifests, the health answer,hooks/HOOKS.md, the plugins rule, and three doc pages. The hook keeps every existing fail-open path. A health call that hangs or fails resolves with no body and yields an empty line; the.catchstill turns anything that throws into an empty line. WithLOOM_INJECT_CONTEXT=false, or no token and a failed sign-up, the hook exits before the health call and prints nothing, as it did.Compatibility, rollout and rollback
GET /v1/healthresponse gainsversion.Tests
integrations/claude-code-plugin/tests/server-version.test.mjs(8 tests) covers parsing, comparison, the line's text and reading the manifest. It also runs the real hook against a fake server: one warning for an older server, and silence for a current version, no field, a non-SemVer version, bad JSON, a hung health call and nothing listening. Another test checks that a session against a hung health call finishes in under 2.5 s withLOOM_HOOK_TIMEOUT_MS=500, below the 3 s default. A last test imports the Codex copy oflib/server-version.mjsand checks that itspluginManifest()reads.codex-plugin/plugin.jsonfrom its own location.loom-statusclient check (bin/loom-client-status.mjs) adds aserver versionWARN check, without failing, when the server is older; a test covers it.node --test integrations/claude-code-plugin/tests/*.test.mjs: 587 passed.tests/unit/test_codex_plugin.pychecks both manifests'minServerVersion.tests/unit/test_health_problems.pychecksversionin the health answer.python3 scripts/codegen/agent_plugin_sync.py --check: the Codex copies are current.codex-cli0.162.1) installs and enables the plugin at 1.2.10 with the new manifest key, from this branch as a local marketplace in a throwawayCODEX_HOME.claude plugin evalwas not run for theloom-statusskill's two-line change: it spends model calls.claude plugin validate integrations/claude-code-pluginpasses, with a warning that it does not knowminServerVersion; it ignores the field at load time.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. The op list behind the minimum was checked against the v1.0.0 tag's registry.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.main; no merged migration is edited.frontend/changed: unchanged.docs/describe the system as it now is, and this description names any operator steps and wire changes.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code