LeeHigma0201/claude-code-mods/tree/main/mods/resume-nudge
resume-nudge
재시작이나 충돌로 턴 중간에 끊긴 세션을 감지하고 표준 재개 프롬프트를 작성합니다. /resume-here가 이를 전송합니다.
이 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-heresends 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 checkreports 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).
