# Prompt Optimizing error

**URL:** <https://replit.discourse.group/t/prompt-optimizing-error/6896>\
**Category:** Bugs\
**Tags:** agent, bug\
**Created:** [September 5, 2025, 8:06pm UTC](https://replit.discourse.group/t/prompt-optimizing-error/6896 "2025-09-05T20:06:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![themambo1projec](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@themambo1projec](https://replit.discourse.group/u/themambo1projec)\
**Post date:** [September 5, 2025, 8:06pm UTC](https://replit.discourse.group/t/prompt-optimizing-error/6896/1 "2025-09-05T20:06:43Z")

</div>

When starting a new app, IF you upload a file (for example a PRD) and type a simple prompt like “let’s review the attached document and present a plan for development” AND you click on “Improve Prompt” the prompt is not optimized, instead you see the agent answers “ I cannot see an attached file”

Repro steps:

1. open Replit
2. attach a file
3. type basic prompt
4. click on “Improve Prompt”

Expected result:

a plan should be presented based on the document contents.

Current result:

A “cannot find file” message is displayed, no plan is started and the prompt is not improved.

 ![replit_bug](https://canada1.discourse-cdn.com/flex010/uploads/replit/original/2X/b/b2e1c23225185cf88234a4ae72ee0fb47ade60bd.png)
