t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Feature]: Allow drag and drop text files into the prompt builder as context

Open jorgeluiso opened this issue 7 months ago • 2 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I am describing a concrete problem or use case, not just a vague idea.

Area

apps/web

Problem or use case

I wanted to import/copy an existing script into my project. In order to do that I wanted to drag and drop a text file into the Prompt input but got the error:

Unsupported file type for 'deploy.sh'. Please attach image files only.

Proposed solution

Allowing text files to be dropped into the context could accelerate prompt building. It could be referenced as a path or directly import the file content.

Why this matters

It is common to bring snippets from other projects into a working project.

Smallest useful scope

Converting the file dropped into a path so that the LLM can read(...) it

Alternatives considered

No response

Risks or tradeoffs

No response

Examples or references

No response

Contribution

  • [ ] I would be open to helping implement this.

jorgeluiso avatar Apr 17 '26 21:04 jorgeluiso

This should be fixed by #2091.

itsklimov avatar Apr 17 '26 23:04 itsklimov

Duplicate of #2126

#2126 covers this exact flow — non-image files dropped into the composer become path references the agent can read — and the in-review fix #2091 implements the drop/paste handling. Consolidating there.

juliusmarminge avatar Jun 09 '26 23:06 juliusmarminge