Repository navigation
Conversation
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>
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. |
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.
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
econentry —src/gsi/types.ts,src/gsi/roster.ts.broke.steamid ?? nameinsrc/coach/lines.ts. The?? namefallback preserves behavior for any econ entry / test fixture lacking an id.Tests
Added a regression test in
scripts/simulate.ts: same SteamID, name flipsMouse→m0usebetween freezes — the drop coda stays suppressed. Full sim passes (327 assertions, 0 failures);tsc --noEmitclean.🤖 Generated with Claude Code