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:
parent
693dd9dace
commit
3df402505c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue