[Quality audit] Fix correctness bug and red repository gates
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 1k
- Fork
- 144
- Merge medio
- 4g 19h
- PR unite (30g)
- 28
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di johannesjo/parallel-code
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
johannesjo/parallel-code#385 ·
I maintainer di solito rispondono entro 4 giorni
-
Option to show usage as used instead of left, and potential further customization ideasForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
johannesjo/parallel-code#353 ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
johannesjo/parallel-code#163 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
johannesjo/parallel-code#375 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Package as a PlatpakApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
johannesjo/parallel-code#374 ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di johannesjo/parallel-code
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
ci
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ClickHouse/clickhouse-js#1248 ·
I maintainer di solito rispondono entro 1 giorno
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltApertatechnik
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AhmedNAgy25/analysor#25 ·
I maintainer di solito rispondono entro 1 giorno