Prompt file imported from akspa0/parp-tools (
.codex/prompts/wdl-spawn-chooser-implementation-plan.md). Copyright stays with the author.
Implement the next code slice to restore WDL spawn chooser behavior.
Read First
- gillijimproject_refactor/memory-bank/activeContext.md
- gillijimproject_refactor/src/MdxViewer/memory-bank/activeContext.md
- .codex/prompts/wdl-spawn-chooser-runtime-triage.md
Scope Guardrails
- Keep this as a surgical viewer-flow fix.
- Do not mix in unrelated PM4, terrain alpha, or model rendering changes.
- Do not claim closure without real runtime validation.
Required Files
- gillijimproject_refactor/src/MdxViewer/ViewerApp.cs
- gillijimproject_refactor/src/MdxViewer/ViewerApp_WdlPreview.cs
- gillijimproject_refactor/src/MdxViewer/Terrain/WdlPreviewCacheService.cs
- gillijimproject_refactor/src/MdxViewer/Terrain/WdlPreviewRenderer.cs
Required Implementation Order
- Reproduce and pin the exact failing branch in chooser flow.
- Fix warm-state/enablement or open/fallback logic first.
- Fix chooser selection-to-spawn commit path second.
- Keep fallback-to-default-load behavior intact for true preview failures.
- Build MdxViewer and report build status.
- Run real-data runtime validation on both Alpha-era and 3.x map sets.
Deliverables
Return all items:
- exact code changes made and why
- any behavior intentionally unchanged
- build status
- automated test status
- runtime validation status split by map/version
- residual risk
Required Language
- If no tests were added, say so explicitly.
- If only build was run, say so explicitly.
- If runtime validation is pending, say so explicitly.