[Bug] Preview fails for files in subdirectories (nested folders)
Platform
macOS (Apple Silicon)
AionUi Version
1.6.3
Bug Description
I encountered an issue with the file preview functionality. It currently works perfectly for files located in the project root directory, but it fails to read or load files located in subdirectories (multi-layer structure).
Analysis
It appears that the application might be passing only the filename instead of the correct relative path when triggering the preview. As a result, the system tries to look for the file in the project root instead of its actual location, causing the read operation to fail.
Steps to Reproduce
- Open a project in AionUi that has nested folders (e.g.,
src/components/Header.vue). - Ask the agent to edit or preview a file located inside a subdirectory.
- Trigger the preview window for that file.
- Observe that the preview fails to load the content.
Expected Behavior
The preview functionality should correctly handle file paths and be able to open/display files regardless of their directory depth.
Actual Behavior
Couldn't find
Additional Context
Please ensure that the full relative path (not just the filename) is passed to the file reading/preview component.
🤖 Hi @xavierliang, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.
🤖 I'm sorry @xavierliang, but I was unable to process your request. Please see the logs for more details.
yea ofc that is prevented by. gemini cli itself
Platform
macOS (Apple Silicon)
AionUi Version
1.6.3
Bug Description
I encountered an issue with the file preview functionality. It currently works perfectly for files located in the project root directory, but it fails to read or load files located in subdirectories (multi-layer structure).
Analysis
It appears that the application might be passing only the filename instead of the correct relative path when triggering the preview. As a result, the system tries to look for the file in the project root instead of its actual location, causing the read operation to fail.
Steps to Reproduce
- Open a project in AionUi that has nested folders (e.g.,
src/components/Header.vue).- Ask the agent to edit or preview a file located inside a subdirectory.
- Trigger the preview window for that file.
- Observe that the preview fails to load the content.
Expected Behavior
The preview functionality should correctly handle file paths and be able to open/display files regardless of their directory depth.
Actual Behavior
Couldn't find
Additional Context
Please ensure that the full relative path (not just the filename) is passed to the file reading/preview component.
@xavierliang We have already made compatibility in the new version, give it a try https://github.com/iOfficeAI/AionUi/releases/tag/v1.8.1