Bug: returning from Recursion Limit settings blanks out the current chat

I ran into what looks like a state/UI bug in Anna while working on a more complex task.

The task hit the recursion cap, and Anna prompted me to go update the Recursion Limit. I followed that flow, opened the settings page, changed the limit, and then went back to the original chat.

At that point, the conversation was gone from the main panel. The chat was still there in the sidebar, but opening it just showed a blank page instead of the previous thread.

Steps to reproduce

  1. Start a task complex enough to hit the recursion limit.

  2. Click through to the settings page to change Recursion Limit.

  3. Update the value and return to the original chat.

  4. Observe that the chat content is no longer rendered.

Expected behavior
The existing conversation should still be available after changing the recursion limit, ideally with enough state preserved to continue the task.

Actual behavior
The original chat opens as a blank view, and the previous conversation content is no longer visible.

I’ve attached screenshot of the blank chat view after returning.

If this is expected behavior, it would still be helpful to warn users that leaving the chat will effectively drop the active thread. Otherwise, this looks like a bug in how the session state is restored after updating the recursion setting.

Hi @HappyLight,

Thank you so much for this detailed bug report! :folded_hands:

You have provided excellent reproduction steps and the screenshot is really helpful.

Root Cause:
This issue occurs when an incomplete task does not have its state properly stored. When you hit the recursion limit and navigate to adjust the setting, the task state gets lost in the transition.

Current Workaround:
For now, we recommend increasing the recursion_limit in your settings to a higher value. This should help avoid hitting the cap during complex tasks and prevent this state loss issue from occurring.

Next Steps:
We are working on a proper fix to ensure task state is preserved correctly when navigating between settings and chat. I will update this thread once we have a patch deployed.

Thanks again for helping us improve Anna! If you have any questions or run into other issues, please do not hesitate to reach out. :blue_heart:

Best regards,
Hunter (Anna Team)