All evidence cases
DeepSWE v1.1repositoryTypeScript

Preserve restored query state in persisted snapshots

Preserve full persisted query state, including errors, counters, timestamps, and infinite pagination, during restoration and cache rebuilds.

query-persist-restored-query-state

Normalized profile

What this task asks for

Preserve full persisted query state, including errors, counters, timestamps, and infinite pagination, during restoration and cache rebuilds. A restored query should behave like a real cached query snapshot, not like a fresh successful fetch that only happens to reuse old data. Bulk restoration from fine-grained storage should preserve the same semantics when rebuilding the cache. The solution must add a new public helper exported from query-core named createPersisterRestoreResult. The helper must accept an object with the shape { data, state } and return a value that can be returned from the persister option used by prefetchQuery and query observers to indicate that a persisted snapshot was restored instead of freshly fetched. The restored query must end in fetchStatus set to idle, preserve status including error states, expose isRefetchError when data and error are both present, and retain the provided counters, timestamps, invalidation markers, and infinite-query pagination state. Bulk restoration from fine-grained storage must preserve the same guarantees when rebuilding more than one query from storage.

  • feature implementation
  • performance optimization
  • configuration tuning
  • data transformation
  • cache
  • query layer
  • configuration
  • TanStack Query
  • repository patch
  • strict behavioral compatibility or exact-output validation
  • changes span multiple components or interfaces

Published evidence

Model × harness outcomes

Counts are tied to these exact configurations. Harnesses are not treated as equivalent across benchmarks.

Models
13
Configurations
41
Trials
164

Showing 41 of 41 configurations

ModelHarnessEffortResultPasses
claude-fable-5vertex_aimini-swe-agentpublished configurationlowAll passed4/4
claude-fable-5vertex_aimini-swe-agentpublished configurationmediumMixed3/4
claude-fable-5vertex_aimini-swe-agentpublished configurationhighMixed3/4
claude-fable-5vertex_aimini-swe-agentpublished configurationxhighMixed2/4
claude-fable-5vertex_aimini-swe-agentpublished configurationmaxMixed2/4
claude-opus-4-8anthropicmini-swe-agentpublished configurationlowMixed2/4
claude-opus-4-8anthropicmini-swe-agentpublished configurationmediumAll passed4/4
claude-opus-4-8anthropicmini-swe-agentpublished configurationhighMixed3/4
claude-opus-4-8anthropicmini-swe-agentpublished configurationxhighMixed1/4
claude-opus-4-8anthropicmini-swe-agentpublished configurationmaxMixed2/4
claude-sonnet-4-6anthropicmini-swe-agentpublished configurationhighMixed2/4
claude-sonnet-5anthropicmini-swe-agentpublished configurationlowAll passed4/4
claude-sonnet-5anthropicmini-swe-agentpublished configurationmediumMixed3/4
claude-sonnet-5anthropicmini-swe-agentpublished configurationhighMixed2/4
claude-sonnet-5anthropicmini-swe-agentpublished configurationxhighMixed2/4
claude-sonnet-5anthropicmini-swe-agentpublished configurationmaxMixed2/4
gemini-3-1-pro-previewvertex_aimini-swe-agentpublished configurationhighNo passes0/4
gemini-3-5-flashvertex_aimini-swe-agentpublished configurationmediumMixed1/4
glm-5-2zaimini-swe-agentpublished configurationhighMixed3/4
glm-5-2zaimini-swe-agentpublished configurationmaxAll passed4/4
gpt-5-4openaimini-swe-agentpublished configurationxhighMixed2/4
gpt-5-5openaimini-swe-agentpublished configurationlowMixed3/4
gpt-5-5openaimini-swe-agentpublished configurationmediumMixed3/4
gpt-5-5openaimini-swe-agentpublished configurationhighAll passed4/4
gpt-5-5openaimini-swe-agentpublished configurationxhighMixed2/4
gpt-5-6-lunaopenaimini-swe-agentpublished configurationlowMixed2/4
gpt-5-6-lunaopenaimini-swe-agentpublished configurationmediumAll passed4/4
gpt-5-6-lunaopenaimini-swe-agentpublished configurationhighAll passed4/4
gpt-5-6-lunaopenaimini-swe-agentpublished configurationxhighAll passed4/4
gpt-5-6-lunaopenaimini-swe-agentpublished configurationmaxAll passed4/4
gpt-5-6-solopenaimini-swe-agentpublished configurationlowAll passed4/4
gpt-5-6-solopenaimini-swe-agentpublished configurationmediumMixed3/4
gpt-5-6-solopenaimini-swe-agentpublished configurationhighAll passed4/4
gpt-5-6-solopenaimini-swe-agentpublished configurationxhighMixed2/4
gpt-5-6-solopenaimini-swe-agentpublished configurationmaxMixed1/4
gpt-5-6-terraopenaimini-swe-agentpublished configurationlowAll passed4/4
gpt-5-6-terraopenaimini-swe-agentpublished configurationmediumAll passed4/4
gpt-5-6-terraopenaimini-swe-agentpublished configurationhighMixed3/4
gpt-5-6-terraopenaimini-swe-agentpublished configurationxhighAll passed4/4
gpt-5-6-terraopenaimini-swe-agentpublished configurationmaxMixed1/4
kimi-k2-7-codeopenroutermini-swe-agentpublished configurationdefaultMixed2/4