Skip to content

bug: wrapper runtime state 記「期望版本」而非「實際執行版本」— 下載失敗時 staleness 偵測假陰性 (#335 verify) #393

Description

@kiki830621

Problem

plugin/bin/che-apple-mail-mcp-wrapper.sh 在 spawn 時把 期望版本(來自 plugin.json 的 pin)寫進 runtime state file,而不是實際執行中 binary 的版本#335 verify codex lens)。

下載失敗、或 exec 的其實是舊 binary 時,state file 仍記著新版本 → hooks/session-start.sh 的 staleness 比對(#76/#77 機制)讀到「已是新版」→ 假陰性:不 SIGTERM、不重 spawn,使用者持續跑舊 binary 而無任何訊號。

Type

bug(imported pre-existing — #335 純 relocation 帶入)

Expected

State file 的 version 欄位改由實際 binary 回報(--version#303 起可用)或在下載/驗證成功後才寫入;寫入時機與 #303 的 version sidecar、preflightAutomation staleness warning 對齊,避免三套機制各說各話。

Related

Filed by /idd-verify Step 5b follow-up triage (unattended).

Current Status

Phase: implemented
Updated: 2026-08-26

📊 Dashboard comment

Tasks

Blocking

(無)

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