TacoTip v1.1.1
What's new
[1.1.1] — 2026-11-27
Code
Zone:row is a unit-frame feature on every client family (main.lua,isZoneRowEligibleUnit,getUnitZoneName,collectActiveUnitSection). The row was gated onisForever and isForeverWatchedFrameUnit(ownerUnit), so it could only ever appear on WoW Forever.C_Map.GetBestMapForUnitis present on all five origin branches with the same documented contract —"Only works for the player and party members."— atMapDocumentation.lua:49-60onorigin/forever/origin/liveand:25-32onorigin/classic_era/origin/classic_anniversary/origin/classic_titan, so the restriction was a choice, not a client limit. Operator direction (2026-11-26): "it should be there for unitframes. it should only not work for combat/encounters." The helper is renamedisZoneRowEligibleUnit(the old name claimed a family scope it no longer has) and theisForeverconjunct is gone, leaving the owner-frame unit token as the gate. Family scope is unchanged — player, target, partyN, raidN; nameplates, focus, pets and target-of-target stay excluded. Suppression is unchanged and remains the only one:TT:ShouldHideInCombat()skips the whole unit block, andisUnitZoneRowRestricted()skips the map read while the client's ownC_RestrictedActionsreportsAddOnRestrictionType.Combator.Encounteractive (falling back toInCombatLockdownwhere the restriction API does not exist). A unit the client cannot place still produces no row — never a guessed zone. The/tt diagzone rowdiagnostic now reports on every family and labels the membership testeligible=./tt diagzone rowdiagnostic widened (main.lua,collectActiveUnitSection). The row wasisForever-only, so a missing Zone row on any other family had no diagnostic to attribute it. It now collects on every client and printsowner unit,eligibleand the resolved zone, markedokonly when an eligible unit produced a zone.Diagnostics Phase 1 — the report now answers "what is this client, what is installed, how is it configured, is my data intact" (
diagnostics.lua). Five new sections, all pure reads:session— a per-load session id, uptime, character-realm (secret-tested), client build/version/toc, client locale, and the report-format version; the identity is kept inTT.diagIdentityso exports can redact it.capabilities— 24 client APIs probed by dotted path (C_Map.GetBestMapForUnit/GetMapInfo,TooltipDataProcessor.AddTooltipPostCall,Enum.TooltipDataType.Unit,C_RestrictedActions.IsAddOnRestrictionActive,Enum.AddOnRestrictionType.Chat,C_Secrets.CanCompareUnitTokens,C_Traits.*,C_SpecializationInfo.*,C_Item.*,C_AddOns.*,C_ChatInfo.SendAddonMessage,GameTooltip.FadeOut,GetMouseFoci,GetItemStats,canaccesstable,issecretvalue,canaccessvalue,debugprofilestop), reported aspresent/absent (of N)plus the sorted absent list. This is the first question on a five-client bug and it had no answer in the report.integrations— Pawn (API table vs merely loaded), TacoTip Extras (loaded, version, whether it publishes the diagnostics report API), FojjiCore and BetterBlizzFrames presence, BetterBlizzFrames suppression state, the six LibStub libraries as present/absent, and the inspector's family/interface.configuration— the effective configuration, grouped and deterministic: layout, border, background, portrait, behavior-and-row toggles, pluscustom_pos. Texture/font paths are reduced to their basename, numbers to three decimals, so a report reproduces the player's rendering without leaking absolute paths or locale-specific junk.saved-variables—TacoTipConfigtop-level key count andconf_version, the inspect cache size, progression history length against its cap, andTacoTipExtrasDBschema/rank-row/gear-row counts when Extras is loaded. A report can now distinguish "settings reset" from "settings never persisted".
Self-checks with findings that count (
diagnostics.lua,collectSelfCheckSection). Six invariants evaluated at report time — GearScore module loaded,BRACKET_SIZEsane, config version matches the addon (a fresh profile is reported as informational, not a failure), the tooltip unit hook installed,TT.evpresent, identity captured — and every failure is appended toproblems, so the verdict degrades instead of the report lying. This is what keeps the diagnostics honest when a future refactor breaks an assumption the harness does not cover.Machine-readable and redactable exports (
diagnostics.lua).TT.DIAG_FORMAT_VERSION = 2is stamped on every report.TT:FormatDiagnosticJSON({redact = true})emits a schema-versioned object (formatVersion,sessionId,verdict,sections[]withlabel/value/status,problems[]);TT:FormatDiagnosticExport({redact = true})keeps the existing markdown contract and gains the same option. Redaction scrubs the character name, the realm and anyPlayer-<n>-<hex>GUID, which is what makes a pasted report safe to share. The export function only acceptsoptsas an optional argument, so every existing caller is unchanged. The dashboard's Export Markdown card now exports JSON on Shift-click (same card, same layout — the button row had no room for a fifth control), with the card's tooltip stating it.Section ordering made structural (
diagnostics.lua,DIAG_SECTION_BUILDERS). Sections were previously two parallel arrays (DIAG_SECTION_ORDERindexed by builder position), so inserting one section silently mislabelled every later section's failure. Ids and builders are now one paired list andDIAG_SECTION_ORDERis gone; the linter caught the leftover unused local.Diagnostics split out of
main.luaintodiagnostics.lua(diagnostics.luanew,TacoTip.toc,main.lua, 9 harness files).main.luahad reached 199 of Lua 5.1's 200 chunk-level local variables — one declaration from the file failing to compile, which would have taken the entire tooltip layer down on the client while every other file still loaded. The/tt diagreport was 21 functions and 5 constants that only the diagnostic command needs, so it now lives in its own TOC-loaded file (diagnostics.lua, immediately aftermain.lua## Version-order-wise).main.luadrops to 174 locals (26 slots of headroom) and the new file starts at 45. Nothing on the tooltip path moved:recordPortraitTrace,getPortraitTraceEntriesandsafeDiagValuestay inmain.luabecause hot-path renders call them; the split's entire interface is five members published bymain.lua(TT.addOnVersion,TT.isZoneRowEligibleUnit,TT.getUnitZoneName,TT.safeDiagValue,TT.getPortraitTraceEntries), with everything else re-derived in the new file (LibStub,CI:IsForever(),_G.UnitClass/UnitLevel/UnitRace/UnitCanAttack/TT_GS).TT.evstays initialised inmain.lua, where the hot-path counters write it. The/tt diaghandler already guarded onTT and TT.PrintDiagnosticsand wrapped the call inpcall, so a diagnostics failure cannot take the slash command down.Local-budget and split-wiring pins (
Tests/harness/contract_pins_test.lua). Three new pins:main.luastays under the 200-local chunk ceiling (counting column-0 declarations plus the three chunk-level locals inside top-leveldoblocks, measured not assumed);TacoTip.toclistsdiagnostics.luaimmediately aftermain.lua; and all four diagnostic entry points exist after a full load. Red-proven: 23 padded locals make the budget pin fail while the file still loads (194 column-0 / 197 real), and an emptyTACOTIP_DIAG_OVERRIDEmakes the entry-point pin fail withcollect=nil print=nil traces=nil export=nil.
Tooling
wowlua_ls0.36 → 0.39: 80need-check-nilerrors closed by guarding, not suppressing (main.lua,TacoTip_Extras/Core.lua,TacoTip_Extras/RankBrowser.lua). The newer analyzer is stricter about values it can prove may be nil. Each finding was fixed at the point of use, with no diagnostic suppression added:applyPortrait3DUnitreturns early whenportraitis not a table (the "no model frame on this tooltip" case the analyzer could not rule out).onGameTooltipSetDefaultAnchorguardstooltip, checksparent.GetParentbefore calling it, and requirestooltip.SetOwnerto be a function before use.- Lazily-created globals (
TacoTipMouseAnchor,TacoTipDragButton) are snapshotted into typed locals before the nil test, so the checks are real branches instead of dead comparisons the analyzer flags. ---@field itemBorderColor,---@param memo table/---@param count any/---@return anyannotations document the shapes the analyzer inferred astable?.- TacoTip Extras: the debug snapshot's
cellValue(slot and slot.itemID)plus an early return whenslotis nil, and arowguard inrenderRankRowwith the redundantand leveldropped fromlevel > 0.
- New baseline: 70 warnings / 0 errors (was 59/0 under 0.36). The count moved because the newer analyzer reports more warnings on the same code, not because suppression was added; the README
linter:line records the new number.
Verification
- Harness load lists (
Tests/harness/*). Seven harnesses carry a hardcoded load order and now loaddiagnostics.luaaftermain.lua(load_test,options_test,settings_test,taint_test,tooltip_test,batch4_clock_test,batch8_pane_test);forever_tooltip_testandcontract_pins_testgained aTACOTIP_DIAG_OVERRIDEslot in theirordertables for future red/green proofs, andsettings_test's orphan-setting scan now readsdiagnostics.luatoo so a setting only read by the report cannot be reported as dead. - Regression pins (
Tests/harness/tooltip_test.lua). The old assertion (zone row is Forever-only (not rendered on this family)) is superseded by two: the row renders on every client family when the client answers the map query, and it is suppressed by an active combat restriction. Red-proven by re-adding theisForeverconjunct:FAIL zone row renders on this client familyonTBC_ANNIV(and every non-Forever family), green on the shipped tree. - Gates: main harness 75/75 (
lua5.1),tooltip_testCLASSIC_ERA/TBC_ANNIV/TITANFORGEALL 261 PASS, FOREVERALL 268 PASS, RETAILALL 267 PASS,forever_tooltip_test295/295, contract pins 72/72, TacoTip Extras 14/14, font/locale PASS,wowlua_ls check .(0.39) 70 warnings / 0 errors, both--worktreeverifiers PASS. In-game verification pending.
This mod has no additional files

