From 0a94f7497d6c91368b47381a6c8be8e61b81fc93 Mon Sep 17 00:00:00 2001 From: Michael Uloth Date: Sat, 23 May 2026 05:11:58 +0000 Subject: [PATCH 1/2] ui/cli: fix stale Commands enum example in README #57 The example showed a Sync variant with a slug parameter that never existed in the codebase. The actual Commands enum has Fetch and Status. Replace the stale example with the correct variants to match main.rs. --- ui/cli/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cli/README.md b/ui/cli/README.md index 407332c..8b1d2d3 100644 --- a/ui/cli/README.md +++ b/ui/cli/README.md @@ -18,7 +18,7 @@ struct Cli { #[derive(Subcommand)] enum Commands { - Sync { slug: Option }, + Fetch, Status, } From ad0a209a1ba772fe3b73c653abb23d99e9ecd278 Mon Sep 17 00:00:00 2001 From: Michael Uloth Date: Sun, 24 May 2026 20:35:03 -0400 Subject: [PATCH 2/2] tui/investigations: gate CurrentDir behind private feature WorktreeSpec::CurrentDir is only used by the MediaBlocked investigation, which is behind #[cfg(feature = "private")]. Without the same gate on the variant itself, clippy reports dead_code when building without the private feature, which fails CI (-D warnings). --- ui/tui/src/investigations/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/tui/src/investigations/mod.rs b/ui/tui/src/investigations/mod.rs index ca64588..25764c4 100644 --- a/ui/tui/src/investigations/mod.rs +++ b/ui/tui/src/investigations/mod.rs @@ -33,7 +33,7 @@ pub(crate) enum WorktreeSpec { /// `project` is the directory name under `~/.hub/repos/`. Ephemeral { project: String }, /// Use the process's current directory (MediaBlocked, last-resort fallback). - #[allow(dead_code)] + #[cfg(feature = "private")] CurrentDir, } @@ -224,6 +224,7 @@ async fn resolve_worktree( ); Ok((worktree, Some(cleanup))) } + #[cfg(feature = "private")] WorktreeSpec::CurrentDir => { let cwd = std::env::current_dir().context("Cannot determine working directory")?; Ok((cwd, None))