mirror of
https://github.com/NeuralNomadsAI/CodeNomad.git
synced 2026-10-21 22:02:03 +00:00
## Summary - Add narrow CodeNomad routes for native OpenCode V2 plugin inventory and activation-rule mutations. - Present one row per user/configured plugin with exactly two compact **Global** and **Project** switches, sharing Yolo/MCP switch geometry. Builtins are hidden; exact configured disabled IDs remain available. - Keep complete names, source paths, failures and configuration targets readable on narrow keyboard/touch layouts. Retain focused rows across refreshes and guard repeated pending activation without removing keyboard focus. - Provide translated feedback in all ten locales and suppress stale feedback after the owning surface is disposed. ## Authority and refresh behavior - Discover roots through the authenticated daemon's `config.get`, after native-location ownership and connection-generation checks. - Append only exact activation rules while preserving JSONC comments, source options, unknown keys, formatting, BOM and native permissions. Bound reads, check optimistic conflicts, serialize by write target and use atomic replacement with nonce-owned locks. - Require proven raw/normalized alignment before acknowledging a no-op. Watcher lag cannot report success for a rule that is no longer saved on disk. - Account for inherited `.opencode` precedence by choosing a higher-precedence target in the active project location; preserve ancestor files and reject an escaping fallback target. - Use native WSL filesystem operations. Retain canonical invalidation and one trailing reconciliation when host/native cache records converge. - Cache display snapshots by instance/worktree, share them across sessions in that worktree, and refresh only on visible demand. Global writes invalidate sibling snapshots without background reads. ## Compatibility The current server/UI/bundled-plugin dependency pin and recommended runtime are **2.0.16**, aligned with `dev`. The demonstrated technical minimum remains **2.0.7**. Activation writes use the narrow local JSONC operation rather than a runtime-specific write endpoint. ## Validation status and provenance Final reviewed head: **`5204d97694ca8ced954bddc9cc94ea464e46119d`**, aligned with `dev@9d7ea5d6`. Both independent resumed review loops reached **ZERO actionable findings**: UX R6 and quality/optimization R5. Local validation on the final head: **100 plugin/server/cache/WSL tests passed**, **eight real-component browser regressions passed**, **14 restoration/metadata integration tests passed**, server/UI typechecks and UI production build passed. Translation keys/placeholders match across all ten locales. The current-dev baseline and PR browser comparison passed the same 34 shared cases with one optional native Electron skip; detailed revision provenance is in the final review comment. **CI qualification is excluded at the user's explicit request.** No final CI success is claimed, and CI completion is not being awaited. The earlier head `38845060` failed typechecking because `noticeId` was undeclared; the earlier historical UX R4 zero-finding claim was also incorrect and has been [explicitly corrected](https://github.com/NeuralNomadsAI/CodeNomad/pull/726#issuecomment-5816956417). Historical test results and the installer built from `bd31dcd0` are not validation or artifacts of the final corrected head. See the final review comment for completed counts, review evidence and revision boundaries. The PR remains open. ## Scope note Implemented independently; no code was copied from PR #593. This separate V2 implementation supersedes PR #593. |
||
|---|---|---|
| .. | ||
| auth | ||
| automation | ||
| clients | ||
| config | ||
| events | ||
| filesystem | ||
| opencode | ||
| opencode-update | ||
| permissions | ||
| previews | ||
| releases | ||
| server | ||
| settings | ||
| sidecars | ||
| speech | ||
| storage | ||
| ui | ||
| usage | ||
| workspaces | ||
| api-types.ts | ||
| bin.ts | ||
| cli-upgrade.test.ts | ||
| cli-upgrade.ts | ||
| developer-cdp.test.ts | ||
| developer-cdp.ts | ||
| index.test.ts | ||
| index.ts | ||
| launcher.ts | ||
| loader.ts | ||
| logger.ts | ||
| native-parent.test.ts | ||
| native-parent.ts | ||
| shutdown.test.ts | ||
| shutdown.ts | ||