Skip to content

fix: respect enabled platforms when checking preparation - #768

Open
NgoQuocViet2001 wants to merge 1 commit into
666ghj:mainfrom
NgoQuocViet2001:fix-single-platform-prepared-state
Open

fix: respect enabled platforms when checking preparation#768
NgoQuocViet2001 wants to merge 1 commit into
666ghj:mainfrom
NgoQuocViet2001:fix-single-platform-prepared-state

Conversation

@NgoQuocViet2001

Copy link
Copy Markdown

Summary

  • require profile files only for platforms enabled in the simulation state
  • preserve the legacy behavior for state files without platform flags
  • report the correct profile count for Twitter-only simulations

Why

Simulation preparation writes profile files only for enabled platforms, but the readiness check still required both Reddit and Twitter files. As a result, a valid single-platform simulation could be treated as unprepared and sent through preparation again.

Testing

  • uv run --project backend pytest backend/tests/test_simulation_prepared_platforms.py -q (5 passed)
  • uv run --project backend pytest backend/tests -q (134 passed)

@NgoQuocViet2001
NgoQuocViet2001 force-pushed the fix-single-platform-prepared-state branch from 2491557 to 551b084 Compare August 9, 2026 03:26
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.

1 participant