Skip to content

[Upstream #150] Bug: Hardcoded 'reddit' platform default causes silent data loss for Twitter-only simulations #91

@ivanzud

Description

@ivanzud

Upstream Issue Mirror

Summary

Summary When a simulation is created with Twitter-only configuration (enable_reddit=false), all data retrieval APIs silently return empty results because they default to looking up Reddit data. No error is raised — the user sees an empty UI with no indication of what went wrong. ## Root Cause The platform parameter defaults to 'reddit' in 11+ locations across the codebase. When a Twitter-o…

Local Coverage

  • Status: covered
  • Summary: Simulation data retrieval now resolves the active platform from SimulationState instead of silently defaulting to Reddit when Twitter/X is the only enabled platform, and SimulationManager.get_profiles() now reads Twitter profile CSV files correctly as well. That prevents empty profile/post responses in Twitter-only simulations even when older callers still pass the historical reddit default.
  • Local refs: .beads/issues.jsonl, backend/app/services/simulation_manager.py, backend/app/api/simulation.py, backend/tests/test_simulation_service_i18n.py, backend/tests/test_simulation_api_i18n.py, https://github.com/ivanzud/MiroFish/issues/91
  • Notes: Mirrored into fork issue [Upstream #150] Bug: Hardcoded 'reddit' platform default causes silent data loss for Twitter-only simulations #91 on March 11, 2026. The fix keeps legacy callers working by falling back to the sole enabled platform instead of assuming Reddit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions