参拝結果の復元表示を「参拝済み」表示に変更し無限参拝に見える問題を解消 (#215) - #216
Merged
Conversation
クールダウン内の再訪で成功演出(カウントアップ・+Nバッジ・レベルアップ バナー)が毎回フル再生され、無限に参拝できているように見えていた。 実際の付与はサーバーの last_sanpai ガードで1回のみ(表示のみの問題)。 - 復元時は口上を「先ほどの参拝の結果じゃ」に変え、数値は静的表示 - 「次の参拝まで あと◯分◯秒」のカウントダウンを表示 - カウントダウンが0になったら保存結果を破棄し、儀式からやり直せる状態に戻す Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG
This was referenced Jul 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #215
問題
#198 の完了画面復元(PR #202)により、クールダウン(本番5分)内に /sanpai を再訪するたびに成功演出(ポイントのカウントアップ・「+N」バッジ・レベルアップバナー)がフル再生され、無限に参拝できているように見えていた。実際の付与はサーバーの
last_sanpaiガードにより1回のみで、表示のみの問題(調査の詳細は #215)。変更内容
復元表示を「新規の成功演出」から「参拝済みの結果表示」に変更:
next_timeから算出)検証
sanpaiSession.jsのNodeテスト8ケース全パス(返り値に remainingSeconds を追加)yarn generate(node:18)成功、yarn.lock差分なし動作確認手順(レビュー用)
🤖 Generated with Claude Code
https://claude.ai/code/session_015NjEjZtmCpVdJtCeFumYzG