feat(docker): auto-seed + robust frontend polling#2
Merged
SarmaHighOnCode merged 2 commits intomainfrom Mar 19, 2026
Merged
Conversation
- Backend lifespan now auto-seeds 50 sats + 10K debris + 20 threat debris on boot (controlled by ACM_AUTO_SEED env var, default=1) - Runs 5x600s sim steps during startup so dashboard is populated immediately when opened via Docker — no manual seed_demo.py needed - Frontend polling: retry with exponential backoff (3 retries), connection status tracking, RECONNECTING banner in header - docker-compose: added healthcheck, ACM_AUTO_SEED env var - Added seed_demo.py for manual seeding when ACM_AUTO_SEED=0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…oops useMemo for selectedData and relevantCdms prevents unnecessary recalculations and stabilizes useCallback dependency arrays. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
backend/main.py: auto-seed in lifespan (controlled byACM_AUTO_SEEDenv var)frontend/src/utils/api.js: retry logic with backofffrontend/src/store.js+Dashboard.jsx: connection status trackingdocker-compose.yml: healthcheck + env varTest plan
docker-compose up --build— dashboard should show data within ~60s of bootACM_AUTO_SEED=0to disable auto-seed for grader modeGenerated with Claude Code