We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e8e1a commit 616bb70Copy full SHA for 616bb70
1 file changed
plugins/warp/scripts/on-permission-request.sh
@@ -15,7 +15,7 @@ TOOL_INPUT=$(echo "$INPUT" | jq -c '.tool_input // {}' 2>/dev/null)
15
[ -z "$TOOL_INPUT" ] && TOOL_INPUT='{}'
16
17
# Build a human-readable summary
18
-TOOL_PREVIEW=$(echo "$INPUT" | jq -r '.tool_input | if .command then .command elif .file_path then .file_path else (tostring | .[0:80]) end // ""' 2>/dev/null)
+TOOL_PREVIEW=$(echo "$INPUT" | jq -r '(.tool_input | if .command then .command elif .file_path then .file_path else (tostring | .[0:80]) end) // ""' 2>/dev/null)
19
SUMMARY="Wants to run $TOOL_NAME"
20
if [ -n "$TOOL_PREVIEW" ]; then
21
if [ ${#TOOL_PREVIEW} -gt 120 ]; then
0 commit comments