feat(flow-chat): support external file context input - #2756
Merged
wgqqqqq merged 4 commits intoSep 3, 2026
Conversation
Co-authored-by: BitFun <318544290+bitfun-ai@users.noreply.github.com>
wgqqqqq
marked this pull request as ready for review
September 3, 2026 02:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1276
Related reports consolidated into this request: #2352 and #2312.
Type and Areas
Type: Feature / regression fix / test / docs
Areas: Desktop/Tauri, Web UI flow chat, interactive capability catalog, E2E
Motivation / Impact
The composer previously understood only BitFun-internal drag payloads, and the main Tauri window disabled native drag/drop handling, so files dragged from Finder/Explorer never reached chat as real paths. Clipboard handling also treated only the first image file specially and otherwise fell back to text.
Desktop users running a local workspace or local managed worktree can now reference repository-external files and directories directly from the composer. No public submission API or generic binary attachment protocol is introduced; non-image files remain existing path contexts.
Verification
pnpm --dir src/web-ui run test:run src/flow_chat/components/RichTextInput.test.tsx src/flow_chat/utils/externalFileIntake.test.ts src/infrastructure/files/useLocalFileDrop.test.ts— passed, 42/42 tests.BITFUN_E2E_APP_MODE=debug pnpm --dir tests/e2e exec wdio run ./config/wdio.conf.ts --spec "./specs/l1-external-file-input.spec.ts"— passed.pnpm run check:web— passed.pnpm run i18n:audit— passed.pnpm run capabilities:generate && pnpm run capabilities:check && pnpm run capabilities:test— passed, 15/15 capability tests.pnpm run fmt:rs— passed.cargo check -p bitfun-desktop— passed after preparing required generated Desktop resources and configuring the cached sherpa-onnx archive.cargo test -p bitfun-desktop clipboard_file_api— passed, 11/11 matching tests.Reviewer Notes
Checklist
Generated with BitFun