Skip to content

[WIP] Fix incorrect usage of AssistContextPersistenceStore in _AssistCriticalAutonomousEngine#269

Closed
Claude wants to merge 1 commit into
mainfrom
claude/fix-assist-context-persistence-store
Closed

[WIP] Fix incorrect usage of AssistContextPersistenceStore in _AssistCriticalAutonomousEngine#269
Claude wants to merge 1 commit into
mainfrom
claude/fix-assist-context-persistence-store

Conversation

@Claude

@Claude Claude AI commented Apr 1, 2026

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

The job fails due to incorrect usage of AssistContextPersistenceStore in _AssistCriticalAutonomousEngine.swift:

  1. At line 60:
    self.contextPersistence = AssistContextPersistenceStore(context: context)
    This is correct—AssistContextPersistenceStore expects a context argument in its initializer.

  2. At line 239:
    await contextPersistence.saveContext(
    goal: originalIntent,
    completedTasks: completedTasks,
    expandedGoals: expandedGoals,
    iteration: taskCount,
    stepsExecuted: plan.steps.count
    )

However, the error at line 239 (and log line) shows:
error: value of type 'AssistContextPersistenceStore' has no member 'saveContext'

Solution:

Check that the definition of AssistContextPersistenceStore is correctly exposed to _AssistCriticalAutonomousEngine.swift. In the provided code, saveContext is public and present.

Root cause: It's likely that the file AssistContextPersistenceStore.swift is not properly included in the Swift target membership, target build settings, or module imports, so the symbol is not available during compilation.

How to fix:

  • Make sure AssistContextPersistenceStore.swift is properly added to the target membership in Xcode. In the Project Navigator, select the file > File Inspector > Target Membership > check the box for your target.
  • Ensure there are no duplicate definitions or mismatches in module names.
  • Clean the build folder (Shift-Command-K) and rebuild.

You should also check that there are no typos in import statements or file/directory structure.

No code edits are needed; this is a project/target configuration fix.

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