# Data loss warning. You could be losing valuable work

**URL:** <https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317>\
**Category:** Bugs\
**Tags:** using-replit, agent, bug\
**Created:** [August 3, 2025, 8:29pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317 "2025-08-03T20:29:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![notorioustech](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@notorioustech](https://replit.discourse.group/u/notorioustech)\
**Post date:** [August 3, 2025, 8:29pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/1 "2025-08-03T20:29:05Z")

</div>

I proved to support 2 weeks ago (and can reproduce easily) that you are potentially losing work and don’t know it.

You are all welcome to try it yourself

Ask the agent: create a new file called test.md and write into it “test1”

then open the file yourself and append a new line “test2”

Ask the agent: append “test3” to the file test.md

Ask the agent the contents of the file:

**The contents of the test.md file are:**

**test1  
test3  
test2**

SO. First off the agent is seeing the contents out of order.

BUT now open the file yourself:

test1 test2

and if i edit that file the changes that the agent made are LOST.

if i view file history, it does NOT include the agents changes.

If you actually try and work with your agent collaboratively YOU ARE LOSING WORK!

Support has dropped this to dev and dev hasn’t done a thing.

---

<div class="post-metadata">

**Author:** ![Gipity-Steve](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/gipity-steve/32/1431_2.png) [@Gipity-Steve](https://replit.discourse.group/u/Gipity-Steve)\
**Post date:** [August 4, 2025, 4:30am UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/2 "2025-08-04T04:30:34Z")

</div>

I have noticed this:

- ask agent to update a .sql file
- open the file and none of its changes are in there
- Ask agent to confirm what it wrote and it will tell you all the changes. So it seems it has its own cached version of the file which is different to the one I can view

Basically something goes screwy with sql files and I always have to ask it to write it out to a new file and then I copy/paste back into the original file myself.

So yeah, replit has bugs. But this is new tech. Go with the vibe.

---

<div class="post-metadata">

**Author:** ![notorioustech](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@notorioustech](https://replit.discourse.group/u/notorioustech)\
**Post date:** [August 4, 2025, 1:32pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/3 "2025-08-04T13:32:29Z")

</div>

it isn’t just the agent and you, i have tested this between the agent and assistant. So the agent make a change, then the assistant doesn’t see and and causes more problems.

How much money has be charged in circular bug fixing because of this? For me a lot as I was using the Agent and Assistant as paired developers.

---

<div class="post-metadata">

**Author:** ![Gipity-Steve](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/gipity-steve/32/1431_2.png) [@Gipity-Steve](https://replit.discourse.group/u/Gipity-Steve)\
**Post date:** [August 4, 2025, 1:50pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/4 "2025-08-04T13:50:09Z")

</div>

yeah this is all bonkers!

---

<div class="post-metadata">

**Author:** ![notorioustech](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@notorioustech](https://replit.discourse.group/u/notorioustech)\
**Post date:** [August 4, 2025, 8:45pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/5 "2025-08-04T20:45:21Z")

</div>

hey. a new feature was just added!

i popup that says  
**Replit is out of sync!**

Sometimes Replit has trouble making sure everyone’s code is the same. Let us know which version ofthis fileyou’d like to keep.

and wants me to choose the correct version!  
Obviously a patch, but I will take it.

---

<div class="post-metadata">

**Author:** ![notorioustech](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@notorioustech](https://replit.discourse.group/u/notorioustech)\
**Post date:** [August 6, 2025, 6:39pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/6 "2025-08-06T18:39:45Z")

</div>

Still a major issue. I am trying to save a file with manual changes and Assistant won’t see them no matter what i do. Assistant says:  
Here’s what’s occurring:

The Root Cause

1. **Backend file system** : Correctly stores my edits (which is why I see the updated version with 891+ lines)

2. **Frontend file viewer** : Shows outdated cached version (which is why you see the original shorter version)

3. **Cache overwrite cycle** : When you make any edit via the frontend, it overwrites the backend with the outdated cached version

4. **Result** : All backend progress gets lost when frontend cache overwrites the correct file

---

<div class="post-metadata">

**Author:** ![brunoborgesprei](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@brunoborgesprei](https://replit.discourse.group/u/brunoborgesprei)\
**Post date:** [August 6, 2025, 7:37pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/7 "2025-08-06T19:37:34Z")

</div>

> [@notorioustech](#):
>
> e a change, then the assistant doesn’t see and and cau

That happens to me a lot; I need to refresh the page all the time to avoid losing modifications when I am working after the agent.

---

<div class="post-metadata">

**Author:** ![notorioustech](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@notorioustech](https://replit.discourse.group/u/notorioustech)\
**Post date:** [August 6, 2025, 9:28pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/8 "2025-08-06T21:28:10Z")

</div>

refresh and kill 1 isn’t fixing it for me. i just can’t my files in sync. They are stuck in “M” mode, support is researching now.

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [August 6, 2025, 9:37pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/9 "2025-08-06T21:37:36Z")

</div>

Do you mean ‘kill 1”?

---

<div class="post-metadata">

**Author:** ![notorioustech](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@notorioustech](https://replit.discourse.group/u/notorioustech)\
**Post date:** [August 6, 2025, 9:55pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/10 "2025-08-06T21:55:27Z")

</div>

i can force a save btw by forcing a git commit. so i think the problem is my changes are not auto committing, and according to Assistant they work directly off Git.

“Assistant and Agent File Access

Yes, both the Replit Assistant and AI agents work off the **Git version** of files, not the frontend cached version. This means:

- When you force commit via Git, those changes become available to AI assistants

- The AI can see and work with the committed version

- File edits made by AI are applied to the Git version

- Your manual frontend edits may overwrite AI changes if you don’t commit first

“

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [August 6, 2025, 10:31pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/11 "2025-08-06T22:31:40Z")

</div>

I’ve had this problem before when mingling Agent and Assistant with my own personal hand edits. Can’t recall how I fixed it. I believe “kill 1” in shell, then new Agent chat. Then new Assistant chat.

---

<div class="post-metadata">

**Author:** ![notorioustech](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@notorioustech](https://replit.discourse.group/u/notorioustech)\
**Post date:** [August 6, 2025, 10:38pm UTC](https://replit.discourse.group/t/data-loss-warning-you-could-be-losing-valuable-work/6317/12 "2025-08-06T22:38:43Z")

</div>

i have multiple projects and am seeing it on all of them. i am 80% confident this new issue i am seeing is because replit stopped auto-committing to the default git in the last day.  
so. sync between agent/assistant and myself was one bug, but now none of my environments are saving at all. manual edits and deletes are stuck unless I manually go to the git tab and click commit. so collaborating with Assistant/Agent is not possible until this is resolved.
