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

Editing a symlinked SKILL.md never refreshes its imported shelf entry

オープン
#1,448 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go

調査の方向性

Read #1410 alongside internal/skills/skills.go:277 and internal/resident/skills.go:226, then trace ReconcileImportedSkills at :715. Add the linked-file case to an internal/resident test and run the relevant tests. Done means the chosen safe policy is consistent for reading and digesting, nonregular targets cannot block discovery, use-skill.md is aligned, and invalidates records the behavior.

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

説明

area:session area:tools bug sev:serious

Found on santos/dev2 at 008363c98 (#1410). It reaches dev when #1410 merges.

What happened

A skill folder containing a SKILL.md symlink to a regular file loads through the link. Its import digest omits that link, so changing the target leaves the active shelf fact unchanged at the next launch. The manual says an edited SKILL.md is read again. Linked folders are already handled at this head and are outside this issue.

Replication

Deterministic (no model). In an internal/resident test, create a valid skill file outside a skill folder, link the folder's SKILL.md to it, call ReconcileImportedSkills, edit the target text, and call reconciliation again. Compare the active fact's digest and description. Today they remain the first version. A regular-file control refreshes.

Field (real models). On a fresh home, attach that skill in codeaf chat, edit its target, relaunch, and ask a question that distinguishes the two bodies. Allow OPENROUTER_API_KEY, deepseek/deepseek-v4-flash, about a minute and a small charge.

Where

internal/skills/skills.go:277, readSkillFile, follows the link. internal/resident/skills.go:226, contentDigest, skips its nonregular directory entry; ReconcileImportedSkills compares that digest at :715. The contrary manual promise is in internal/manual/chat/use-skill.md.

The fix

Choose one link policy together with the launch-hang fix being made on #1410 (a committed SKILL.md or .claude/settings.json that links to /dev/tty or a FIFO blocks launch): either safely follow regular targets in both reading and digesting, or reject linked files in both. This issue covers the digest half of that policy.

Acceptance

  • e2e: relaunching codeaf chat after a target edit uses the new skill body, or consistently reports that the linked file is unsupported.
  • Unit: a linked file and a regular file follow the same chosen policy, while a link to a nonregular target cannot block discovery.
  • Align use-skill.md and record the changed behavior in invalidates.
主要言語
Go
スター
115
フォーク
14
平均マージ
9時間 38分
マージ済み PR(30日)
730

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

Agent-Field/CodeAF のほかの issue

Agent-Field/CodeAF の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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