Skip to content

process-attachments.sh 不會從 origin remote fallback 解析 target repo(與 config-protocol 不一致)(mid-plan tangential from ntu-claude-plugins#11) #321

Description

@kiki830621

Problem

scripts/process-attachments.sh(v2.110.0)在無 walk-up IDD config 但有 origin remote 的 repo 內執行時,repo 解析直接失敗,要求 --repo

cd /Users/che/Developer/ntu-claude-plugins   # origin = PsychQuant/ntu-claude-plugins
IDD_CALLER=idd-diagnose bash $PLUGIN/scripts/process-attachments.sh download 11
# ✗ Cannot resolve target repo. Pass --repo owner/repo or run from inside an idd-config'd repo.
# exit=2

references/config-protocol.md 與各 skill(idd-clarify Step 2 等)的解析序列明載最後一層 fallback 是 derive from origin

GITHUB_REPO=$(git -C "$CWD" remote get-url origin | sed -E 's#(\.git)?$##; s#.*[:/]([^/]+/[^/]+)$#\1#')

同一時刻同一 cwd 的 gh issue view 11--repo 正常,origin remote 存在且指向正確 repo。

Expected

process-attachments.sh 的 repo 解析與 config-protocol 一致:flag → walk-up config → origin fallback。無 config 但有 origin 的 repo 不需要 --repo

Actual

exit=2,錯誤訊息只提 --repo 與 idd-config 兩條路,未嘗試 origin。

Impact

跨 repo(--cwd)呼叫 idd-diagnose 時,Step 1.5 attachment 下載在未 config 的 target repo 一律先失敗一次;skill 本文的呼叫範例(不帶 --repo)照抄會踩雷。workaround:補 --repo 後成功。

Source: surfaced during /idd-plan PsychQuant/ntu-claude-plugins#11 tangential sweep (Step 2.5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions