fix(vwb): import lit anchor_image_base64 dans target.context_hints
Some checks failed
tests / Lint (ruff + black) (push) Failing after 1m44s
tests / Tests unitaires (sans GPU) (push) Failing after 1m47s
tests / Tests sécurité (critique) (push) Has been skipped

Le converter convert_learned_to_vwb_steps ne lisait l'ancre que dans
target/screenshot/action.parameters, jamais dans target.context_hints
où le recorder la range réellement -> anchor_id NULL a l'import.
Ajout de la source context_hints (fallback or, additif, non regressif).
Preuve: import reel 'Explorateur — session' -> 4/5 steps anchor_id non NULL
+ 4 PNG, x_pct/y_pct preserves.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dom
2026-06-16 17:42:03 +02:00
parent 2b1743c206
commit b8b963059e

View File

@@ -226,6 +226,7 @@ def convert_learned_to_vwb_steps(
anchor_b64 = (
target.get("anchor_image_base64")
or target.get("screenshot")
or (target.get("context_hints") or {}).get("anchor_image_base64")
or action_params.get("anchor_image_base64")
)
if anchor_b64: