Skip to content

feat(sessions): install runtime-sessions mu-plugin into external WordPress mounts - #970

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-969-wp-coding-agents
Dec 5, 2026
Merged

chubes4 merged 1 commit into
mainfrom
fix/issue-969-wp-coding-agents

Conversation

@chubes4

@chubes4 chubes4 commented Dec 5, 2026

Copy link
Copy Markdown
Member

Summary

External WordPress setups never installed the runtime-sessions mu-plugin, so wp coding-agents session push|pull was 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_sync takes an optional WordPress root (default $SITE_PATH) and skips permission normalization in external mode, since the remote host owns the mount.
  • runtime_sessions_install installs into $WORDPRESS_MOUNT in external mode and logs a skip when no mount is given; colocated behavior is unchanged.
  • setup.sh's external branch now calls runtime_sessions_install; upgrade's existing call goes through the same mount logic.
  • tests/external-wordpress-runtime.sh covers a first install into the mount, an unchanged repeat run, no permission changes on the mount, and a run without a mount; docs/runtime-sessions.md describes this behavior.

Verification

All gates passed on 084b3ca014ca. Base main: gated on 0947fce99b4e, target now 0947fce99b4e, 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.
  • repro: none (no repro gate was declared, so these gates do not prove the issue).
  • CI: pending

Cook run
  • Cook ID: agent-task-9844636d-7271-485a-a923-aea30a88096f
  • Attempt run ID: agent-task-9844636d-7271-485a-a923-aea30a88096f-attempt-1-2343806e
  • Gate 1: tree 29ac7c999847c9b38a96e6599140b8e522f6095c
  • Gate 2: tree 29ac7c999847c9b38a96e6599140b8e522f6095c

Delivery

  • Delivered: tests/external-wordpress-runtime.sh (or a focused test in the same style) proves an external setup with --wordpress-mount installs the mu-plugin into the mount. A repeat run leaves it unchanged, and a run without a mount still succeeds.
  • Delivered: Existing tests stay green.

Evidence

  • Local run: bash tests/external-wordpress-runtime.sh printed 'PASS: external WordPress Pi-only transport' with the new mount assertions (install, unchanged repeat run, no permission calls, no-mount run).
  • Local run: bash tests/runtime-sessions.sh printed 'PASS: runtime sessions round-trip through the Agents API conversation store'.
  • Local run: the homeboy review lint gate against HEAD returned status passed. Limits: the issue text could not be read, and only the two gate scripts were run, not the full test suite.

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 view printed 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

@chubes4
chubes4 marked this pull request as ready for review December 5, 2026 16:40
@chubes4
chubes4 merged commit 126e5be into main Dec 5, 2026
93 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