Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/core/telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ fn detect_hook_type() -> String {
let checks = [
(claude_dir.join("hooks/rtk-rewrite.sh"), "claude"),
(claude_dir.join("hooks/rtk-rewrite.json"), "claude"),
(home.join(".gemini/hooks/rtk-hook.sh"), "gemini"),
(home.join(".gemini/antigravity-cli/hooks/rtk-hook-gemini.sh"), "gemini"),
(home.join(".codex/AGENTS.md"), "codex"),
(home.join(".cursor/hooks/rtk-rewrite.json"), "cursor"),
];
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub const OPENCODE_PLUGIN_FILE: &str = "rtk.ts";

pub const CURSOR_DIR: &str = ".cursor";
pub const CODEX_DIR: &str = ".codex";
pub const GEMINI_DIR: &str = ".gemini";
pub const GEMINI_DIR: &str = ".gemini/antigravity-cli";

pub const GITHUB_DIR: &str = ".github";
pub const COPILOT_HOOK_FILE: &str = "rtk-rewrite.json";
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3659,7 +3659,7 @@ pub fn run_gemini(
write_if_changed(&gemini_md_path, RTK_SLIM, GEMINI_MD, ctx)?;
}

// 3. Patch ~/.gemini/settings.json
// 3. Patch ~/.gemini/antigravity-cli/settings.json
patch_gemini_settings(&gemini_dir, &hook_path, patch_mode, ctx)?;

if dry_run {
Expand All @@ -3675,7 +3675,7 @@ pub fn run_gemini(
Ok(())
}

/// Patch ~/.gemini/settings.json with the BeforeTool hook
/// Patch ~/.gemini/antigravity-cli/settings.json with the BeforeTool hook
fn patch_gemini_settings(
gemini_dir: &Path,
hook_path: &Path,
Expand Down