Skip to content

Conversation

nikgraf
Copy link
Collaborator

@nikgraf nikgraf commented May 13, 2025

(merged it so I can continue with Benoit on this app)

@nikgraf nikgraf requested a review from Copilot May 13, 2025 13:55
@nikgraf nikgraf self-assigned this May 13, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the reset logic in the store to preserve the repository information when resetting the state.

  • Modify the reset function to accept a context parameter and retain its repo value
  • Add an inline comment clarifying that the repo should not be reset
Comments suppressed due to low confidence (1)

packages/hypergraph/src/store.ts:164

  • Verify that preserving only the 'repo' property while resetting the other parts of the store is the intended behavior. If other properties from the context should be preserved similarly, consider updating the reset logic or adding documentation to clarify the behavior.
reset: (context) => {

@nikgraf nikgraf merged commit 7d9a081 into main May 13, 2025
4 checks passed
@nikgraf nikgraf deleted the fix-initialize-bug branch May 13, 2025 13:58
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.

1 participant