Thanks to visit codestin.com
Credit goes to github.com

Skip to content

process-attachments.sh exits 1 with no manifest on zero-attachment issue (spec says exit 0 + empty manifest) #186

Description

@kiki830621

Problem

Spec (idd-diagnose SKILL.md Step 1.5):
0 — 下載完成(或 issue 無 attachment,empty manifest 已寫)」
沒有 attachment → script 寫空 manifest 後 exit 0,Diagnosis Report 標明「issue 無 attachment」。」

實際行為(v2.84.0,2026-06-10,於 kiki830621/collaboration_su_ying_huang#26 diagnose 過程觀察):

$ IDD_CALLER=idd-diagnose bash .../scripts/process-attachments.sh download 26
exit=1
# stdout/stderr 皆空
# .claude/.idd/attachments/issue-26/ 目錄建立但無 _manifest.json

Issue #26 body 無任何 attachment URL(GitHub release asset / user-attachments),預期走「無 attachment → 空 manifest + exit 0」路徑。

Type

bug

Expected

  • exit 0
  • .claude/.idd/attachments/issue-26/_manifest.json 寫入空 manifest
  • caller(idd-diagnose)可直接在 report 標明「issue 無 attachment」

Actual

  • exit 1(語意 = 「部分檔案下載失敗」,誤導 caller)
  • 無 manifest 檔
  • 無任何錯誤訊息(silent failure,違反「禁止靜默」原則)

Impact

idd-diagnose / idd-implement 的 attachment check 對零附件 issue 一律收到 false-negative exit code;下游「manifest 缺漏 → 警告重跑 diagnose」邏輯被誤觸發。


Current Status

Phase: closed
Last updated: 2026-06-10 by idd-close

Key Decisions

Blocking

  • (none)

Commits

  • 989e117 fix: process-attachments zero-attachment silent death
  • 3b3765f docs: exit-2 fetch-failure + test comment de-drift

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions