AionUi icon indicating copy to clipboard operation
AionUi copied to clipboard

[Bug] Preview fails for files in subdirectories (nested folders)

Open xavierliang opened this issue 2 months ago • 3 comments

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

  1. Open a project in AionUi that has nested folders (e.g., src/components/Header.vue).
  2. Ask the agent to edit or preview a file located inside a subdirectory.
  3. Trigger the preview window for that file.
  4. 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 avatar Dec 12 '25 00:12 xavierliang

🤖 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.

aionui[bot] avatar Dec 12 '25 00:12 aionui[bot]

🤖 I'm sorry @xavierliang, but I was unable to process your request. Please see the logs for more details.

aionui[bot] avatar Dec 12 '25 00:12 aionui[bot]

yea ofc that is prevented by. gemini cli itself

ShreyanGondaliya avatar Dec 12 '25 07:12 ShreyanGondaliya

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

  1. Open a project in AionUi that has nested folders (e.g., src/components/Header.vue).
  2. Ask the agent to edit or preview a file located inside a subdirectory.
  3. Trigger the preview window for that file.
  4. 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

kuishou68 avatar Feb 02 '26 03:02 kuishou68