Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2291eae
upstream #4497: MCP export's bitDepth carries no integer enum
emmertex Nov 29, 2026
acc72a1
upstream #4528: MCP export forwards its JPEG XL options
emmertex Nov 29, 2026
9f57e59
upstream #4737: headless batch exports continue past a missing original
emmertex Nov 29, 2026
cb32ba3
upstream #4484: the contact sheet's Paper box shows A4 / Letter
emmertex Nov 29, 2026
4fc1441
upstream #4444: LR-VIEW-ZOOM: dragging a mask keeps the photo sharp
emmertex Nov 29, 2026
9468923
upstream #4482: unbounded test waits in ui-egui get a time limit
emmertex Nov 29, 2026
da85582
upstream #4663: <PREFIX>_DISABLE_UPDATES turns update checks off
emmertex Nov 29, 2026
79f41fb
upstream #4653: Linux reveal selects the files via FileManager1.ShowI…
emmertex Nov 29, 2026
fd17306
upstream #1704: Original and DNG exports follow the metadata setting
emmertex Nov 29, 2026
0271780
upstream #1261: positive Paint vignette blends toward white
emmertex Nov 29, 2026
0a4024a
upstream #4729: an older process version's untouched defaults are not…
Nov 24, 2026
964f128
upstream #4747: skip warnings for inactive legacy XMP fields
emmertex Nov 29, 2026
d423abe
upstream #1736: control channel bounds the pending synthetic-event queue
emmertex Nov 29, 2026
589ae02
upstream #1204: macOS opens photos from Finder, the Dock and Open With
emmertex Nov 29, 2026
530afa6
upstream #4633: proof: preserve the selected ICC profile path
MMexicann Nov 21, 2026
89c41e5
Merge branch 'adopt-xmp' into upstream-intake-2026-11-29
emmertex Nov 29, 2026
0519c8d
upstream #4568: reject malformed saved-set slots
emmertex Nov 29, 2026
71e926c
upstream #4572: report oversized cell pages without overflow
emmertex Nov 29, 2026
9ddf4c3
upstream #4622: skip photo effects when there is no photo
emmertex Nov 29, 2026
c7fa4ca
upstream #4627: reject malformed preset IDs before exporting
emmertex Nov 29, 2026
d5b22eb
upstream #4730: report final slideshow PDF bytes
emmertex Nov 29, 2026
ef74a81
upstream #4741: skip image probes for linked catalog videos
emmertex Nov 29, 2026
8421e39
upstream #4565: normalize preset and import keywords
emmertex Nov 29, 2026
d30dfd4
upstream #1638: walk overlapping photo and preset import roots once
emmertex Nov 29, 2026
c224702
upstream #4628: preserve absolute filesystem roots in Local browse
emmertex Nov 29, 2026
be29ce4
upstream #4538: `cli mcp FOLDER` keeps serving when the folder has no…
emmertex Nov 29, 2026
ffac857
Merge branch 'adopt-engine' into upstream-intake-2026-11-29
emmertex Nov 29, 2026
3cbf14b
Merge branch 'adopt-mcp' into upstream-intake-2026-11-29
emmertex Nov 29, 2026
e3b59f2
upstream #1828: denoise X-Trans raws through an RGGB re-mosaic
Oct 14, 2026
47197e3
Merge branch 'adopt-ui' into upstream-intake-2026-11-29
emmertex Nov 29, 2026
61f3e57
Merge branch 'adopt-raw' into upstream-intake-2026-11-29
emmertex Nov 29, 2026
707e2a2
Intake merge: close the test the export and engine merges shared
emmertex Nov 29, 2026
a0b9a0b
Upstream intake 2026-11-29: ledger rows and run log
emmertex Nov 29, 2026
0d7249f
Merge staging into the 2026-11-29 intake round; drop the #1704 port
emmertex Nov 29, 2026
028d2ad
upstream #1261: the GPU renders a positive Paint vignette as the CPU …
emmertex Nov 29, 2026
0e9bfdf
upstream #1638: overlapping roots never lose a folder
emmertex Nov 29, 2026
02835c2
Windows: clippy passes on the Unix-only test helpers; two doc comment…
emmertex Nov 29, 2026
b3d1f7f
FX-50: a backup made in a second a prune freed is not pruned as the o…
emmertex Nov 29, 2026
79df2dd
CAL: probe-check renders its side with the camera's calibration, as a…
emmertex Nov 29, 2026
dd82185
i18n: the Faces detection-sensitivity texts in every language
emmertex Nov 29, 2026
ae49d5b
CI: the macOS and Windows job checks out this repository again
emmertex Nov 29, 2026
87f8262
Merge branch 'staging' into upstream-intake-2026-11-29
emmertex Nov 29, 2026
adcdd5e
Merge branch 'staging' into upstream-intake-2026-11-29
emmertex Nov 29, 2026
f9b1c98
UPSTREAM-INTAKE: wasm and Windows build fixes for the 2026-11-29 round
emmertex Nov 29, 2026
aaba12d
Merge remote-tracking branch 'origin/staging' into upstream-intake-20…
emmertex Nov 29, 2026
9ab8b29
Merge staging into the 2026-11-29 intake round; drop the FX-50 backup…
emmertex Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ never a panic. Never ship a panic path; fix crashes before building on them. Thi
(JNI VM/activity adoption), `crates/winspool` (Win32 print spooler), `crates/winmsi` (`MsiEnumClientsW` +
`MsiGetComponentPathW` for the updater), `crates/winjob` (a kill-on-close job object, so the Windows CLI
launcher's app ends with it), `crates/firstclick` (macOS: replaces `acceptsFirstMouse:` on winit's window view,
for the background-click setting), `crates/libraw` (FFI into its C shim over LibRaw, opt-in, see Non-negotiables), and `apps/android`'s `#[unsafe(no_mangle)] android_main`. Every other
for the background-click setting), `crates/opendocs` (macOS: adds `application:openURLs:` to winit's application
delegate, so photos opened from Finder, the Dock or Open With reach the app), `crates/libraw` (FFI into its C shim over LibRaw, opt-in, see Non-negotiables), and `apps/android`'s `#[unsafe(no_mangle)] android_main`. Every other
production crate root has `#![forbid(unsafe_code)]`. New unsafe need → isolated, well-tested helper crate:
`// SAFETY:` everywhere, safe API, safe fallback, and a line here naming it.
- Input-derived numbers are hostile: `get()` not `[i]`/`[a..b]`; checked/saturating math; no division by zero,
Expand Down
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ lcc-winspool = { path = "crates/winspool" }
lcc-winmsi = { path = "crates/winmsi" }
lcc-winjob = { path = "crates/winjob" }
lcc-firstclick = { path = "crates/firstclick" }
lcc-opendocs = { path = "crates/opendocs" }
lcc-android-host = { path = "crates/android-host" }
lcc-peer = { path = "crates/peer" }
lcc-sync = { path = "crates/sync" }
Expand Down
2 changes: 2 additions & 0 deletions apps/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ libraw = ["lcc-engine/libraw", "lcc-cli/libraw"]
# the command-line tool, run when the program is started as `<cli>` (`main`); its features follow
# the app's, so a build without HEIF leaves it out of the CLI too
lcc-cli = { path = "../cli", default-features = false }
# photos macOS hands the app from Finder, the Dock or Open With (a no-op elsewhere)
lcc-opendocs = { workspace = true }
# reading the Logi plugin package's version (`logi_plugin`) and the control-surface e2e test
lcc-surface = { workspace = true }
lcc-brand = { workspace = true }
Expand Down
54 changes: 51 additions & 3 deletions apps/app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ mod midi;
mod native_dialog;
#[cfg(target_os = "macos")]
mod native_menu;
mod reveal;
#[cfg(any(target_os = "linux", windows))]
mod screen_icc;
#[cfg(target_os = "macos")]
Expand Down Expand Up @@ -169,6 +170,8 @@ impl eframe::App for App {
}
fn raw_input_hook(&mut self, _ctx: &egui::Context, raw: &mut egui::RawInput) {
self.0.raw_input_hook(raw);
// after the hook, which replaces `dropped_files` with the control channel's drops
raw.dropped_files.extend(opened_as_dropped(lcc_opendocs::take()));
}
fn ui(&mut self, ui: &mut egui::Ui, frame: &mut eframe::Frame) {
self.0.perf.host_frame_ms = frame.info().cpu_usage.map(|s| f64::from(s) * 1000.0);
Expand Down Expand Up @@ -807,6 +810,10 @@ fn services(cc: &eframe::CreationContext<'_>, log_file: Option<&std::path::Path>
launch(open_url_command(url))
})),
reveal: Some(Box::new(|path: &str| {
// Linux/BSD: select the file in the file manager, never waiting for it (upstream #4653)
if cfg!(any(target_os = "linux", target_os = "freebsd")) {
return reveal::reveal_one(path);
}
let status = if cfg!(target_os = "macos") {
std::process::Command::new("open").args(["-R", path]).status()
} else if cfg!(target_os = "windows") {
Expand All @@ -819,6 +826,11 @@ fn services(cc: &eframe::CreationContext<'_>, log_file: Option<&std::path::Path>
.map_err(|e| e.to_string())
.and_then(|s| if s.success() || cfg!(target_os = "windows") { Ok(()) } else { Err(format!("reveal failed: {s}")) })
})),
reveal_many: if cfg!(any(target_os = "linux", target_os = "freebsd")) {
Some(Box::new(|paths: &[String]| reveal::reveal_files(paths)))
} else {
None
},
pick_files: picker!(|| {
file_dialog()
.add_filter_nocase(lcc_ui_egui::i18n::tr("Photos"), lcc_engine::import::EXTENSIONS)
Expand Down Expand Up @@ -1247,6 +1259,25 @@ fn launch_imports(args: &[String]) -> LaunchArgs {
launch_imports_in(args, cwd.as_deref(), home.as_deref())
}

/// A file the system asked the app to open (`lcc_opendocs`; macOS: Finder, the Dock, Open With),
/// handed to the UI as a file dropped on the window: imported like a drop, or held while no library
/// is open yet (`library_problem::hold_dropped`). Adapted from upstream #1204.
#[derive(Debug)]
struct OpenedFile(std::path::PathBuf);

impl egui::DroppedFile for OpenedFile {
fn path(&self) -> &std::path::Path {
&self.0
}
fn bytes(&self) -> Result<Vec<u8>, String> {
std::fs::read(&self.0).map_err(|e| e.to_string())
}
}

fn opened_as_dropped(paths: Vec<String>) -> impl Iterator<Item = egui::DroppedFileHandle> {
paths.into_iter().map(|p| std::sync::Arc::new(OpenedFile(p.into())) as egui::DroppedFileHandle)
}

/// What the launch arguments ask for: files and folders to import, a library to open (a library's `catalog.snap`
/// or folder, double-clicked in the file manager), and a notice for each argument
/// left alone.
Expand Down Expand Up @@ -1341,8 +1372,9 @@ fn panic_log_path(args: impl IntoIterator<Item = std::ffi::OsString>) -> Option<
/// skipped, as the parser takes them.
/// Whether the window looks for a newer release at start: only a session that keeps its settings, and not when
/// `--no-update-check` was given (Settings > General still decides within that).
/// `<PREFIX>_DISABLE_UPDATES` (a distro package) turns it off too (adapted from upstream #4663).
fn startup_update_check(keeps_settings: bool, no_update_check: bool) -> bool {
keeps_settings && !no_update_check
keeps_settings && !no_update_check && !lcc_engine::update::disabled_by_env()
}

fn in_memory_session(args: impl IntoIterator<Item = std::ffi::OsString>) -> bool {
Expand Down Expand Up @@ -1646,11 +1678,17 @@ fn run() -> eframe::Result {
b.with_x11();
}));
}
// macOS hands photos opened from Finder, the Dock or Open With to the running app, not as
// arguments; installed before the event loop exists, so the ones it was launched with arrive too
lcc_opendocs::install();
let started = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| {
eframe::run_native(
lcc_brand::DISPLAY_NAME,
options,
Box::new(move |cc| {
// opened files that arrive from now on wake the window, which takes them as drops
let opened_ctx = cc.egui_ctx.clone();
lcc_opendocs::set_waker(move || opened_ctx.request_repaint());
// the window's renderer is up (eframe calls this after creating it)
win_files_app.started(window_renderer);
came_up_app.store(true, std::sync::atomic::Ordering::Relaxed);
Expand Down Expand Up @@ -1867,7 +1905,7 @@ fn run() -> eframe::Result {
let started = started.unwrap_or_else(|_| Err(eframe::Error::AppCreation("the window's renderer panicked while starting".into())));
if let Err(e) = &started {
// the renderer never came up: start again, which tries the next one in the chain
if window_gpu::relaunch_after_failure(&win_files) {
if window_gpu::relaunch_after_failure(&win_files, lcc_opendocs::take()) {
log::error!("{} could not open its window with {}: {e}; trying the next renderer", lcc_brand::DISPLAY_NAME, window_renderer.name());
return Ok(());
}
Expand Down Expand Up @@ -1927,6 +1965,16 @@ fn startup_failed(error: &str, log_file: Option<&std::path::Path>) {
mod tests {
use super::*;

/// Files the system asks the app to open (macOS, `lcc_opendocs`) reach the UI as dropped files,
/// path for path and in order.
#[test]
fn opened_files_are_handed_over_as_drops() {
let dropped: Vec<_> = opened_as_dropped(vec!["/tmp/a b.arw".into(), "/tmp/c.heic".into()]).collect();
let paths: Vec<_> = dropped.iter().map(|f| f.path().to_path_buf()).collect();
assert_eq!(paths, [std::path::PathBuf::from("/tmp/a b.arw"), std::path::PathBuf::from("/tmp/c.heic")]);
assert_eq!(opened_as_dropped(Vec::new()).count(), 0);
}

fn os(args: &[&str]) -> Vec<std::ffi::OsString> {
args.iter().map(std::ffi::OsString::from).collect()
}
Expand Down Expand Up @@ -2694,7 +2742,7 @@ mod config_path_tests {
/// that keeps its settings looks.
#[test]
fn no_update_check_flag_disables_the_startup_check() {
assert!(startup_update_check(true, false));
assert_eq!(startup_update_check(true, false), !lcc_engine::update::disabled_by_env());
assert!(!startup_update_check(true, true));
assert!(!startup_update_check(false, false));
}
Expand Down
100 changes: 100 additions & 0 deletions apps/app/src/reveal.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
//! Revealing photos in the Linux/BSD file manager. Adapted from upstream #4653 (issues #4652,
//! #4658 there): a file is selected through `org.freedesktop.FileManager1.ShowItems` over D-Bus
//! (several files in one window), and only where that service is missing does the parent folder
//! open with `xdg-open`, which is spawned without waiting so the app never freezes until the file
//! manager window closes.

/// `file://` URI for `ShowItems`: every byte outside the unreserved set (and `/`) is
/// percent-encoded, so spaces and non-ASCII names survive the D-Bus call.
pub(crate) fn file_uri(path: &str) -> String {
const HEX: &[u8; 16] = b"0123456789ABCDEF";
let mut out = String::with_capacity(path.len().saturating_add(7));
out.push_str("file://");
for &byte in path.as_bytes() {
match byte {
b'A'..=b'Z' | b'a'..=b'z' | b'0'..=b'9' | b'-' | b'_' | b'.' | b'~' | b'/' => out.push(char::from(byte)),
_ => {
out.push('%');
out.push(HEX.get(usize::from(byte >> 4)).map_or('0', |&c| char::from(c)));
out.push(HEX.get(usize::from(byte & 0xF)).map_or('0', |&c| char::from(c)));
}
}
}
out
}

/// `ShowItems` on the running file manager (Linux: `zbus` is a Linux dependency). Managers
/// without `FileManager1` answer with an error and the caller falls back to `xdg-open`.
#[cfg(target_os = "linux")]
fn show_items(uris: &[String]) -> Result<(), String> {
let connection = zbus::blocking::connection::Builder::session()
.map_err(|e| e.to_string())?
.method_timeout(std::time::Duration::from_secs(2))
.build()
.map_err(|e| e.to_string())?;
let proxy =
zbus::blocking::Proxy::new(&connection, "org.freedesktop.FileManager1", "/org/freedesktop/FileManager1", "org.freedesktop.FileManager1")
.map_err(|e| e.to_string())?;
let startup_id = "";
proxy.call::<_, _, ()>("ShowItems", &(uris, startup_id)).map_err(|e| e.to_string())
}

#[cfg(not(target_os = "linux"))]
fn show_items(_: &[String]) -> Result<(), String> {
Err("no FileManager1 on this system".into())
}

/// Opens `dir` with `xdg-open` without waiting for it; the child is reaped on a thread so no
/// zombie is left behind.
fn xdg_open_dir(dir: &str) -> Result<(), String> {
let mut child = std::process::Command::new("xdg-open").arg(dir).spawn().map_err(|e| format!("xdg-open: {e}"))?;
std::thread::spawn(move || {
let _ = child.wait();
});
Ok(())
}

/// Reveals one path: a folder opens, a file is selected in its folder, falling back to opening
/// the folder.
pub(crate) fn reveal_one(path: &str) -> Result<(), String> {
let p = std::path::Path::new(path);
if p.is_dir() {
return xdg_open_dir(path);
}
if show_items(std::slice::from_ref(&file_uri(path))).is_ok() {
return Ok(());
}
let dir = p.parent().map(|d| d.to_string_lossy().to_string()).filter(|d| !d.is_empty()).unwrap_or_else(|| ".".into());
xdg_open_dir(&dir)
}

/// Reveals several files: one `ShowItems` call selects them all in one window; without the
/// service, the first file's folder opens, as a single reveal does.
pub(crate) fn reveal_files(paths: &[String]) -> Result<(), String> {
let Some(first) = paths.first() else { return Err("no photo selected".into()) };
if paths.len() > 1 {
let uris: Vec<String> = paths.iter().map(|path| file_uri(path)).collect();
if show_items(&uris).is_ok() {
return Ok(());
}
}
reveal_one(first)
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn file_uris_encode_for_show_items() {
assert_eq!(file_uri("/photos/IMG_0001.CR3"), "file:///photos/IMG_0001.CR3");
assert_eq!(file_uri("/home/Me/My Photos/IMG 1.jpg"), "file:///home/Me/My%20Photos/IMG%201.jpg");
assert_eq!(file_uri("/photos/café-étude.jpg"), "file:///photos/caf%C3%A9-%C3%A9tude.jpg");
assert_eq!(file_uri("/photos/a#b%c.jpg"), "file:///photos/a%23b%25c.jpg");
}

#[test]
fn revealing_nothing_is_an_error() {
assert!(reveal_files(&[]).is_err());
}
}
8 changes: 5 additions & 3 deletions apps/app/src/window_gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ pub fn check_pipeline(device: &wgpu::Device, build: impl FnOnce(&wgpu::Device))
/// The start failed (error or panic) before the window's renderer came up: start the app again,
/// which then tries the next renderer. `false`: not relaunched (it came up, nothing written to
/// disk, or the retries are used up).
pub fn relaunch_after_failure(files: &Files) -> bool {
pub fn relaunch_after_failure(files: &Files, opened: Vec<String>) -> bool {
if !files.armed() {
return false;
}
Expand All @@ -479,6 +479,8 @@ pub fn relaunch_after_failure(files: &Files) -> bool {
log::warn!("window: the renderer failed to start; starting again with the next one");
std::process::Command::new(exe)
.args(std::env::args_os().skip(1))
// files the system handed this launch (macOS: opened from Finder), so the next one imports them
.args(opened)
.env(lcc_brand::env_var(RETRY_VAR), (tries + 1).to_string())
.spawn()
.map_err(|e| log::error!("window: could not start again: {e}"))
Expand Down Expand Up @@ -543,7 +545,7 @@ mod tests {
// nothing written without a settings folder
let none = Files::new(None);
none.arm(dx);
assert!(!none.armed() && !relaunch_after_failure(&none));
assert!(!none.armed() && !relaunch_after_failure(&none, Vec::new()));
let _ = std::fs::remove_dir_all(&d);
}

Expand Down Expand Up @@ -633,7 +635,7 @@ mod tests {
let f = Files::new(Some(d.clone()));
assert_eq!(f.take_failed(), None);
f.arm(WindowRenderer::Glow);
assert!(!f.armed() && !relaunch_after_failure(&f));
assert!(!f.armed() && !relaunch_after_failure(&f, Vec::new()));
let _ = std::fs::remove_dir_all(&d);
}

Expand Down
3 changes: 3 additions & 0 deletions apps/cli/src/calibrate_lightroom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ fn probe_check_cmd(args: &[String]) -> Result<(), String> {
let (Some(probes), Some(exports)) = (probes, exports) else {
return Err("probe-check needs --probes DIR (from `probe`) and --exports DIR (Lightroom's exports of them)".into());
};
// the app's side of the comparison is its default render, so the camera's calibration and the
// installed profiles apply as they do in a render (they are installed by a session, and none is made here)
lcc_engine::camera_profiles::install_dcps();
let report = lcc_colourfit::probe::check(&probes, &exports).map_err(|e| e.to_string())?;
if let Some(path) = &out {
let text = serde_json::to_string_pretty(&report).map_err(|e| e.to_string())?;
Expand Down
11 changes: 9 additions & 2 deletions apps/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,15 @@ fn mcp(args: &[String]) -> Result<(), String> {
};
if !files.is_empty() {
let paths = expand_paths(&files);
let r = h.session.execute("library.import", &json!({"paths": paths})).map_err(|e| e.to_string())?;
eprintln!("{CLI} mcp: imported {} photo(s)", r.get("imported").and_then(Value::as_array).map_or(0, Vec::len));
// A folder with no photos yet still serves (photos come later through `import`);
// `library.import` refuses an empty list, which would end the server before it starts
// (adapted from upstream #4538).
if paths.is_empty() {
eprintln!("{CLI} mcp: no photos found in {}; nothing imported", files.join(", "));
} else {
let r = h.session.execute("library.import", &json!({"paths": paths})).map_err(|e| e.to_string())?;
eprintln!("{CLI} mcp: imported {} photo(s)", r.get("imported").and_then(Value::as_array).map_or(0, Vec::len));
}
}
Box::new(h)
}
Expand Down
29 changes: 29 additions & 0 deletions apps/cli/tests/mcp_empty_folder.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//! `<cli> mcp FOLDER` serves even when the folder holds no photos yet (adapted from upstream #4538).

use std::io::Write;
use std::process::{Command, Stdio};

#[test]
fn empty_folder_still_serves() {
let dir = std::env::temp_dir().join(format!("lcc-cli-test-{}", std::process::id())).join("mcp-empty-folder");
let _ = std::fs::remove_dir_all(&dir);
std::fs::create_dir_all(&dir).unwrap();
let mut child = Command::new(env!("CARGO_BIN_EXE_app-cli"))
.arg("mcp")
.arg(&dir)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()
.unwrap();
let mut input = child.stdin.take().unwrap();
input.write_all(b"{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"protocolVersion\":\"2025-06-18\",\"capabilities\":{},\"clientInfo\":{\"name\":\"test\",\"version\":\"1\"}}}\n").unwrap();
drop(input);
let out = child.wait_with_output().unwrap();
let stdout = String::from_utf8_lossy(&out.stdout);
let stderr = String::from_utf8_lossy(&out.stderr);
let _ = std::fs::remove_dir_all(&dir);
assert!(out.status.success(), "an empty folder must not stop the server: {stderr}");
assert!(stderr.contains("serving MCP on stdio"), "CLI must reach the MCP transport: {stderr}");
assert!(stdout.contains("\"id\":1") && stdout.contains("\"result\""), "initialize must be answered: {stdout}");
}
1 change: 1 addition & 0 deletions apps/web/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ fn services(originals: Originals, backend: Option<Backend>, files: Files, frozen
lcc_codecs::encode_png(&lcc_codecs::EncodeImage::rgba8(img), &lcc_codecs::EncodeMeta::default()).unwrap_or_default()
})),
reveal: None,
reveal_many: None,
log_file: None,
open_with: None,
open_all_with: None,
Expand Down
Loading