Skip to content

fix: cast time_config values to int before arithmetic#29

Open
wbryanta wants to merge 1 commit intonikmcfly:mainfrom
wbryanta:fix/time-config-type-coercion
Open

fix: cast time_config values to int before arithmetic#29
wbryanta wants to merge 1 commit intonikmcfly:mainfrom
wbryanta:fix/time-config-type-coercion

Conversation

@wbryanta
Copy link
Copy Markdown

@wbryanta wbryanta commented Apr 3, 2026

Fixes #28

LLMs may write time_config values as strings in JSON (e.g., "60" instead of 60), causing a TypeError on simulation start.

Casts total_simulation_hours and minutes_per_round to int() before arithmetic.

LLMs may write time_config values as strings in JSON (e.g., "60"
instead of 60). This causes a TypeError on simulation start.

Fixes nikmcfly#28

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simulation start crashes when LLM writes time_config values as strings

1 participant