Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

BUG: IDE is getting mixed up about its root : readMultipleFiles, readFile add "/" to all file access to specs and such - not good

Open NeilPitman opened this issue 9 months ago • 22 comments

Before opening, please confirm:

Operating System

linux

Kiro Version

0.9.2

Bug Description

I have two projects in: ~/projects/project1 ~/projects/project2

one of them is now unable to read from ~/projects/project1/.kiro/spec/spec1

it has resorted to updating with sed and cat.

The other is convinced that the root is ~/projects/project2/workspace

There is no .../workspace

I have built quite a bit of code, before Kiro lost its moorings.

Steps to Reproduce

I don<t know how Kiro got into this, but now I simply as Kiro to read the spec selection-offset-reconciliation (@ /home/neilpitman/projects/SocialMediaDVViewer/.kiro/specs/selection-offset-reconciliation/requirements.md)

Me: Please review the spec selection-offset-reconciliation. Please comment on quality. Tell me if you have any have any issues reading it. Kiro Error(s) while reading file(s) Yes, I'm having issues reading the files. The readMultipleFiles tool is failing with "Access denied: File access is restricted to workspace" and it's prepending a / to the paths (showing /.kiro/... instead of .kiro/...).

Let me try with readFile individually:

Error(s) while reading file(s) The issue persists. The tool is adding a leading / which makes it an absolute path instead of relative to the workspace.

I notice in the environment context that you have design.md open in your editor. Let me try reading that specific file since it's active:

Error(s) while reading file(s) I'm unable to read the spec files. The file reading tools are consistently failing with access denied errors, even though:

The files clearly exist (grep found them earlier) You have design.md open in your editor I'm using relative paths (.kiro/specs/...) The error message says the files should be accessible in the workspace The tool is incorrectly prepending a / to my paths, converting .kiro/specs/... to /.kiro/specs/..., which makes it an absolute path pointing to the root filesystem instead of the workspace.

This appears to be a tool/system issue rather than something I can work around. Without being able to read the files properly, I cannot provide an accurate quality review of the spec.

Can you help resolve this file access issue, or would you prefer to share the content another way?

Credits used: 0.49 Elapsed time: 19s

I can change the file in the editor, and compare the file with the human compare tool

Expected Behavior

I expect Kiro to access its project directory , like it did for a month before

Conversation ID

db4af29e-3571-40a3-b156-2c21de959b77 35fc5433-e2f2-4c79-b5a7-432ec32caa3a

Additional Context

I have added comments on https://github.com/kirodotdev/Kiro/issues/5003, but since it is closed, I am creating a new BUG

I have rebooted my machine, and reloaded Kiro - no joy I uninstalled and reinstalled Kiro - no joy I renamed ~/.config/Kiro so that it needed to rebuild ~/.config/Kiro - no joy I renamed /home/neilpitman/projects/SocialMediaDVViewer to /home/neilpitman/projects/SocialMediaDVViewer.buggeredroot, and reloaded /home/neilpitman/projects/SocialMediaDVViewer from git - no joy.

I don't know where it keeps this root, but it must be somewhere in the git repo, and I don't know how to make it change.

This project is over a month old and it only got polluted today.

I am pretty stuffed - I don't know how to proceed. Really need a work around

NeilPitman avatar Feb 08 '26 05:02 NeilPitman

This is not a duplicate, or if it is, it contains much more detail and troubleshooting than the other ticket.

NeilPitman avatar Feb 08 '26 05:02 NeilPitman

OK, I have a work-around. we created a symlink and kiro can access through that. Pretty lame, but let's see. I can see problems down the road

:~/projects/SocialMediaDVViewer$ ln -s .kiro kiro-specs

NeilPitman avatar Feb 08 '26 05:02 NeilPitman

Thanks for the confirmation, and the suggestion about .gitignore.

I have been using that, but it is still wonkey with directories. (at least I can continue, even if I burn tokens)

The problem is that it must need to know to use ./kiro-specs rather than ./.kiro/specs, and it doesn't really get that in a new session until it faceplants a couple times.

I put this in .kiro/steering/spec-task-format.md, but it's still hit and miss.

Important: Symbolic Link Note

For all agents and sessions: The kiro-specs/ directory is a symbolic link to .kiro/. Due to IDE file access restrictions, you MUST use the symlink path when reading spec files:

  • ✅ CORRECT: readFile("kiro-specs/specs/offset-reconciliation/tasks.md")
  • ❌ INCORRECT: readFile(".kiro/specs/offset-reconciliation/tasks.md")

The symlink allows proper file access through the IDE's file system. Always use kiro-specs/ as the base path for reading spec files.

here is another, possibly related, directory problem (not a showstopper, but a token/time burner)

see this in e547ab64-60f7-4e79-b5b9-3f0e7ff6bd01

kiro: bash: cd: /home/neilpitman/projects/OllamaAIProxy/home/neilpitman: No such file or directory === Offset Reconciliation System - Component Verification ===

OffsetReconciler: ✓ Docstring: Yes ✓ Public methods: 1

TextMatcher: ✓ Docstring: Yes ✓ Public methods: 2

me: why doi you keep trying to execute this?cd: /home/neilpitman/projects/OllamaAIProxy/home/neilpitman: No such file or directory

kiro:

You're right - I apologize. I see the error in the terminal output you're showing. That's a malformed path that shouldn't exist. I'm not intentionally trying to execute anything with that path - it appears to be coming from somewhere in the test execution or environment setup.

Let me stop and check what's actually happening:

Command pwd /home/neilpitman/projects/OllamaAIProxy I'm in the correct directory. The malformed path /home/neilpitman/projects/OllamaAIProxy/home/neilpitman looks like a path concatenation error - something is appending /home/neilpitman to the already-correct path.

This might be coming from:

A test fixture or configuration that's building paths incorrectly An environment variable issue Something in the subagent execution Rather than continuing to invoke subagents that might be triggering this, should I:

Stop here and let you investigate the path issue? Continue with the remaining tasks (7-10) but be more careful about monitoring for this error? Something else? What would you prefer?

Credits used: 1.24 Elapsed time: 16m 58s

me: can you tell me the most you can about where this rogue command is getting inserted, so I can report a bug?

kiro:

based on the error message you showed me:

The terminal process failed to launch: Starting directory (cwd) "/home/neilpitman/projects/OllamaAIProxy/home/neilpitman" does not exist. Here's what I can tell you about the bug:

The Problem:

The path is being doubled: /home/neilpitman/projects/OllamaAIProxy/home/neilpitman It looks like /home/neilpitman is being appended to an already-complete path This suggests a path concatenation bug where a full absolute path is being treated as a relative path Most Likely Source: The error message says "The terminal process failed to launch" and mentions "Starting directory (cwd)" - this is coming from the IDE's terminal/process launcher, not from my code directly.

What I can tell you:

When it happens: It occurs when the subagent (spec-task-execution) is invoked and tries to execute tests The pattern: The malformed path always has the structure: [correct_path]/home/neilpitman What's being concatenated: Something is taking the user's home directory path (/home/neilpitman) and appending it to the already-correct working directory For your bug report, include:

The error occurs when invoking subagents that run test suites The cwd parameter being passed is likely correct (/home/neilpitman/projects/OllamaAIProxy) But somewhere in the IDE's process launcher, it's concatenating this with /home/neilpitman again This suggests the IDE is either: Not properly handling absolute paths in the cwd parameter Treating absolute paths as relative and prepending the home directory Having an issue with how it resolves the working directory when launching background processes Hypothesis: The IDE's controlBashProcess or terminal launcher might be checking if cwd is absolute, and if it detects it starts with /home/neilpitman, it's incorrectly prepending that path again instead of using it as-is.

Looking forward to a point release

NeilPitman avatar Feb 08 '26 16:02 NeilPitman

also, would appreciate that this report not be marked duplicate

NeilPitman avatar Feb 08 '26 16:02 NeilPitman

Hi @NeilPitman, thanks for the detailed report and for not giving up on troubleshooting — we really appreciate it. 🙏

We're sorry for the frustration here. Removing the duplicate label — this report contains significantly more detail, reproduction steps, and investigation than the related issues.

There are actually two distinct problems reported here:

  • .kiro/ path access restriction — Kiro's file tools are blocking access to .kiro/ paths by prepending /, converting relative paths to absolute root filesystem paths.
  • Path concatenation bug — The terminal launcher is doubling the working directory (e.g., /home/user/project/home/user), suggesting a cwd resolution issue when launching subagents.

Thanks to @KaizerSolomon for the detailed symlink workaround and access matrix — that's incredibly helpful for the community in the meantime.

A few questions to help us dig deeper:

  1. Did both issues start around the same time, or did the path concatenation issue come later?
  2. Are you using multi-root workspaces or a single folder?
  3. Could you share the conversation ID where the path doubling first appeared?

We'll keep this issue open and update you as we make progress. Thanks for your patience!

AnilMaktala avatar Feb 09 '26 19:02 AnilMaktala

I know how frustrating "Help-Help, It's busted" bug reports can be, so I try to give a bug report that's actionable.

I have three Kiro project directories that are open at the same time, but different IDEs. They represent two servers and an artifact creation project. I started to see editing fails and retries about two weeks ago, but I did not realize it

These are the versions I have installed kiro-ide-0.8.86-stable-linux-x64.deb kiro-ide-0.8.135-stable-linux-x64.deb kiro-ide-0.8.140-stable-linux-x64.deb kiro-ide-0.8.206-stable-linux-x64.deb kiro-ide-0.9.2-stable-linux-x64.deb

Problems with the project root getting "workspace" appended definitely started either with 8.140 or 8.206. The prepending of '/' may have been 8.206, definitely 9.2.

in any case, they did not break with the new install, things worked, then got poisoned, and I hunted around to figure out how to reset the root, but lots of rabbit trails.

NeilPitman avatar Feb 09 '26 23:02 NeilPitman

Hi @NeilPitman, Thanks for the detailed report. Really appreciate you taking the time to narrow down the versions and behavior. This is very helpful. We've created a task for the team to investigate the workspace path issue with the root getting 'workspace' appended and the '/' prepending. We'll follow up once we have more details.

AnilMaktala avatar Feb 11 '26 14:02 AnilMaktala

Hi @NeilPitman, Thanks for the detailed report. Really appreciate you taking the time to narrow down the versions and behavior. This is very helpful. We've created a task for the team to investigate the workspace path issue with the root getting 'workspace' appended and the '/' prepending. We'll follow up once we have more details.

Thank you for looking into it. This is been a real pain in the neck for 2 days :(

chuymtz avatar Feb 12 '26 16:02 chuymtz

https://github.com/kirodotdev/Kiro/issues/5003#issuecomment-3891441907

NeilPitman avatar Feb 12 '26 16:02 NeilPitman

Any expected ETA to release a fix? It has been now over a week since was first experienced and this is impacting a lot. I tried the workaround suggested here, but there's inconsistency and multiple times it reverse back to the reported error.

70nyIT avatar Feb 13 '26 15:02 70nyIT

Downgrade Kiro ide to 0.8.

Any expected ETA to release a fix? It has been now over a week since was first experienced and this is impacting a lot. I tried the workaround suggested here, but there's inconsistency and multiple times it reverse back to the reported error.

chuymtz avatar Feb 14 '26 02:02 chuymtz

Maybe this is related (and even older): https://github.com/kirodotdev/Kiro/issues/1576 https://github.com/kirodotdev/Kiro/issues/1954 https://github.com/kirodotdev/Kiro/issues/4518

JuanxCursed avatar Feb 14 '26 14:02 JuanxCursed

yes I already did that @chuymtz . The issue is that 0.8.x in Ubuntu on my laptop spins up random processes after a while birnging CPU at 100% for no reason. This is not happening somehow with 0.9.x - but the situation with specs makes everything worse

70nyIT avatar Feb 14 '26 22:02 70nyIT

This is happening to me as well for multiple projects constantly. Kiro is basically useless to me at this point and I paid for a subscription. I just updated to version 0.10.0 and CPU and memory usage has gone up.

Version: 0.10.0 VSCode Version: 1.107.1 Commit: c52f255a86ddbf00c3256a8d8a439ee3577fad4c Date: 2026-02-18T18:13:23.511Z Electron: 39.2.3 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS: Linux x64 6.17.0-14-generic

Image Image Image Image

ocobra avatar Feb 19 '26 06:02 ocobra

yes, this is getting pretty ridiculous considering we have a paid subscription. I was expecting at least for version 0.10 to have it solved. Any dev can share an ETA, given that it's barely impossible to update with these problems?

70nyIT avatar Feb 19 '26 09:02 70nyIT

I need to be blunt: this bug and the way it's being handled is embarrassing for a company of Amazon's caliber.

This is not a minor edge case - it's a critical path resolution bug that breaks core functionality:

  • Can't create steering files (a flagship feature)
  • Can't manage workspace configuration programmatically
  • Breaks the entire spec workflow on Linux
  • Forces users to resort to inconsistent bash workarounds

And it's been sitting here unresolved for weeks while affecting multiple Linux distributions (Ubuntu, Fedora confirmed). I mean, two weeks and this is still pending-maintainer-response?!

Let me put this in perspective: other agentic IDEs work flawlessly. Meanwhile, Kiro - backed by Amazon - can't correctly resolve a relative path to a configuration directory. This is basic filesystem operations, not rocket science.

When a company like Amazon ships an IDE that has fundamental bugs in core features and leaves critical issues unresolved forcing users to hack around broken functionalities, it signals that either the product isn't being taken seriously internally or QA processes are inadequate.

The agentic IDE space is heating up fast. Cursor is dominating, Windsurf is gaining traction, and new players are emerging weekly. Amazon has the resources, the talent, and the infrastructure to win this space - but not with this level of quality. You're competing against lean, hungry startups that ship working software. If basic functionality like "create a file in a workspace directory" doesn't work reliably, developers will simply use tools that do.

Please, acknowledge the severity of this issue and fix it urgently. I'm saying this as someone who wants Kiro to succeed. The vision is compelling, the features are promising, but execution matters. Fix the fundamentals before adding more features.

For the future: take serious actions on this broken issue tracking system.

flavioleggio avatar Feb 19 '26 09:02 flavioleggio

Hey everyone — we're actively working on a fix for this issue. A resolution will be available soon. We'll update this thread once it's rolled out. Appreciate your patience and the detailed reports.

AnilMaktala avatar Feb 19 '26 18:02 AnilMaktala

Hey everyone — we're actively working on a fix for this issue. A resolution will be available soon. We'll update this thread once it's rolled out. Appreciate your patience and the detailed reports.

Hope this can be rolled out soon... The symlink workaround is broken for me when I updated to 0.10.0 even after removing it and creating it again, thinking the fix was implemented in this new version and it's been burning tokens like crazy....

omer-eldaw avatar Feb 20 '26 15:02 omer-eldaw

@AnilMaktala I just upgraded to 0.10.10 and I don't see the bug anymore!! Thank you for taking care of this!

chuymtz avatar Feb 20 '26 19:02 chuymtz

Hi everyone,

We have released Kiro 0.10.10 today which includes a fix for this .kiro/ path resolution issue.

@chuymtz — glad to hear it's working for you on 0.10.10! 🎉

For everyone else following this thread — could you please update to 0.10.10 and confirm whether the fix resolves the issue in your environment?

@NeilPitman — regarding the secondary path duplication issue you reported (paths like /home/user/projects/Project/home/user), please let us know if that is also resolved on 0.10.10. If not, we can track that separately.

Thank you all for the detailed reports, workarounds, and patience — it was genuinely helpful in tracking this down and getting it fixed. We appreciate the community support.

Please report back your findings here so we can confirm the fix across all affected environments and close this out.

AnilMaktala avatar Feb 20 '26 19:02 AnilMaktala