mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
The Cursor pill reads "Key not configured" with a red dot, and the Codex pill does the same. Neither takes a key: Cursor sessions are Claude Code running in Cursor's integrated terminal, and Codex has its own hooks installer in Settings. Both were left on an isConfigured branch that returns false with a "coming soon" comment, from back when the two pills were placeholders — no pill is marked comingSoon any more. Someone who has installed the hooks and watches sessions arrive is still told a key is missing (#72). The Claude Code pill has the mirror-image problem: with the hooks in, its idle card says "Connected · loading…", and nothing ever loads there, because an arriving session replaces that card. Report the state that actually decides whether these pills work: each one now follows its own hooks and says "Hooks installed" or "Hooks not installed", the way the Gemini and Antigravity pills already do. Service pills keep "Connected · loading…", where something is in fact loading. The ~/.claude/settings.json check moves out of the view and into HookServer.claudeHooksInstalled(), beside the Gemini, Antigravity and Codex equivalents, so the Cursor pill can share it. Its JSON predicate is a plain function in its own file, with a test over fixtures rather than the real settings file.
9 lines
326 B
Bash
Executable File
9 lines
326 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-claude-hooks.XXXXXX")"
|
|
trap 'rm -rf "$TEST_DIR"' EXIT
|
|
swiftc NotchBuddy/Sources/App/ClaudeHookDetection.swift \
|
|
tests/ClaudeHookDetectionTests.swift -o "$TEST_DIR/claude-hooks-tests"
|
|
"$TEST_DIR/claude-hooks-tests"
|