diff --git a/CLAUDE.md b/CLAUDE.md index e929d4ebaa..8aef090814 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -86,7 +86,7 @@ Cmd::new("gh").args(["pr", "list"]).run()?; // no context for standalone tools ### Git-Discovery Env Vars Follow Who Chose the Cwd -Git resolves `GIT_DIR`/`GIT_WORK_TREE` (and the rest of `INHERITED_GIT_PATH_VARS`) before walking up from the cwd, so an inherited value silently overrides a child's working directory. **Any spawn site that relocates a user command into a `wt`-chosen worktree — hooks, `wt step for-each`, the `--execute` no-integration fallback — must scrub these vars** (`Cmd::scrub_git_discovery_env` or `scrub_git_discovery_env_vars`); children running in the user's own context (aliases, `commit.generation`) and `wt`'s internal git plumbing keep the inherited context (absolutized). Full site classification and rationale: `scrub_git_discovery_env_vars` in `src/shell_exec.rs`. +Git resolves `GIT_DIR`/`GIT_WORK_TREE` (and the rest of `INHERITED_GIT_PATH_VARS`) before walking up from the cwd, so an inherited value silently overrides a child's working directory. **Any spawn site that relocates a user command into a `wt`-chosen worktree — hooks, `wt step for-each`, the `--execute` program — must scrub these vars** (`Cmd::scrub_git_discovery_env` or `scrub_git_discovery_env_vars`); children running in the user's own context (aliases, `commit.generation`) and `wt`'s internal git plumbing keep the inherited context (absolutized). Full site classification and rationale: `scrub_git_discovery_env_vars` in `src/shell_exec.rs`. ### Real-time Output Streaming diff --git a/src/commands/list/ci_status/gitlab.rs b/src/commands/list/ci_status/gitlab.rs index b3d0578f44..6e07e18d4c 100644 --- a/src/commands/list/ci_status/gitlab.rs +++ b/src/commands/list/ci_status/gitlab.rs @@ -296,6 +296,13 @@ pub(super) fn detect_gitlab_pipeline( }) } +/// The `author` object nested in a `glab mr list` entry. +#[derive(Debug, Default, Deserialize)] +struct GitLabMrAuthor { + #[serde(default)] + username: String, +} + /// Basic MR info from `glab mr list --output json`. /// /// Note: `glab mr list` does NOT return `head_pipeline` or `pipeline` fields. @@ -303,12 +310,6 @@ pub(super) fn detect_gitlab_pipeline( /// /// We include `source_project_id` for client-side filtering by source project. /// See the `# Filtering Strategy` docs on [`detect_gitlab`] for why we filter by source, not by author. -#[derive(Debug, Default, Deserialize)] -struct GitLabMrAuthor { - #[serde(default)] - username: String, -} - #[derive(Debug, Deserialize)] struct GitLabMrListEntry { /// The internal MR ID (used to fetch full details via `glab mr view `) diff --git a/src/md_help.rs b/src/md_help.rs index cc29e80978..c59e70a66e 100644 --- a/src/md_help.rs +++ b/src/md_help.rs @@ -453,7 +453,7 @@ fn render_inline_formatting(line: &str) -> String { /// Add colors to status symbols in help text (matching wt list output colors) fn colorize_status_symbols(text: &str) -> String { - // Define semantic styles matching src/commands/list/model.rs StatusSymbols::styled_symbols + // Define semantic styles matching src/commands/list/model/status_symbols.rs StatusSymbols::styled_symbols let error = Style::new().fg_color(Some(AnsiStyleColor::Ansi(AnsiColor::Red))); let warning = Style::new().fg_color(Some(AnsiStyleColor::Ansi(AnsiColor::Yellow))); let success = Style::new().fg_color(Some(AnsiStyleColor::Ansi(AnsiColor::Green)));