feat(attachments): support local files and video attachments (#6321)
* feat(attachments): support local files and video attachments Share gateway inspection and send validation for borrowed local paths while preserving binary uploads, original-file ownership, and existing limits. Related to NAN-284. Native provider video input remains outside this change. * test: make cross-platform verification fixtures self-contained * test(webui): align typed fixtures with runtime contracts * fix(webui): preserve uploaded video playback during history sync * test(tui): preserve local attachment drafts across resizes * perf(attachments): preserve upload caches and release video previews * docs(webui): keep attachment guidance user-focused * chore: remove redundant dependency comment * test(providers): make stream idle renewal timing deterministic * fix(attachments): keep upload byte limits out of local references Validate common format/count rules separately from upload byte budgets. Keep local inspection and send-time checks metadata-only, and exclude local references from composer and pending-upload totals. Explain upload size rejections with actual size and maximum in all ten locales. Related to NAN-284. * fix(attachments): retain image references and draft order * fix(attachments): close local reference UX and authorization gaps * fix(attachments): preserve focus during asynchronous path confirmation
This commit is contained in:
1 parent
7dfeff9ddf
commit
254f94b068
65 files changed
+1816
-292
No files matched your search
@@ -213,11 +213,10 @@ async def test_direct_process_cancellation_reaps_child(tmp_path, monkeypatch):
|
||||
async def test_direct_search_uses_configured_path(tmp_path, monkeypatch):
|
||||
installed = shutil.which("rg")
|
||||
assert installed
|
||||
bin_dir = tmp_path / "custom bin"
|
||||
bin_dir.mkdir()
|
||||
shutil.copy2(installed, bin_dir / ("rg.exe" if sys.platform == "win32" else "rg"))
|
||||
# Keep installed launchers with their adjacent files (e.g. Scoop's .shim).
|
||||
bin_dir = os.path.dirname(installed)
|
||||
monkeypatch.setenv("PATH", "")
|
||||
result = await RgTool(working_dir=str(tmp_path), path_prepend=str(bin_dir)).execute(
|
||||
result = await RgTool(working_dir=str(tmp_path), path_prepend=bin_dir).execute(
|
||||
args=["--version"],
|
||||
)
|
||||
assert "ripgrep" in result
|
||||
|
||||
Reference in new issue
Block a user