Files
wehub-resource-sync 2114b14ee0
Sync main into demo / sync (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:26 +08:00

1.3 KiB

App State

App state is the benchmark-visible runtime overlay under __SIM__.getState().apps.<appId>.

What Belongs Here

Include Avoid
Current user, settings, drafts, messages created during the run. Large static catalogs, posts, products, map places, song libraries.
Per-entity user overlays such as liked IDs, follow state, read progress. Duplicated display strings that can be derived from semantic fields.
Task-relevant mutable state used by judges. UI-only ephemeral state unless it is intentionally exposed as _temp.

Large world data should stay outside snapshots and be composed with runtime overlay at render time.

Store Rules

  • localStorage key should match manifest.id.
  • Store semantic fields, not display strings.
  • Do not define query-style getters in Zustand store actions (getXById, isLiked, etc.).
  • Components should subscribe to data and derive booleans locally or via memoized selectors.

Bench Access

If tasks need to judge a derived view, app code and bench code should share a stable view accessor or equivalent helper so both sides see the same resolved state.