Kino Editor write tools silently fail when file open in editor MacOS
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
darwin (Sonoma 14.8.3)
Kiro Version
0.11.34
Bug Description
Summary: When a file is open in the Kiro editor and has macOS extended attributes (@ flag), all agent write tools (fsWrite, fsAppend, editCode) report success but write nothing to disk. The file remains at 0 bytes. The agent has no way to detect this — reads confirm the correct content, but the on-disk file is empty. This causes the agent to loop repeatedly attempting the same writes, burning credits with no progress.
fsWrite / fsAppend returned success but file stayed empty cargo build continued reporting errors from the old (pre-delete) cached content xattr -c via shell also failed to clear the attribute
Significant credit burn, agent eventually decied to try Python.
A Python open(..., 'w') workaround partially wrote ~1.4KB before also stalling readFile on the empty file returned "file is empty or does not exist" — the only reliable signal something was wrong Root cause (suspected): The editor holds an open file descriptor with a write lock or extended attribute that blocks external writes. The agent write tools do not check the post-write file size to verify the write actually landed.
Workaround: User manually saves the file from the editor, which flushes the buffer and releases the lock. Subsequent agent writes then succeed normally.
Steps to Reproduce
Open a file in the Kiro editor Have the agent delete and recreate it (e.g. to fix a corrupt file) The recreated file acquires a macOS @ extended attribute All subsequent agent writes to that file silently no-op ls -la shows 0 bytes; stat confirms size 0 What the agent observed:
Expected Behavior
1st order I expected the write to happen 2nd order: fsWrite / fsAppend returned success but file stayed empty cargo build continued reporting errors from the old (pre-delete) cached content xattr -c via shell also failed to clear the attribute
Conversation ID
6bce4259-1a11-4659-b6c2-fb318c0a0c1a 6bce4259-1a11-4659-b6c2-fb318c0a0c1a 6bce4259-1a11-4659-b6c2-fb318c0a0c1a 6bce4259-1a11-4659-b6c2-fb318c0a0c1a 6bce4259-1a11-4659-b6c2-fb318c0a0c1a
Additional Context
No response
🤖 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 write operations that fail silently - the new issue describes write tools reporting success but not actually writing to disk on macOS, while #4831 reports similar silent write failures over SSH on Linux. Both involve the core problem of write operations appearing to succeed but not persisting data.
actual issue, not a duplicate, really annoying, especially since the editor opens files automatically after kiro edited them.
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.
Hi! Thanks for reporting this. Several updates have shipped since this was filed (you were on version 0.11.x -- the latest is Kiro IDE 1.0.0 / CLI 2.8.1), and this area has seen significant fixes.
Could you update to the latest version and let us know if this is still happening?
- Kiro IDE: update via the built-in updater or download from kiro.dev
- Kiro CLI:
npm install -g @anthropic-ai/kiro-clior your package manager
If the issue persists, please share:
- Your current Kiro version
- Steps to reproduce
- Your Conversation ID
If we don't hear back within 7 days, we'll close this as resolved. Thanks! 🙏
From Kiro About:
Version: 0.12.333 VSCode Version: 1.107.1
(Where exactly is Kiro IDE 1.0.0?)
Do you guys not have a changelog to check if this issue explicitly got fixed? Community outsourcing QA much while not being open source? Love it when the most giant companies on earth do these things...
The above mentioned steps to reproduce are still valid to reproduce the bug so it still exists...
You are welcome for our work towards your paid product and our large swaths of training data ;)
Closing this issue as it was reported against an older version of Kiro (v0.x or early v1.x) and has had no activity in several months.
Kiro has shipped significant improvements since these versions, including stability fixes, new features, and major changes across v1.0, v1.1, v2.x, and the current v2.23.x releases. The behavior described here may already be resolved.
If this is still affecting you on the latest version, please open a new issue at https://github.com/kirodotdev/Kiro/issues/new with your current version (kiro-cli --version or Help > About in the IDE), your OS, and steps to reproduce. The latest version is available at https://kiro.dev/downloads/ or via kiro-cli update.
Thank you for taking the time to report this.