Repository navigation
feat(sessions): install runtime-sessions mu-plugin into external WordPress mounts - #970
Merged
Merged
Conversation
chubes4
marked this pull request as ready for review
December 5, 2026 16:40
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.
Summary
External WordPress setups never installed the runtime-sessions mu-plugin, so
wp coding-agents session push|pullwas missing unless the host copied the file in by hand. With--external-wordpress --wordpress-mount <path>, setup now copies the template into<path>/wp-content/mu-plugins. It copies only when the file is missing or different and leaves the mount's ownership and mode alone. Without a mount, setup skips the copy and still succeeds.What changed
mu_plugin_template_synctakes an optional WordPress root (default$SITE_PATH) and skips permission normalization in external mode, since the remote host owns the mount.runtime_sessions_installinstalls into$WORDPRESS_MOUNTin external mode and logs a skip when no mount is given; colocated behavior is unchanged.runtime_sessions_install; upgrade's existing call goes through the same mount logic.Verification
All gates passed on
084b3ca014ca. Basemain: gated on0947fce99b4e, target now0947fce99b4e, re-verified: no.HOMEBOY_LINT_BASE=0947fce99b4e9dd28ce196ea55316c785b498944 homeboy --placement local review lint wp-coding-agents --pat…: passed, 1811 ms; retained gate metadata.bash tests/external-wordpress-runtime.sh && bash tests/runtime-sessions.sh: passed, 16847 ms; retained gate metadata.Cook run
agent-task-9844636d-7271-485a-a923-aea30a88096fagent-task-9844636d-7271-485a-a923-aea30a88096f-attempt-1-2343806e29ac7c999847c9b38a96e6599140b8e522f6095c29ac7c999847c9b38a96e6599140b8e522f6095cDelivery
tests/external-wordpress-runtime.sh(or a focused test in the same style) proves an external setup with--wordpress-mountinstalls the mu-plugin into the mount. A repeat run leaves it unchanged, and a run without a mount still succeeds.Evidence
bash tests/external-wordpress-runtime.shprinted 'PASS: external WordPress Pi-only transport' with the new mount assertions (install, unchanged repeat run, no permission calls, no-mount run).bash tests/runtime-sessions.shprinted 'PASS: runtime sessions round-trip through the Agents API conversation store'.AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served claude-opus-5-5. Cook time: 5m17s.
The AI implemented the installer change, extended the external-runtime test and updated the docs, then ran the gate scripts locally. It could not read issue #969 itself because
gh issue viewprinted nothing, so it worked from the task description, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.Refs #969