TacoTip_Extras v1.3.6
What's new
[1.3.6] — 2026-11-26
PvP Chat Restriction, Faction-Correct Views, Tooltip Border Ownership & Analyzer Nil-Safety
wowlua_ls0.36 → 0.39: nil-safety findings fixed at the point of use (Core.lua,RankBrowser.lua). The newer analyzer proves more values may be nil; both findings were closed by guarding rather than suppressing, and nodiagnostic disablewas added:buildExtrasDiagnosticsReportreadscellValue(slot and slot.itemID)and returns the line early whenslotis nil, so a slot that vanished between the revision snapshot and the report cannot raise inside the diagnostic itself.renderRankRowreturns early on a nilrow, and the level cell test islevel > 0(the redundantand levelis gone now that the analyzer narrows the value).
Repo-wide analyzer baseline is now 70 warnings / 0 errors (was 59/0 under 0.36); the count moved because the newer analyzer reports more warnings, not because anything was silenced.
Protected channel join under an active addon chat restriction (
RankSync.lua,Tests/harness/load_test.lua). Reported in game entering a PvP match:[ADDON_ACTION_BLOCKED] AddOn 'TacoTip_Extras' tried to call the protected function 'UNKNOWN()'. [TacoTip_Extras/RankSync.lua]:324: in function <TacoTip_Extras/RankSync.lua:310> [TacoTip_Extras/RankSync.lua]:2229: in function <TacoTip_Extras/RankSync.lua:2201> [TacoTip_Extras/RankSync.lua]:2328: in function <TacoTip_Extras/RankSync.lua:2327>JoinChannelByNameandLeaveChannelByNameare protected channel operations. WhileC_RestrictedActions.IsAddOnRestrictionActive(Enum.AddOnRestrictionType.Chat)is true the engine refuses the call and raisesADDON_ACTION_BLOCKEDagainst the calling add-on — before the Lua call returns — so the existingpcallnever contained it.RankSyncnow tests the restriction first and does not make the call at all:joinSyncChannelreturnsfalse, the session ends withstatus = "failed",reason = "chat_restricted"and the message "Sync paused: the client restricts addon chat right now.", andlastSyncAtis cleared so the ordinary 30 s throttle cannot delay recovery.removeSyncChannelIfMadeskips its protected leave for the same reason.ADDON_RESTRICTION_STATE_CHANGEDis registered (guarded, optional on the classic family) and re-drives the sync through a zero-delay timer once the restriction lifts, because the client documentsIsAddOnRestrictionActiveas always returning false during that event's dispatch. The harness injects an active restriction and pins thatJoinChannelByNameis never called, that the reason is reported, and that the join is issued again once the restriction clears.Faction for peer-synced leaderboard rows (
Core.lua,RankDB.lua,Tests/harness/load_test.lua). TheR;2wire format carries thirteen fields and no faction, so every row received from another client storedfaction = nil;RankDB.BuildSortedIndicesonly files"Alliance"and"Horde"rows into the faction lists, which left the Alliance and Horde views nearly empty while the whole-realm board looked correct.Core.ResolveFactionForGUID(guid)now derives the faction fromGetPlayerInfoByGUID's fourth return — the English race token, so the result never depends on the player's locale — through a bounded 4,096-entry memo that also records "asked, unknown" so a 5,000-row sync does not re-ask.RankDB.ValidateRecorduses it only when the record carries no positive faction, so a local scan'sUnitFactionGroupverdict still wins. A row already on disk with no faction is backfilled in place on its next touch (RankDB.StoreRecord'sup-to-datebranch still returns the same verdict and still writes nothing else), so an existing leaderboard fills its faction views over normal sync traffic instead of waiting 60 days for the row to age out. Races playable on both factions (Pandaren,Dracthyr,Earthen,Haranir) resolve tonilrather than being guessed into the wrong list; the row then renders without a faction line, exactly as before. Pins cover the Alliance and Horde derivations, the both-factions ambiguity, and that the two faction views never mix factions.Tooltip border ownership pinned (
Tests/harness/load_test.lua). TacoTip owns the sharedGameTooltip's border and backdrop — class/faction colours,NineSlice:SetBorderColoron the modern clients, and theTacoTipBackdropFrameoverlay on the legacy one. The Extras only appends text rows. The harness now counts everySetBackdrop,SetBackdropColor,SetBackdropBorderColorandNineSlicecolour call made on the shared tooltip across a full render section and requires zero, so a future "fix a row by repainting the tooltip" change goes red instead of silently taking TacoTip's border away.Verification.
env LUA=lua5.1 bash TacoTip_Extras/Tests/harness/run_all.sh14/14 PASS;bash Tests/harness/run_all.sh75/75 PASS;wowlua_ls check .59 warnings / 0 errors (documented baseline);bash Tools/verify_release_extras.sh --worktreePASS;bash Tools/verify_release.sh --worktreePASS; Forever pins 295/295. Per-client loads after the change: forever 788 checks, retail 802, tbc 758, titanforge 758, classic era 740 — all 0 failed.
This mod has no additional files

