Add debug output for Game Over metadata filtering to investigate STFU bug when game actually ends
This commit is contained in:
parent
f90df2ae57
commit
f3d4dd89bc
1 changed files with 11 additions and 1 deletions
12
app.py
12
app.py
|
|
@ -2644,7 +2644,7 @@ def provide_feedback_prompts(
|
|||
k: v for k, v in full_metadata.items() if k in filter_keys
|
||||
}
|
||||
|
||||
# Special debug for Ship Status
|
||||
# Special debug for Ship Status and Game Over
|
||||
if prompt_name == "Ship Status":
|
||||
print(f"DEBUG SHIP STATUS - filter_keys: {filter_keys}")
|
||||
print(f"DEBUG SHIP STATUS - filtered metadata: {prompt_metadata}")
|
||||
|
|
@ -2654,11 +2654,21 @@ def provide_feedback_prompts(
|
|||
print(
|
||||
f"DEBUG SHIP STATUS - ai_sunk_ship_this_round = '{prompt_metadata.get('ai_sunk_ship_this_round')}'"
|
||||
)
|
||||
elif prompt_name == "Game Over":
|
||||
print(f"DEBUG GAME OVER - filter_keys: {filter_keys}")
|
||||
print(f"DEBUG GAME OVER - filtered metadata: {prompt_metadata}")
|
||||
print(f"DEBUG GAME OVER - game_over = '{prompt_metadata.get('game_over')}'")
|
||||
print(f"DEBUG GAME OVER - user_wins = '{prompt_metadata.get('user_wins')}'")
|
||||
print(f"DEBUG GAME OVER - ai_wins = '{prompt_metadata.get('ai_wins')}'")
|
||||
else:
|
||||
if prompt_name == "Ship Status":
|
||||
print(
|
||||
f"DEBUG SHIP STATUS - NO metadata_filter, full metadata: {prompt_metadata}"
|
||||
)
|
||||
elif prompt_name == "Game Over":
|
||||
print(
|
||||
f"DEBUG GAME OVER - NO metadata_filter, full metadata: {prompt_metadata}"
|
||||
)
|
||||
|
||||
# Combine legacy tokens with prompt-specific tokens
|
||||
if legacy_tokens_for_ai:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue