fix(aidd-context): the memory README links 404 on Windows
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, nodejs
- Ambito
- tooling
Direzione di ricerca
Inizia da memoryRelative() e memoryPath() in plugins/aidd-context/hooks/update_memory.js. memoryPath() usa path.join, che produce backslash su win32, quindi la rimozione del prefisso non corrisponde mai. Normalizza entrambi i lati su / e verifica che il blocco files elenchi percorsi relativi al README. È completato quando un test di regressione che esegue l'hook reale e legge il README scritto passa, e scripts/check-markdown-links.js non segnala link non validi lì.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
On Windows, the memory hook rewrites the table of contents of aidd_docs/memory/README.md with links that keep the aidd_docs/memory/ prefix. Read from inside aidd_docs/memory/, every one of them points nowhere.
memoryRelative() strips ${memoryPath(path)}/ from a path it first normalises to /. memoryPath() uses path.join, which answers aidd_docs\memory on win32, so the prefix never matches and is never removed.
Affected file(s)
plugins/aidd-context/hooks/update_memory.js(memoryRelative)
Expected behaviour
The files block lists each memory file relative to the README: - [architecture.md](architecture.md), - [internal/decisions/x.md](internal/decisions/x.md).
Observed behaviour
On Windows, after any session start: - [aidd_docs/memory/architecture.md](aidd_docs/memory/architecture.md). node scripts/check-markdown-links.js then reports every link in that file as broken (12 here). The hook stages the file itself, so the broken README rides along into the next commit unnoticed.
Proposed solution
Normalise both sides of the comparison to / in memoryRelative, and add a regression test that runs the real hook and reads the README it writes.
Context / Technical constraints
cli-ci.yml's Windows job runs the scripts suite, but only when itschangesfilter marks the change relevant, and that filter does not matchplugins/aidd-context/**. A later change toupdate_memory.jsalone would skip the Windows job, so the regression test would only bite on a Windows workstation. Linux CI passes either way.
Environment
| AI tool | Claude Code |
| OS | Windows 11 Pro (10.0.26100) |
| node | 24.12.0 |
QA
- On Windows, in a project whose
aidd_docs/memory/README.mdcarries<!-- files:start -->/<!-- files:end -->, start a session (or runnode plugins/aidd-context/hooks/update_memory.js claude). - The files block lists
architecture.md, notaidd_docs/memory/architecture.md. node scripts/check-markdown-links.jsreports no broken link in that README.
- Lingua principale
- TypeScript
- Stelle
- 481
- Fork
- 45
- Merge medio
- 18h 3m
- PR unite (30g)
- 48
Preparare l'ambiente
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 ai-driven-dev/framework
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ai-driven-dev/framework#952 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ai-driven-dev/framework#940 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
refactor(aidd-orchestrator): the check zone says when to stop, and reviews its axes in one roundAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ai-driven-dev/framework#887 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ai-driven-dev/framework#873 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ai-driven-dev/framework#467 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ai-driven-dev/framework
Issue simili
-
Table: Space fires onActivate in single-selection mode — the reference doc and the JSDoc disagreeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
sidorares/react-x11-components#764 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
backnotprop/plannotator#1840 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
JoviDeCroock/pracht#432 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: CNN en Espanol SDApertaapproved check:passed streams:add
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Hardware attribute name "app Connection Support" has inconsistent casingForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
walletbeat/walletbeat#1628 ·
I maintainer di solito rispondono entro 1 giorno