Skip to content

Exporter: remember the last account so deck changes export with the game closed - #7

Merged
facusantillo merged 1 commit into
mainfrom
fix/active-deck-offline
Oct 18, 2026
Merged

facusantillo merged 1 commit into
mainfrom
fix/active-deck-offline

Conversation

@facusantillo

Copy link
Copy Markdown
Owner

Why

First K7 try: the public page did not follow a deck change made in HDT with Hearthstone closed. exporter.log had the answer:

18:49:58 [INFO] Active deck not exported: no account information yet

HDT's ActiveDeckChanged fired (the event is hooked), but ExportActiveDeckOnly needs the account to pick the inbox folder, and the account only came from HearthMirror — i.e. from a running, logged-in game. Everything worked earlier in the day because the game had been open in that HDT session.

What

  • ExportService.ResolveAccount: the live account when HearthMirror has one (as before); otherwise the last account seen, kept in %LocalAppData%\DustPlanner\last-account.txt (one line: hi TAB lo TAB battletag), rewritten whenever the live one differs. Before that file exists, it is seeded from the inbox when there is exactly one account folder (so this build works right after installing, without opening the game).
  • LastAccount in HdtExporter.Logic (serialize/parse) + 2 tests. Status text when nothing is known: open Hearthstone once; the plugin remembers the account afterwards.
  • Docs: exporter-install.md (the new file), VERIFICACION K7 (what was found, retest with the game closed), PROGRESO.

After merging

I rebuild DustPlanner-v1.1.0.zip from main; retest K7 with Hearthstone closed: change deck in HDT → the page follows within ~15 s.


Generated by Claude Code

…ame closed

HDT's ActiveDeckChanged fired, but ExportActiveDeckOnly refused with
"no account information yet": the account only came from HearthMirror,
which needs Hearthstone running. ResolveAccount now remembers the last
live account in %LocalAppData%\DustPlanner\last-account.txt (seeded
from the inbox when it holds exactly one account) and falls back to it.
Found in VERIFICACION K7.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaFitGHCUzwkHrFTjz8qJb
@facusantillo
facusantillo merged commit 64bef99 into main Oct 18, 2026
1 check passed
@facusantillo
facusantillo deleted the fix/active-deck-offline branch October 18, 2026 17:01
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.

2 participants