We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8423a42 commit ced853cCopy full SHA for ced853c
1 file changed
pre-commit.sh
@@ -75,6 +75,18 @@ if ! echo "$STREAM_RESPONSE" | grep -q "chat.completion.chunk"; then
75
fi
76
echo "Streaming tool call: OK"
77
78
+# Test OpenCode integration
79
+echo ""
80
+echo "Testing OpenCode integration..."
81
+OPENCODE_OUTPUT=$(timeout 30 opencode run --model localcode-afm/afm "echo hello" 2>&1 || true)
82
+
83
+if ! echo "$OPENCODE_OUTPUT" | grep -q "permission requested"; then
84
+ echo "FAILED: OpenCode not showing approval UI"
85
+ echo "Output: $OPENCODE_OUTPUT"
86
+ exit 1
87
+fi
88
+echo "OpenCode integration: OK"
89
90
echo ""
91
echo "All checks passed!"
92
0 commit comments