GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — Insert non-image file references on drop/paste by itsklimov · Pull Request #2091 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e1a6be281
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6e1a6be281ebe5b454d35583fc41efe072ee71f9. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Needs human review This PR introduces a new user-facing capability allowing non-image files to be dropped/pasted into the composer, inserting their file paths as text references. While the implementation is well-structured with tests, new features that change user-facing behavior warrant human review. The author is also a new contributor to this codebase. You can customize Macroscope's approvability policy. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1495e0b to
852431f
Compare
|
+1 Just hit this today. Tried to drag a The behavior in this PR (image → attachment, anything else → quoted path Worth noting this also resolves #2126, which isn't in the "Fixes" list yet — Fixes #2126 Anything blocking review here? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @AhmedAEB. I agree, for me it is so natural flow that I can't imaging working without it. And I have to re-build every release with this fix. Admins, if you want me to update the PR somehow, let me know... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Dropping or pasting a non-image file into the chat composer now inserts a local file reference into the prompt instead of rejecting it with "Please attach image files only". Images keep the existing attachment flow; mixed drops attach images and insert references for the rest. - contracts: add getPathForFile to DesktopBridge (sync) and LocalApi.shell (async) - desktop: resolve paths via Electron webUtils.getPathForFile in the preload bridge - web/localApi: shell.getPathForFile delegates to the bridge, null in browser mode - composer-logic: formatComposerFileReference quotes paths with whitespace/quotes - ComposerPromptEditor: insertTextAndFocus inserts at the live Lexical cursor - ChatComposer: addComposerAttachments unifies image/reference handling for paste+drop Faithful port of pingdotgg#2091 onto campfire/v0. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
@juliusmarminge I see that this PR is under review. Do you want me to resolve the conflicts that merged for the past 2 months? or any other help? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could this explicitly cover directories as well as files? The current logic buckets purely by MIME type (
Worth confirming the directory case and ideally adding a test. Related: #2126 (and I left a note there asking for directory support too). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing as part of backlog cleanup: this PR is stale, currently conflicting with main, has no approval, and has not had active remediation for 30+ days. If the change is still relevant, please rebase onto current main and request reopening or submit a focused current diff. Thank you for the contribution. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Feature]: Allow drag and drop text files into the prompt builder as context Restricted to only attach image files?
There was an error while loading. Please reload this page.