拖拽文件到 CodePilot 对话框,系统默认把它当图片上传(存到 .codepilot-uploads/),不会识别文件路径。

Open
#656 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
electron, next.js, typescript
Domain
desktop, frontend

Research direction

Start by reproducing the drag-and-drop behavior in CodePilot 0.58.0 on macOS and inspect the conversation dialog's file-drop handling. The issue says dropped files are uploaded as images to .codepilot-uploads/ rather than recognized by path, but names no source files or tests; trace the drop entry point and its upload flow. Done means a dropped file is handled by path as requested, instead of being treated as an image upload.

Written by the indexing model from the issue text.

Description

bug P0-data-loss-risk
CodePilot 版本 / Version

0.58.0

操作系统与架构 / OS & arch

macOS26.5.1 arm64

Runtime

Claude Code (SDK)

Provider / Model

deepseek v4pro

是否可复现 / Reproducible?

每次都能复现 / always

复现步骤 / Steps to reproduce
Image Image
期望 vs 实际 / Expected vs actual

拖动文件自动识别文件路径调用

日志 / 截图 / session id

No response

影响面 / Impact
  • 涉及文件写入或可能误改/丢失数据 / involves file write or possible data loss
  • 导致崩溃、闪退或对话被自动中断 / causes crash / quit / auto-interrupt
Dominant language
TypeScript
Stars
6.5k
Forks
697
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from op7418/CodePilot

All issues in op7418/CodePilot

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.