[Quality audit] Fix correctness bug and red repository gates
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
调研方向
Start with CODE_QUALITY_FINDINGS.md and the cited areas: electron/mcp/coordinator.ts and replay-cache.ts, the listed store modules, .github/workflows/ci.yml, and the OpenSpec custom-themes change. Run the named lint, security-rule, OpenSpec, check, and test commands to establish the failures; done means the listed fixes are addressed and every acceptance check passes.
由索引模型根据 Issue 内容生成。
描述
Derived from the local audit report CODE_QUALITY_FINDINGS.md created on 2026-05-30.
Scope
This issue tracks the highest-priority correctness and quality-gate failures found during the audit.
Findings
- Finding 1:
wait_for_signal_donetimeout bypasses replay cache.- Evidence:
electron/mcp/coordinator.ts:1626-1708, especially timeout path around1685-1699;electron/mcp/replay-cache.ts. - Fix direction: use one
complete(result)path for timer cleanup, replay-cache write, resolver removal, active-wait handling, and promise resolution. - Tests: add retry-after-timeout coverage for the same
requestId.
- Evidence:
- Finding 2: store import cycles break
lint:arch.- Evidence:
npm run lint:archreports 7 cycles acrosssrc/store/projects.ts,tasks.ts,focus.ts,navigation.ts,persistence.ts, andterminals.ts. - Fix direction: extract pure selectors/helpers so store modules flow one way.
- Evidence:
- Finding 3: CI skips major repo gates.
- Evidence:
.github/workflows/ci.ymlruns typecheck/lint/format only; Electron code is mostly compiled bynpm run compile. - Fix direction: run
npm run checkandnpm testin CI; addnpm run check:staticafter current failures are fixed.
- Evidence:
- Finding 7: Knip reports verified dead files, exports, types, dependency, and config drift.
- Evidence:
npm run lint:deadreports stale entry points, unused files, unused exports/types, unused@types/dompurify, and unlisted binaries. - Fix direction: update Knip entries, remove verified dead code/dependency, and keep the gate green.
- Evidence:
- Finding 38: OpenSpec validation is red and completed changes remain active.
- Evidence:
npx --no-install openspec spec validate custom-themes --strictfails withrequirements.4.text: Requirement must contain SHALL or MUST keyword;npx --no-install openspec change validate custom-themes --strictfails because the change has no delta specs. - Fix direction: fix custom-theme spec structure, add/remove the dangling change, and archive completed changes.
- Evidence:
- Finding 41: npm config and security-rule script are noisy/brittle.
- Evidence:
.npmrcemits npm warnings;npm run test:security-rulesfails withspawnSync semgrep ENOENTwhen semgrep is missing. - Fix direction: normalize/remove
.npmrc; add a friendly semgrep preflight or install semgrep in CI.
- Evidence:
Acceptance checks
npm run lint:archnpm run lint:deadnpm run test:security-rulesnpx openspec validate --all --strictnpm run checknpm test
- 主要语言
- TypeScript
- 星标
- 1k
- 派生
- 144
- 平均合并
- 4 天 19 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 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 一周以上 新手友好度 12/100
johannesjo/parallel-code#375 · 2 条评论 ·
维护者通常 4 天内回复
-
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 天内回复