Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

No sync between Kiro's cached file and what's on disk

Open polren6 opened this issue 9 months ago • 9 comments

Before opening, please confirm:

Operating System

darwin

Kiro Version

0.9.2

Bug Description

Kiro works in a cached file but fails to record changes to the file on disk, causing big discrepancies and lost code.

Steps to Reproduce

Kiro has edided an .tsx file for changes to the UI. The browser shows state before the changes were made. Upon checking the local file, the changes to the file were never made, the file remains the same as before the changes. I have to ask Kiro to manually update the file on disk with the delta between its cached code and the file on disk.

Expected Behavior

Once Kiro edits the file, the changes should be reflected in the local file.

Conversation ID

85714f96-9a25-4b04-a489-a5a91f9b665c

Additional Context

Let me check what's actually on disk versus what might be cached:

Command grep -A 5 "Left: CVE, Title, Date/Time" frontend/src/components/RSSFeedTab.tsx

(venv) abistram@Family-MacBook-Pro-2025 PCAP PoC % Command grep -n "flex-1 min-w-0" frontend/src/components/RSSFeedTab.tsx 264:

I see the issue - the file on disk doesn't have my changes! Let me read the actual file content:

Read file(s)

frontend/src/components/RSSFeedTab.tsx 260 - 276

frontend/src/components/RSSFeedTab.tsx 275 - 286 You're right - my changes were applied but the file on disk shows they ARE there (line 277 shows text-left on the parent div, and lines 284-285 show text-left on the title and date paragraphs). This means the browser is likely serving cached JavaScript. Let me create a script to verify and provide clear cache-busting instructions:

Accepted creation of

verify_rss_text_alignment_fix.py

Command cd /Users/abistram/Documents/GitHub/PCAP\ PoC && python3 verify_rss_text_alignment_fix.py Command python3 verify_rss_text_alignment_fix.py

RSS FEED TAB TEXT ALIGNMENT FIX VERIFICATION

❌ Parent div missing text-left class Ah! The fix didn't actually get written to disk. Let me check what's actually in the file and apply the fix properly:

Command grep -n "flex-1 min-w-0" frontend/src/components/RSSFeedTab.tsx | head -5

polren6 avatar Feb 12 '26 00:02 polren6

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both report file editing functionality not working properly - the new issue describes changes not being written to disk, while issue #3615 is titled 'File creation/editing not working', indicating the same core problem with Kiro's file modification capabilities

github-actions[bot] avatar Feb 12 '26 00:02 github-actions[bot]

This is not a duplicate. This issue is with Kiro editing existing files, not creating empty new files. There seems to be a discrepancy between Kiro’s cache it works with and saving to a file (sync). The file on disk has no changes, even though Kiro anticipates the changes were propagated.

From: github-actions[bot] @.> Date: Wednesday, February 11, 2026 at 4:33 PM To: kirodotdev/Kiro @.> Cc: polren6 @.>, Author @.> Subject: Re: [kirodotdev/Kiro] No sync between Kiro's cached file and what's on disk (Issue #5686)

[https://avatars.githubusercontent.com/in/15368?s=20&v=4]github-actions[bot] left a comment (kirodotdev/Kiro#5686)https://github.com/kirodotdev/Kiro/issues/5686#issuecomment-3887987227

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both report file editing functionality not working properly - the new issue describes changes not being written to disk, while issue #3615https://github.com/kirodotdev/Kiro/issues/3615 is titled 'File creation/editing not working', indicating the same core problem with Kiro's file modification capabilities

— Reply to this email directly, view it on GitHubhttps://github.com/kirodotdev/Kiro/issues/5686#issuecomment-3887987227, or unsubscribehttps://github.com/notifications/unsubscribe-auth/B3KBMTGRZBKWFYM3Q6YOE7T4LPC6LAVCNFSM6AAAAACU2LXJBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQOBXHE4DOMRSG4. You are receiving this because you authored the thread.

polren6 avatar Feb 12 '26 02:02 polren6

Thank you for your feedback! 🙏

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar Feb 12 '26 02:02 github-actions[bot]

Hey @polren6, Thanks for raising this. you're right, this is not a duplicate. Removed the label.

Core issue: Kiro silently fails to write edits to disk while continuing to operate on its cached version, leading to lost code with no error surfaced.

A few questions to help us investigate:

  • Is your project directory under iCloud sync? (Documents on macOS often is — this can cause file-locking issues)
  • Was the file open in another editor at the same time?
  • Is this reproducible consistently or a one-time occurrence?

AnilMaktala avatar Feb 12 '26 03:02 AnilMaktala

Hi Anil, good to hear from you!

No, my project directory is a local directory, not under iCloud (I don’t use iCloud for backups). The file wasn’t open in another editor. The issue have been going on and off since the last update of Kiro, few days ago. It’s a hit or miss, there is no way of telling if the file was saved locally or not, until I test it, to find out changes weren’t saved.

Thanks,

Adam Bistram

From: Anil Maktala @.> Date: Wednesday, February 11, 2026 at 7:03 PM To: kirodotdev/Kiro @.> Cc: polren6 @.>, Mention @.> Subject: Re: [kirodotdev/Kiro] No sync between Kiro's cached file and what's on disk (Issue #5686)

[https://avatars.githubusercontent.com/u/3206171?s=20&v=4]AnilMaktala left a comment (kirodotdev/Kiro#5686)https://github.com/kirodotdev/Kiro/issues/5686#issuecomment-3888407325

Hey @polren6https://github.com/polren6, Thanks for raising this. you're right, this is not a duplicate. Removed the label.

Core issue: Kiro silently fails to write edits to disk while continuing to operate on its cached version, leading to lost code with no error surfaced.

A few questions to help us investigate:

  • Is your project directory under iCloud sync? (Documents on macOS often is — this can cause file-locking issues)
  • Was the file open in another editor at the same time?
  • Is this reproducible consistently or a one-time occurrence?

— Reply to this email directly, view it on GitHubhttps://github.com/kirodotdev/Kiro/issues/5686#issuecomment-3888407325, or unsubscribehttps://github.com/notifications/unsubscribe-auth/B3KBMTA7VVPZFC7SEQW3AA34LPUOZAVCNFSM6AAAAACU2LXJBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQOBYGQYDOMZSGU. You are receiving this because you were mentioned.

polren6 avatar Feb 12 '26 05:02 polren6

Hi Adam, Thank you for the additional details — that helps narrow things down. Since the issue is intermittent and not related to iCloud or another editor, I'd like to do a screen share to deep dive into this and try to reproduce it together. Could you share your availability for a quick call next week?

AnilMaktala avatar Feb 14 '26 01:02 AnilMaktala

Sure, how about Tuesday, early afternoon PST, if that works? I’m not sure what time zone you are in. I can adjust my schedule, accordingly.

Adam.

From: Anil Maktala @.> Date: Friday, February 13, 2026 at 5:59 PM To: kirodotdev/Kiro @.> Cc: polren6 @.>, Mention @.> Subject: Re: [kirodotdev/Kiro] No sync between Kiro's cached file and what's on disk (Issue #5686)

[https://avatars.githubusercontent.com/u/3206171?s=20&v=4]AnilMaktala left a comment (kirodotdev/Kiro#5686)https://github.com/kirodotdev/Kiro/issues/5686#issuecomment-3900436693

Hi Adam, Thank you for the additional details — that helps narrow things down. Since the issue is intermittent and not related to iCloud or another editor, I'd like to do a screen share to deep dive into this and try to reproduce it together. Could you share your availability for a quick call next week?

— Reply to this email directly, view it on GitHubhttps://github.com/kirodotdev/Kiro/issues/5686#issuecomment-3900436693, or unsubscribehttps://github.com/notifications/unsubscribe-auth/B3KBMTBOGDD36PQMGGGF2YL4LZ6OJAVCNFSM6AAAAACU2LXJBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSMBQGQZTMNRZGM. You are receiving this because you were mentioned.

polren6 avatar Feb 14 '26 22:02 polren6

Hi @polren6, If you have any availability tomorrow (Thursday) or Friday, I'd love to get this scheduled. Reach out to me on Discord — I'm anilmaktala. We can coordinate a time that works and do the screen share from there.

Sorry for the miss. Looking forward to connecting and getting this sorted for you.

AnilMaktala avatar Feb 18 '26 18:02 AnilMaktala

We have implemented significant improvements in recent versions of Kiro. We recommend upgrading to the latest version to benefit from these enhancements. If you continue to experience issues after upgrading, please submit a new issue with detailed information about the problem.

AnilMaktala avatar Jun 04 '26 14:06 AnilMaktala