Skip to content

Clear unavailable sessions after restore - #2037

Draft
Pybsama wants to merge 1 commit into
aws:mainfrom
Pybsama:codex/clear-empty-restored-session
Draft

Clear unavailable sessions after restore#2037
Pybsama wants to merge 1 commit into
aws:mainfrom
Pybsama:codex/clear-empty-restored-session

Conversation

@Pybsama

@Pybsama Pybsama commented Aug 1, 2026

Copy link
Copy Markdown

Description

  • Persist a successful empty restoration through the existing graph-session update boundary so a stale previous session is replaced by the current empty graph and the restore action disappears.
  • Keep failed restorations retryable and leave non-empty restorations on the existing add-and-persist path.
  • Add a hook regression test and a DbState session fixture that reproduce a persisted session whose entities no longer exist in the graph database.

Validation

  • pnpm test useRestoreGraphSession
  • pnpm checks
  • pnpm test — 207 test files and 2,328 tests passed

Related Issues

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I have verified pnpm checks passes with no errors.
  • I have verified pnpm test passes with no failures.
  • I have covered new added functionality with unit tests if necessary.
  • I have updated documentation if necessary.

An empty successful restore returned before updating graph session state, leaving the restore action visible.
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.

Restoring previous graph leaves restore button present

1 participant