Skip to content

fix(hook): support copilot ide terminal tool - #2574

Closed
YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2443-copilot-ide-run-terminal
Closed

YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2443-copilot-ide-run-terminal

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • recognize JetBrains Copilot toolName: "run_in_terminal" camelCase payloads
  • emit top-level permissionDecision: "deny" with an RTK rewrite suggestion for IDE terminal commands
  • keep Copilot CLI toolName: "bash" on the existing transparent modifiedArgs path, and leave non-terminal IDE tools silent

Fixes #2443

Verification

  • cargo +1.93.0 fmt --check
  • git diff --check
  • cargo +1.93.0 test hook_cmd -- --nocapture
  • cargo +1.93.0 clippy --all-targets
  • cargo +1.93.0 test --all -- --skip small_grep_not_worse_than_plain
  • CLI smoke: JetBrains run_in_terminal payload returns top-level deny with rtk git status suggestion
  • CLI smoke: get_terminal_output payload stays silent
  • CLI smoke: camelCase bash payload still returns modifiedArgs

@KuSh

KuSh commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Thank you for working on this. The same fix landed on develop in #3093, merged 2026-07-26 (commit 1d6798d), which adds a dedicated CopilotIde format for the camelCase run_in_terminal payload, returns a top-level deny with the rtk rewrite as the reason because the IDE host ignores modifiedArgs, keeps Copilot CLI's transparent bash path, and stays silent on deferred or non-terminal tools. The code on develop matches this PR closely, including the deny reason text, and it also covers the powershell tool name. Closing as already covered, and please comment or reopen if the JetBrains plugin still no-ops for you on a current build.

@KuSh KuSh closed this Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rtk hook copilot no-op in JetBrains/IntelliJ Copilot plugin — camelCase run_in_terminal not matched, and IDE host only honors permissionDecision: deny

2 participants