Skip to content

Key drop-call latch on SteamID64, not Steam name - #49

Closed
PureXYZ wants to merge 1 commit into
mainfrom
claude/inspiring-stonebraker-f09fca
Closed

PureXYZ wants to merge 1 commit into
mainfrom
claude/inspiring-stonebraker-f09fca

Conversation

@PureXYZ

@PureXYZ PureXYZ commented Jun 14, 2026

Copy link
Copy Markdown
Owner

What

The freezetime "drop them a rifle" coda was the one place in the codebase that used a player's Steam display name as a dedup key instead of their SteamID64. The per-match latch did droppedTo.add(broke.name), so if a broke friend changed their Steam name mid-match, the latch no longer recognized them — and the coach could re-fire the same drop call at a later freezetime.

Why it matters

Everywhere else (squad membership, side voting, weak-link callouts, economy tracking) is already keyed on SteamID64, so identity is rock-solid. This was a narrow, cosmetic gap — a duplicate suggestion, never a misattributed one — but it's cheap to close.

How

  • Thread the feed's SteamID64 (which is the feed-map key) into each econ entry — src/gsi/types.ts, src/gsi/roster.ts.
  • Key the per-match latch on broke.steamid ?? name in src/coach/lines.ts. The ?? name fallback preserves behavior for any econ entry / test fixture lacking an id.
  • The displayed name still comes live from each GSI payload, so a rename shows the new name without re-triggering the call.

Tests

Added a regression test in scripts/simulate.ts: same SteamID, name flips Mouse → m0use between freezes — the drop coda stays suppressed. Full sim passes (327 assertions, 0 failures); tsc --noEmit clean.

🤖 Generated with Claude Code

The "drop them a rifle" coda dedup'd on the broke friend's Steam display name, so a mid-match name change would let the same drop call re-fire — the old name was latched, the new one wasn't recognized. Identity everywhere else is already SteamID64-keyed; this was the one name-as-key spot.

Thread the feed's SteamID64 (the feed map key) into each econ entry and key the per-match latch on it, falling back to the name only when a fixture omits the id. The displayed name still comes live from GSI, so a rename shows the new name without re-triggering the call.

Adds a regression test: same SteamID, name flips Mouse -> m0use between freezes, drop coda stays suppressed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@PureXYZ

PureXYZ commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

Closing — the bug this fixes (a friend changing their Steam name mid-match re-firing a drop call) is near-theoretical and the symptom is harmless. Not worth carrying the extra code.

@PureXYZ PureXYZ closed this Jun 14, 2026
@PureXYZ
PureXYZ deleted the claude/inspiring-stonebraker-f09fca branch June 14, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant