[Quality audit] Deduplicate backend IPC, Git, remote, and request lifecycle code
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- git, node.js, typescript
調査の方向性
Start with the referenced findings in CODE_QUALITY_FINDINGS.md, then read the relevant entry points named for one finding, such as electron/ipc/register.ts or electron/remote/server.ts. Run npm run compile, npm run typecheck, and the relevant IPC, Git, PTY, or remote tests. Done means addressing the chosen duplication or complexity finding and passing the applicable checks; the issue groups many separate changes.
索引モデルが issue の本文から書いたものです。
説明
Derived from the local audit report CODE_QUALITY_FINDINGS.md created on 2026-05-30.
Scope
This issue groups backend duplication and complexity opportunities outside the MCP coordinator itself.
Findings
- Finding 4: duplicated IPC channel source of truth.
- Evidence:
electron/preload.cjs,electron/ipc/channels.ts,electron/main.ts,electron/preload-allowlist.test.ts. - Fix direction: generate the preload CJS channel list from
IPC, or move both to a generated shared manifest with exact-set tests.
- Evidence:
- Finding 5: remote HTTP routing is a monolithic auth-sensitive handler.
- Evidence: repeated coordinator task guards in
electron/remote/server.ts. - Fix direction: extract
jsonReply,readBody,requireOwnedTask, and split coordinator API routes into smaller handlers or a route table.
- Evidence: repeated coordinator task guards in
- Finding 8: repeated IPC validation boilerplate in Git handlers.
- Evidence: repeated
baseBranch,projectRoot,worktreePath, andbranchNamevalidation inelectron/ipc/register.ts. - Fix direction: add typed helpers such as
optionalBaseBranch(args)and wrappers for common Git handler shapes.
- Evidence: repeated
- Finding 11:
.git/info/excludeappend logic is duplicated.- Evidence:
electron/ipc/register.ts,electron/ipc/steps.ts, andelectron/ipc/git.ts. - Fix direction: extract
resolveGitInfoExcludePath(worktreePath)andappendGitInfoExcludeBlock(...).
- Evidence:
- Finding 12: changed-file assembly repeats across Git IPC paths.
- Evidence: several
ChangedFile[]rebuild paths inelectron/ipc/git.ts. - Fix direction: extract
changedFilesFromMaps(...)andcountReadableTextLines(...).
- Evidence: several
- Finding 13:
spawnAgentmixes too many responsibilities.- Evidence:
electron/ipc/pty.ts:176-501. - Fix direction: extract env/spec construction, PTY output handler attachment, and session cleanup.
- Evidence:
- Finding 14: ask-code providers duplicate request lifecycle.
- Evidence:
electron/ipc/ask-code.tsandelectron/ipc/ask-code-minimax.tsduplicate request maps, timers, concurrency, cancel, timeout, cleanup, and send behavior. - Fix direction: introduce a shared
RequestRegistry<T>and decide whether concurrency is global or provider-local.
- Evidence:
- Finding 30: IPC payload types are duplicated between main and renderer.
- Evidence:
src/ipc/types.ts,electron/ipc/git.ts,electron/ipc/coverage.ts,electron/ipc/pr-checks.ts. - Fix direction: move shared IPC payload types into a type-only contract module.
- Evidence:
- Finding 39: macOS install script builds a different artifact set than release builds.
- Evidence:
install.shomitsbuild:remoteandbuild:mcpalthough packaged files include remote and MCP artifacts. - Fix direction: use the full release build sequence for local mac packaging.
- Evidence:
Acceptance checks
npm run compilenpm run typecheck- relevant IPC/Git/PTY/remote tests
- local mac packaging check where available
- 主要言語
- TypeScript
- スター
- 1k
- フォーク
- 144
- 平均マージ
- 4日 19時間
- マージ済み PR(30日)
- 28
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
johannesjo/parallel-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johannesjo/parallel-code#385 ·
メンテナーはふだん 4 日以内に返信
-
Option to show usage as used instead of left, and potential further customization ideas対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
johannesjo/parallel-code#353 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johannesjo/parallel-code#163 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
johannesjo/parallel-code#375 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
Package as a Platpakオープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
johannesjo/parallel-code#374 ·
メンテナーはふだん 4 日以内に返信
johannesjo/parallel-code の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
ci
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-js#1248 ·
メンテナーはふだん 1 日以内に返信
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltオープンtechnik
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AhmedNAgy25/analysor#25 ·
メンテナーはふだん 1 日以内に返信