Files revert to old code state when creating a "New Chat" causing data loss

Issue Description

When I click to start a “New Chat,” files that were modified in the previous session revert to their old code (pre-modification state). This results in a loss of work and wasted tokens, as the AI has to re-generate code I already paid for. The issue persists even if I delete the specific chat or close and reopen the application (Qoder). The file state seems to desync or rollback simply by switching chat contexts.

Steps to Reproduce

  1. Open a chat session and have the AI modify some code files.
  2. Confirm the files are updated with the new code.
  3. Click on the “New Chat” button to start a fresh session.
  4. Check the code files again.
  5. Observation: The files revert to the old code that existed before the modifications in step 1.

Expected Behavior

The code files should persist in their updated, modified state regardless of whether I start a new chat, delete a chat log, or restart the application. Starting a new chat should not trigger a rollback of file versions.

Operating System

windows

Current Qoder Version

Latest

Thank you for the feedback! I just tried to reproduce the issue locally, but couldn’t replicate the same behavior. Could you please submit a detailed bug report so we can investigate further?