Fix progressive hints to display on first failed attempt

Removed "activity_state.attempts > 0" check that prevented hints from
showing on the first attempt. The code already correctly computes
current_attempt as activity_state.attempts + 1, so hints now work
starting from attempt 1 (when attempts = 0).
This commit is contained in:
Claude 2025-11-10 17:02:06 +00:00
parent 693dd9dace
commit 3df402505c
No known key found for this signature in database

View file

@ -960,7 +960,7 @@ def handle_activity_response(room_name, user_response, username, model="MODEL_0"
# End of multi-bucket processing loop
# Check for progressive hints (v2.0)
if "hints" in step and activity_state.attempts > 0:
if "hints" in step:
context = create_template_context(
metadata=activity_state.dict_metadata,
current_attempt=activity_state.attempts + 1, # Next attempt