ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 LeeHigma0201

resume-nudge

再起動やクラッシュでターン途中に切れたセッションを検出し、標準の再開プロンプトを下書きします。/resume-here で送信できます。

LeeHigma0201@LeeHigma0201

LeeHigma0201/claude-code-mods/tree/main/mods/resume-nudge

翻訳済み

この mod について

再起動またはクラッシュでターンが中断された後にセッションを開き直すと、標準の再開プロンプト「The Mac restarted and this session was interrupted. Pick up exactly where you left off…」をプロンプトボックスに下書きします。Enter で送信するか、無視してください。

最後のメッセージが、戻ってこないツール呼び出し、Claude がまだ答えていないツール結果、Claude がまだ答えていないプロンプトのいずれかである場合、セッションは中断されたと判断します。ターンが回答で終了した場合や、Esc([Request interrupted by user])を押した場合は中断扱いにしません。

  • /resume-here はセッションが中断されているときだけ再開プロンプトを送信します。下書きテキストが見えないスマートフォンから使えます。
  • /resume-here check は判定結果を報告するだけで、送信しません。

自動で送信することはありません。セッション中の /resume の後には session.start が発火しないため、その場合は /resume-here を使います。

Hooks:session.start、command.run。Calls:$.session.messages、$.prompt.fill、$.prompt.submit(/resume-here からのみ。コマンドへの回答後、タイマーで実行)、$.ui.toast、$.command.register。

Test:claude plugin test .(4 tests)。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add LeeHigma0201/claude-code-mods
claude plugin install resume-nudge
原文 / README

resume-nudge

When a session reopens after a restart or crash cut a turn off, this drafts the standard pick-up prompt in the prompt box: "The Mac restarted and this session was interrupted. Pick up exactly where you left off…". Press Enter to send it, or ignore it.

It treats the session as cut off when the last message is one of:

  • a tool call that never returned,
  • a tool result Claude never answered,
  • a prompt Claude never answered.

It is not cut off when the turn ended with an answer, or when you pressed Esc ([Request interrupted by user]).

  • /resume-here sends the pick-up prompt, only when the session is cut off. Use it from the phone, where the drafted text may not show.
  • /resume-here check reports the verdict and never sends.

It never sends on its own. session.start does not fire after an in-session /resume; use /resume-here there.

Hooks: session.start, command.run. Calls: $.session.messages, $.prompt.fill, $.prompt.submit (only from /resume-here, on a timer once the command has answered), $.ui.toast, $.command.register.

Test: claude plugin test . (4 tests).

関連作品