Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(aidd-context): the memory README links 404 on Windows

オープン 初心者向け
#986 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@VincentMenard76 がすでに取り組んでいます。

2026年10月9日 から。

  • #987 @VincentMenard76 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript, nodejs
領域
tooling

調査の方向性

plugins/aidd-context/hooks/update_memory.js の memoryRelative() と memoryPath() から始めてください。memoryPath() は path.join を使うため、win32 ではバックスラッシュが生成され、プレフィックスの除去が一致しません。両方の値を / に正規化し、files ブロックが README からの相対パスを列挙していることを確認してください。実際のフックを実行して書き込まれた README を読む回帰テストが通り、scripts/check-markdown-links.js がそこで壊れたリンクを報告しなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

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 its changes filter marks the change relevant, and that filter does not match plugins/aidd-context/**. A later change to update_memory.js alone 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

  1. On Windows, in a project whose aidd_docs/memory/README.md carries <!-- files:start --> / <!-- files:end -->, start a session (or run node plugins/aidd-context/hooks/update_memory.js claude).
  2. The files block lists architecture.md, not aidd_docs/memory/architecture.md.
  3. node scripts/check-markdown-links.js reports no broken link in that README.
主要言語
TypeScript
スター
481
フォーク
45
平均マージ
18時間 3分
マージ済み PR(30日)
48

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ai-driven-dev/framework のほかの issue

ai-driven-dev/framework の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。