@link-assistant/hive-mind 1.50.11 → 1.50.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +11 -0
- package/package.json +3 -3
- package/pr-1607-body.md +34 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -174,6 +174,10 @@ claude
|
|
|
174
174
|
# Optionally test Claude connection
|
|
175
175
|
claude -p hi --model haiku
|
|
176
176
|
|
|
177
|
+
# Verify Playwright MCP is registered for both CLIs in this container image
|
|
178
|
+
claude mcp list | grep playwright
|
|
179
|
+
codex mcp list | grep playwright
|
|
180
|
+
|
|
177
181
|
# You might need to update hive-mind and agent to latest versions:
|
|
178
182
|
bun install -g @link-assistant/hive-mind
|
|
179
183
|
bun install -g @link-assistant/agent
|
|
@@ -212,6 +216,11 @@ docker run -dit --user sandbox --name hive-mind --restart unless-stopped \
|
|
|
212
216
|
SANDBOX_UID=$(docker exec hive-mind id -u sandbox)
|
|
213
217
|
chown -R $SANDBOX_UID:$SANDBOX_UID /root/.hive-mind/claude /root/.hive-mind/codex /root/.hive-mind/gh
|
|
214
218
|
chown $SANDBOX_UID:$SANDBOX_UID /root/.hive-mind/claude.json
|
|
219
|
+
|
|
220
|
+
# Important: mounted ~/.codex data overrides the image-baked Codex config.
|
|
221
|
+
# If the host directory was created before Playwright MCP was added to the image,
|
|
222
|
+
# re-register it once inside the running container:
|
|
223
|
+
docker exec -it hive-mind bash -lc 'codex mcp list && codex mcp add playwright -- npx -y @playwright/mcp@latest --isolated --headless --no-sandbox --timeout-action=600000 --viewport-size 1920x1080'
|
|
215
224
|
```
|
|
216
225
|
|
|
217
226
|
**Benefits of Docker:**
|
|
@@ -222,6 +231,8 @@ chown $SANDBOX_UID:$SANDBOX_UID /root/.hive-mind/claude.json
|
|
|
222
231
|
- ✅ Easy to run multiple instances with different GitHub accounts
|
|
223
232
|
- ✅ Consistent environment across different machines
|
|
224
233
|
|
|
234
|
+
The Docker image itself now registers Playwright MCP for both Claude and Codex during build, and CI verifies those registrations in the built container. If `codex mcp list` is still empty in a running container, the usual cause is not the published image itself but a mounted `/workspace/.codex` directory from the host that replaces the image's default Codex configuration.
|
|
235
|
+
|
|
225
236
|
See [docs/DOCKER.md](./docs/DOCKER.md) for advanced Docker usage.
|
|
226
237
|
|
|
227
238
|
#### Stoping and removing docker container
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@link-assistant/hive-mind",
|
|
3
|
-
"version": "1.50.
|
|
3
|
+
"version": "1.50.12",
|
|
4
4
|
"description": "AI-powered issue solver and hive mind for collaborative problem solving",
|
|
5
5
|
"main": "src/hive.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"lint": "eslint 'src/**/*.{js,mjs,cjs}'",
|
|
21
21
|
"lint:fix": "eslint 'src/**/*.{js,mjs,cjs}' --fix",
|
|
22
22
|
"check:duplication": "jscpd .",
|
|
23
|
-
"format": "prettier --write \"**/*.{js,mjs,json,md}\"",
|
|
24
|
-
"format:check": "prettier --check \"**/*.{js,mjs,json,md}\"",
|
|
23
|
+
"format": "prettier --write \"**/*.{js,mjs,json,md}\" --ignore-path .prettierignore",
|
|
24
|
+
"format:check": "prettier --check \"**/*.{js,mjs,json,md}\" --ignore-path .prettierignore",
|
|
25
25
|
"changeset": "changeset",
|
|
26
26
|
"changeset:version": "changeset version",
|
|
27
27
|
"changeset:publish": "npm run build:pre && changeset publish",
|
package/pr-1607-body.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
Fixes #1606 by documenting and verifying Playwright MCP registration for Codex in addition to Claude Code, including the Docker-specific case where persisted Codex state overrides the image defaults.
|
|
4
|
+
|
|
5
|
+
## Root Cause
|
|
6
|
+
|
|
7
|
+
The reported environment had `@playwright/mcp` installed and registered in Claude, but `codex mcp list` had no configured servers. The immediate cause was missing Codex MCP registration. Local reproduction confirmed that `/workspace/.codex/config.toml` can exist without a Playwright MCP entry and that `codex mcp add playwright ...` fixes the state immediately. In Docker deployments, the most likely explanation is that a host-mounted `/workspace/.codex` directory preserved an older Codex config and replaced the image-baked MCP registration. Existing docs and helper scripts also focused mainly on Claude setup, so the mismatch was easy to miss even though `/version` already reported it correctly.
|
|
8
|
+
|
|
9
|
+
## Changes
|
|
10
|
+
|
|
11
|
+
- added regression coverage for the mixed MCP state where Claude is connected and Codex is not
|
|
12
|
+
- updated Playwright MCP verification and integration scripts to check Codex MCP registration explicitly
|
|
13
|
+
- updated Docker verification to fail if Claude or Codex is missing the Playwright MCP registration
|
|
14
|
+
- updated configuration and Docker docs to include both `claude mcp add ...` and `codex mcp add ...`
|
|
15
|
+
- documented that mounting `/workspace/.codex` can override the image defaults and reintroduce the problem
|
|
16
|
+
- added the investigation record and collected evidence under `docs/case-studies/issue-1606`
|
|
17
|
+
|
|
18
|
+
## Reproduction
|
|
19
|
+
|
|
20
|
+
1. Install `@playwright/mcp` and register it only with Claude.
|
|
21
|
+
2. Run `claude mcp list` and confirm `playwright` is present.
|
|
22
|
+
3. Run `codex mcp list` and observe `No MCP servers configured yet`.
|
|
23
|
+
4. Run `/version` and observe `Playwright MCP: <version> | Claude Code: connected | Codex: not connected`.
|
|
24
|
+
|
|
25
|
+
## Verification
|
|
26
|
+
|
|
27
|
+
- `node tests/test-version-info.mjs`
|
|
28
|
+
- `node tests/test-version-parsing.mjs`
|
|
29
|
+
- `bash scripts/verify-docker-image.sh`
|
|
30
|
+
|
|
31
|
+
## Evidence
|
|
32
|
+
|
|
33
|
+
- case study: `docs/case-studies/issue-1606/README.md`
|
|
34
|
+
- PR: https://github.com/link-assistant/hive-mind/pull/1607
|