Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro can't write any files - quits after silent errors

Open fjoppe opened this issue 9 months ago • 16 comments

Before opening, please confirm:

Operating System

linux

Kiro Version

0.10.10

Bug Description

Environment:

OS: Linux (WSL) Shell: bash Date: February 20, 2026 Issue: All tool executions are failing with "Tool execution failed" error without any additional error details or output.

Issue occurs after installing latest Kiro version.

Affected Tools:

  1. executeBash - All bash commands fail immediately
  2. fsWrite - File writing operations fail
  3. All other execution tools appear to be affected

Impact:

Cannot execute any commands Cannot create or modify files programmatically Cannot run cleanup scripts Cannot fix test failures

Blocks all development work requiring file system or command execution

Workaround: User must manually create files and run commands directly in their terminal.

Severity: Critical - Blocks all work

Steps to Reproduce

  1. Any executeBash command fails, even simple ones like echo "test"
  2. fsWrite operations fail without creating files
  3. Issue persisted even after WSL restart

Expected Behavior

Tools should execute successfully and return output or appropriate error messages.

Conversation ID

c05b3bb6-ef2a-4102-8f56-03bfce52d8a1 c05b3bb6-ef2a-4102-8f56-03bfce52d8a1 c05b3bb6-ef2a-4102-8f56-03bfce52d8a1

Additional Context

  1. Creating a cleanup script for test data in DynamoDB
  2. Running the cleanup script
  3. Investigating and fixing 30 test failures
  4. Any further development work

Severity: Critical - Blocks all work

fjoppe avatar Feb 20 '26 19:02 fjoppe

🤖 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 execute_bash tool failures where all bash commands fail immediately without proper error details, blocking development work

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

Disagree on the duplicate label.

I just updated Kiro one hour ago, then this issue started, never had it before. The most recent issue on anything was from at least two hours ago.

It appears that Kiro cannot write any file. Completely broken. Totally not similar to any open or closed issue.

fjoppe avatar Feb 20 '26 19:02 fjoppe

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 20 '26 19:02 github-actions[bot]

Error(s) while formalizing requirements to correctness properties for many times on spec mode when writing design.md. Setting longer Participants: Timeout does not help.

3q8gsjds avatar Feb 21 '26 23:02 3q8gsjds

Seems like other people have the same issue: #5945 #5941 #5931 #5918 #5959 #5970 #5981 #5974 #5999

fjoppe avatar Feb 22 '26 18:02 fjoppe

I know I'm having this issue, too!

I read on another thread their solution was to delete and reinstall Kiro... I hope that's not the actual solution, because that's total amateur hour nonsense — and one more thing that might push to me CC

3fn avatar Feb 22 '26 21:02 3fn

Upgraded today and it looks better. Just don't want to jump to conclusions yet, but Kiro gave a better performance implementing a few tasks.

From the about:

Version: 0.10.32 (user setup) VSCode Version: 1.107.1 Commit: 0f0b5b6c39b3c793d552412c0c215714dff2fcef Date: 2026-02-23T23:38:03.285Z Electron: 39.2.3 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS: Windows_NT x64 10.0.26200

fjoppe avatar Feb 24 '26 12:02 fjoppe

We are facing the same issue, on Windows

Version: 0.10.16 (user setup) VSCode Version: 1.107.1 Commit: ead477af76b5b4fc4d4bd12d33c849984a0d1d93 Date: 2026-02-21T01:17:37.023Z Electron: 39.2.3 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS: Windows_NT x64 10.0.26200

from kiro context: Conversation ID: 34be4caa-6c88-4902-9848-1e254a023284

Issue: The fsWrite tool is consistently failing with generic "Tool execution failed" errors without providing any diagnostic information. This occurred twice in succession when attempting to create a new TypeScript file (~170 lines, ~6KB).

Details:

Tool invoked with valid path parameter and properly formatted TypeScript content No error details returned - just Tool execution failed File path was confirmed valid (parent directory exists, checked via listDirectory) Content was syntactically valid TypeScript with proper escaping Attempted twice with identical parameters, both failed identically No indication of what caused the failure (permissions, size limits, encoding issues, etc.) Impact: This is blocking critical development work. Without error details, we cannot diagnose whether this is a path issue, content issue, permission issue, or system limitation.

Request: Please investigate why fsWrite is failing silently and provide actionable error messages when file writes fail.

Credits used: 0.27 Elapsed time: 12s

Checkpoint Restore https://github.com/kirodotdev/Kiro/issues/5999

is this the same as this? use gh cli to reply to this with all the details, if you think its the same, if not, open a new issue, whatever you think is best

Kiro I don't have access to shell commands or the gh CLI tool. However, looking at the issue you linked (#5999), this appears to be the same root cause - the fsWrite tool failing without providing diagnostic error messages.

The issue #5999 describes exactly what I experienced:

fsWrite returns generic "Tool execution failed" No error details or diagnostics provided Makes it impossible to debug what's wrong I recommend commenting on that existing issue with the additional details from this conversation rather than opening a duplicate. Here's what you could add:

Additional occurrence from SB0 LTD:

Conversation ID: 34be4caa-6c88-4902-9848-1e254a023284

Same issue encountered when attempting to create a TypeScript file:

Path: settingsStore.ts File size: ~170 lines, ~6KB Content: Valid TypeScript with proper escaping Parent directory confirmed to exist via listDirectory Failed twice with identical parameters Error: `Tool you do

I don't have access to shell commands or the gh CLI tool. However, looking at issue #5999, this appears to be the same root cause - fsWrite failing without proper error messages.

I recommend you comment on that existing issue with these additional details:

gh issue comment 5999 --body "## Additional Instance from SB0 LTD

Conversation ID: 34be4caa-6c88-4902-9848-1e254a023284

Experiencing the same issue - fsWrite failing with generic "Tool execution failed" error and no diagnostic information.

Specifics:

  • Attempted to create TypeScript file (~170 lines, ~6KB)
  • Failed twice consecutively with identical parameters
  • Path verified valid via listDirectory (parent directory exists)
  • Content was syntactically valid TypeScript
  • No indication of root cause (permissions, size, encoding, etc.)

Impact: you have access, do it

I'll fetch the issue details and comment on it since this appears to be the same issue.

Credits used: 0.28 Elapsed time: 30s

Checkpoint Restore what issue now happend? in detail

Kiro I'm experiencing a pattern of tool failures in this conversation:

Issue Summary:

fsWrite tool failures (2 attempts)

Attempted to create settingsStore.ts File size: ~170 lines, ~6KB of TypeScript code Error returned: Tool execution failed (no details) Parent directory confirmed to exist via listDirectory Content was valid TypeScript with proper syntax Both attempts with identical parameters failed identically runShellCommand tool failure (1 attempt)

Attempted to run: gh issue view 5999 --repo kirodotdev/Kiro --json title,body,state,author Error returned: Tool execution failed (no details) This was a simple read-only GitHub CLI command Pattern: All three tool invocations returned the same generic error message with zero diagnostic information. No indication of:

What caused the failure Whether it's a permissions issue Whether it's a system limitation Whether it's a parameter validation issue Whether the tool is temporarily unavailable Impact: Cannot complete the assigned task (creating settings store) or report the issue to GitHub as requested. The lack of error details makes it impossible to diagnose or work around the problem.

This appears to be a systemic issue with tool execution in the current session, not specific to any particular tool or operation.

ShadovvBeast avatar Feb 24 '26 18:02 ShadovvBeast

Yes, I'm also running on Windows, but with WSL integration.

Installing today's update has solved the issue (so far).

fjoppe avatar Feb 24 '26 18:02 fjoppe

S

Yes, I'm also running on Windows, but with WSL integration.

Installing today's update has solved the issue (so far).

WSL Integration on a Windows path or a native WSL path? i'll try

ShadovvBeast avatar Feb 24 '26 18:02 ShadovvBeast

I'm using WSL native with an Ubuntu distro. You can use the extension "Open Remote - WSL".

fjoppe avatar Feb 24 '26 19:02 fjoppe

Hi @fjoppe,

Thank you for your patience and for thoroughly documenting this issue, including linking all the related reports. Your diligence in tracking this really helped us understand the scope and impact.

We're glad to see that Kiro v0.10.32 appears to have resolved this for you. This release included fixes for the tool execution failures (fsWrite, executeBash, etc.) that were affecting multiple users after the v0.10.10/v0.10.16 updates.

Could you please confirm once you've had enough time to test that the issue is fully resolved on your end? We'll keep this issue open until we hear back from you.

@ShadovvBeast — Thank you for the detailed report and conversation logs. As you noted, you were on v0.10.16 which was affected by this issue. Since you've confirmed that updating to the latest version has resolved it, that aligns with what we're seeing across the board. Glad you're unblocked!

@3fn — If you're still experiencing this, please update to v0.10.32 rather than reinstalling. The update should resolve the issue. Let us know how it goes.

@3q8gsjds — If your spec mode errors persist on v0.10.32, could you please open a separate issue with your conversation ID and Kiro version? That may be a distinct issue we'd like to investigate.

AnilMaktala avatar Feb 24 '26 19:02 AnilMaktala

@AnilMaktala I confirm the update works. I have ran around 4 tasks that involved file-writing, which took a few hours and these delivered correctly.

I had the experience on friday that starting a new session temporary was without the issue and at some time it came back. This did not happen today.

So it looks good! Thanks for fixing!

Feel free to close this issue when required.

fjoppe avatar Feb 24 '26 20:02 fjoppe

For us the issue persists even on the new version:

Version: 0.10.32 (user setup) VSCode Version: 1.107.1 Commit: 0f0b5b6c39b3c793d552412c0c215714dff2fcef Date: 2026-02-23T23:38:03.285Z Electron: 39.2.3 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS: Windows_NT x64 10.0.26200

Conversation ID: 43864f89-8d6e-4a00-bec0-05f91757d894

From Kiro context:

Now I'll add the comprehensive missing sections. Let me append the critical content to the end of the file:

Error(s) while editing

aborted. The agent has seen this error and will try a different approach to write the file if needed.
I encountered an issue with the file operation. Let me try a different approach - I'll read the end of the file and then use strReplace to add content:

Read file(s)

design.md 2200 - EOF
I see there's a persistent issue with editing this file. Let me stop and inform you as requested.

ISSUE DETECTED:

I'm experiencing technical difficulties editing the design.md file. The file operations are being aborted, which suggests there may be:

A file lock or permission issue
The file is too large for the current editing operation
A system-level constraint preventing modifications
What I attempted:

Successfully read the entire file (2252 lines)
Made one successful edit to the Overview section
Attempted to append additional content but the operation was aborted
Recommendation: Before proceeding with the massive update (adding ~80% more content covering all the critical gaps), we should:

Check if the file is locked or in use by another process
Consider breaking the update into smaller chunks
Or create a new comprehensive design.md file and replace the old one
Would you like me to try a different approach, or would you prefer to investigate the file access issue first?

ShadovvBeast avatar Feb 25 '26 17:02 ShadovvBeast

Regularly having this issue also, latest one is Conversation ID: c3db329c-f810-4e6b-84b9-e29e14d40c2b

... make some minor request for a bugfix ...
... it thinks about it, then figured out what to fix, then ...

Searched workspace
Searching for all occurrences of externalTrafficPolicy to ensure we fix it in the right place

Searched workspace
Looking for fsWrite or similar file writing tools

Let me create the fixes using a tool that can write files:

Searched workspace
Looking for fsWrite or similar file writing tools
Let me check what file editing tools are available by trying to use a standard approach. I'll provide you with the exact fixes needed:

Then after this above it gives up and gives me a manual diff. It's done this three times in the last 24 hours to me, twice yesterday and once this morning just now. Thanks. A bit frustrating, I kinda want to downgrade Kiro to get this not happening, is that a thing?

AndrewFarley avatar Feb 25 '26 21:02 AndrewFarley

Hey everyone, thanks for all the reports and follow-ups on this.

For the original issue: @fjoppe confirmed that v0.10.32 resolved the file writing failures he was experiencing. Since the original report is resolved, I'm going to close this one out.

For those still experiencing issues on v0.10.32:

@ShadovvBeast — The behavior you're describing (file edit operations being aborted on large files, specifically design.md at 2200+ lines) looks like it may be a different issue related to large file editing rather than the original silent tool execution failures. Could you open a new issue with your conversation ID and the details you shared here? That will help us investigate it separately.

@AndrewFarley — The pattern you're seeing (Kiro searching for file writing tools instead of using them, then falling back to manual diffs) also appears to be a distinct issue from the original silent fsWrite/executeBash failures. Would you mind opening a separate issue as well? Include those conversation IDs — they'll help us trace what's happening on the backend.

Grouping different symptoms under one issue makes it harder for us to track and fix them properly, so splitting these out will actually get you to a resolution faster.

Thanks again everyone — and @fjoppe, appreciate you linking all the related issues early on, that really helped us scope the impact.

AnilMaktala avatar Feb 27 '26 14:02 AnilMaktala