Skip to content

Remove startThumbnail and startActors from Stage type#107

Merged
bengotow merged 1 commit intomasterfrom
claude/remove-unused-game-state-vS2JT
Mar 13, 2026
Merged

Remove startThumbnail and startActors from Stage type#107
bengotow merged 1 commit intomasterfrom
claude/remove-unused-game-state-vS2JT

Conversation

@bengotow
Copy link
Collaborator

This PR removes the startThumbnail and startActors properties from the Stage type and all related functionality for saving and restoring initial game state.

Summary

The initial game state save/restore feature has been completely removed from the codebase. This includes the data structures that stored thumbnail images and actor states at the beginning of a stage.

Key Changes

  • Removed startThumbnail and startActors properties from the Stage type definition in both frontend and headless type files
  • Deleted saveInitialGameState() and restoreInitialGameState() action creators from stage-actions.ts
  • Removed corresponding action type constants SAVE_INITIAL_GAME_STATE and RESTORE_INITIAL_GAME_STATE
  • Removed reducer cases handling these actions in stage-reducer.ts
  • Removed the restoreInitialGameState dispatch call from root-player.tsx
  • Cleaned up initial state definitions in initial-state-stage.ts and initial-state-stage-tutorial.ts by removing the large base64 thumbnail data and actor objects
  • Updated test fixtures and data migration tests to remove references to these properties
  • Removed the RESTORE_INITIAL_GAME_STATE case from world-reducer.ts

Implementation Details

  • The tutorial stage definition had 674 lines of actor data that have been removed
  • All references to initial game state restoration have been eliminated from the world reducer
  • The changes maintain backward compatibility by simply removing unused functionality rather than adding deprecation warnings

https://claude.ai/code/session_01Tz6UrBPXv4y39VUsc3aAKj

The UI controls for saving/restoring initial game state were removed in a
prior commit. This removes the remaining dead code: the
saveInitialGameState/restoreInitialGameState actions, their reducer cases,
the startActors/startThumbnail fields on Stage, and the dispatch of
restoreInitialGameState on player load. When opening a game to play it,
it now uses the stage's current actor state directly.

https://claude.ai/code/session_01Tz6UrBPXv4y39VUsc3aAKj
@bengotow bengotow merged commit 929eb9a into master Mar 13, 2026
2 checks passed
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.

2 participants