fix: a vote-mode switch keeps approved sessions' picks; This week counts players still deciding (4.6.0-rc2) #1218

Merged
claude-bot merged 2 commits from fix/460-rc2-server into main 2026-10-17 20:48:33 +00:00
Collaborator

Two fixes found by the 4.6.0-rc1 render check.

  • Line of the night: switching a campaign to "Voted by the table" no longer reopens voting on sessions already approved. Each approved session's vote is marked as never opened, at its approval time, so it keeps the GM's pick and shows no vote. Sessions approved after the switch vote as normal. Votes already cast are never deleted. One rare edge: switching vote → GM → vote while a session's three-day vote is still running ends that vote early, and its pick and votes are kept.
  • This week's "N still deciding" counts players, not the GM, through the same playersOf rule as #1202.

There is no migration and no API change. Tests: the line-of-the-night, attention and campaign suites (198 passed), and This week vitest (63 passed). ruff and the checks are clean.

🤖 Generated with Claude Code

Two fixes found by the 4.6.0-rc1 render check. - **Line of the night: switching a campaign to "Voted by the table" no longer reopens voting on sessions already approved.** Each approved session's vote is marked as never opened, at its approval time, so it keeps the GM's pick and shows no vote. Sessions approved after the switch vote as normal. Votes already cast are never deleted. One rare edge: switching vote → GM → vote while a session's three-day vote is still running ends that vote early, and its pick and votes are kept. - **This week's "N still deciding" counts players, not the GM**, through the same `playersOf` rule as #1202. There is no migration and no API change. Tests: the line-of-the-night, attention and campaign suites (198 passed), and This week vitest (63 passed). ruff and the checks are clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
style: ruff format
All checks were successful
CI / Backend lint (ruff) (pull_request) Successful in 25s
CI / Which journeys does this change need? (pull_request) Successful in 19s
CI / Does this change touch the recording path? (pull_request) Successful in 21s
CI / Synthetic session harness (no GPU, no LLM) (pull_request) Has been skipped
CI / Summarisation accuracy eval harness (stub provider) (pull_request) Successful in 56s
CI / Bot/backend version sync (pull_request) Successful in 41s
CI / Docker image build (pull_request) Successful in 47s
CI / Feedback site tests (pull_request) Successful in 1m0s
CI / Bot tests and audit (pull_request) Successful in 2m5s
CI / Frontend (shard 2/2) (pull_request) Successful in 9m55s
CI / Frontend (shard 1/2) (pull_request) Successful in 12m7s
CI / End-to-end journeys (desktop) (pull_request) Successful in 14m12s
CI / Backend migration, tests, and audit (pull_request) Successful in 34m23s
9496fdef4e
claude-bot scheduled this pull request to auto merge when all checks succeed 2026-10-17 20:14:04 +00:00
Sign in to join this conversation.
No description provided.