Skip to content

Commit 9c2a26a

Browse files
author
Yogthos
committed
fix(perm): remove duplicate overlay lines and dead match arm
- Remove leftover 'tool:' and 'args:' overlay lines that were doubling the permission dialog content alongside the new contextual labels (path:/command:/task:/url:/mcp:/args:) - Remove dead _ if tool.starts_with('mcp_tool') arm — the literal 'mcp_tool' match above already catches all MCP tools
1 parent c4d02aa commit 9c2a26a

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/ui/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,9 +3616,6 @@ pub async fn run_interactive(
36163616
};
36173617
overlay.push((arg_label, theme::perm()));
36183618
overlay.push((String::new(), theme::perm()));
3619-
overlay.push((format!("tool: {}", safe_tool), theme::perm()));
3620-
overlay.push((format!("args: {}", safe_input), theme::perm()));
3621-
overlay.push((String::new(), theme::perm()));
36223619
overlay.push((
36233620
"[y] allow once [a] allow always [n] deny [ESC] abort"
36243621
.to_string(),
@@ -4810,8 +4807,6 @@ fn suggest_pattern(tool: &str, input: &str) -> String {
48104807
"glob" | "repo_overview" | "skill" | "memory" | "write_todo_list" | "lsp" => {
48114808
"**".to_string()
48124809
}
4813-
// Plugin tools — allow by tool name prefix, default to **.
4814-
_ if tool.starts_with("mcp_tool") => PLACEHOLDER.to_string(),
48154810
_ => PLACEHOLDER.to_string(),
48164811
}
48174812
}

0 commit comments

Comments
 (0)