Repository navigation
feat: OpenCode UX — add-role merge, remove-role, doctor --check-host (#32 W5+W6) - #47
Merged
Merged
Conversation
…hs (#32 W5) - mergeManifestParticipants/removeManifestParticipant: re-init merges new roles into the existing manifest instead of overwriting (G1); removal refuses to drop the last role - initialize-team/generic-host/opencode-host: manifest write is a merge; OpenCode denyTools render from the full merged roster (G3) - relativeHomePaths: opencode/generic MCP configs reference credentials and synloqHome relative to the config file, so project checkouts move freely (#7) - new remove-role CLI command: operator-authenticated, deletes the OpenCode session (skips gracefully when the host is down), revokes the token and outstanding claim codes, removes the manifest participant and opencode MCP entries, cleans up state - OpencodeApiClient.deleteSession; removeOpencodeMcpServers with correct handling of absent keys
- OpenCode-bound roles gain an additive hostCheck in the doctor report:
opencode.json entry consistency (present/missing/unreadable) and credential
health always (offline), session liveness only behind --check-host
- Liveness uses the host client's GET /api/session/{id}; an unreachable or
erroring host degrades to session "unknown" with a note — doctor stays a
diagnostics surface and never throws on host failures
- New read-only opencodeMcpServerNames helper; --check-host flag wired in
the CLI with discovery identical to remove-role
This was referenced Nov 15, 2026
Closed
OBenner
added a commit
that referenced
this pull request
Nov 15, 2026
… live runbook gitleaks-action v2 requires GITHUB_TOKEN to scan pull requests (breaking change); the Secret scan job failed on PR #47 with that exact error. Also add docs/runbooks/2026-11-15-claude-desktop-live-dod.md: live verification for the Claude Desktop Code tab as an inbox-only surface. Per-role project dirs with project-scope .mcp.json (ADR-0004 signal), isolation check against the shared-config risk, E5 probes for hooks/channels without granting active delivery.
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.
Scope
Issue #32 — W5 (add-role manifest merge, remove-role, relative home paths) + W6 (doctor --check-host for OpenCode). W4 (role prompt template) landed earlier as 84ba779.
W5 — 9788be1
mergeManifestParticipants/removeManifestParticipant: re-init merges new roles into the existing manifest instead of overwriting it (gap G1 from the live tester onboarding); removal refuses to drop the last role.relativeHomePaths: generated OpenCode/generic MCP configs reference credentials and synloq home relative to the config file — project checkouts can move ([P1] Remove absolute paths from generated configs #7 second render path).synloq remove-rolecommand: operator-authenticated before any irreversible step, deletes the OpenCode session (skips gracefully when the host is down), revokes the token and outstanding claim codes, removes the manifest participant and the opencode.json entries, cleans team state. Kimi Work chats stay manual (host cannot delete them).OpencodeApiClient.deleteSession;removeOpencodeMcpServerswith correct handling of absent keys.W6 — 54245b9
hostChecksection insynloq doctor: opencode.json entry consistency (present/missing/unreadable) and credential health offline, session liveness (alive/dead) only behind--check-host.unknownwith a note — doctor never throws on host errors and stays offline-safe by default.opencodeMcpServerNameshelper;--check-hostwired in the CLI with the same discovery as remove-role.Verification
pnpm verifygreen in the worktree: 81 files / 723 tests (8 new for W6, plus W5 coverage across manifest merge, remove-role with a fake OpenCode server, relative paths).docs/add-role.mdcovers add-role merge, remove-role, and the new doctor section.Left for follow-ups (out of scope here): relay registry already hot-reloads additions via ParticipantDirectory (G4 closed by #36 T2); per-role
hostin the manifest is ADR-0004 layers 1–2, tracked in #44.