File syntax for prompt field broken for sub agents
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
macOs
Kiro Version
1.24.1
Bug Description
Expected behaviour I want to define an agent which can be used both as an agent and a sub agent and uses the file syntax feature for its prompt
Actual behaviour This isn't possible because the file is looked up from a different relative path based on whether it is launched as an agent or a sub agent. This means only full paths can work. Full paths make the agent definition far less portable.
Steps to Reproduce
Make an agent like the one given as an example in the documentation
try to launch it as a sub agent and it will fail to load context from its prompt file
Expected Behavior
There should be some way to use relative file paths with an agent and also launch that agent as a sub agent
Conversation ID
No response
Additional Context
No response
Any update? Its been a month, this seems like a pretty simple bug and its really frustrating. You can see that other people are hitting the same issue as well
https://github.com/kirodotdev/Kiro/issues/6100
The simplest backwards compatible fix would be to try looking up relative paths from both potential roots
we are affected too