Files
coucou/scripts/test-claude-host.sh
santiagoOrozco-encoraandClaude Opus 5.5 a5e52d7f8b Show Claude Code sessions from terminals (Warp, Terminal, iTerm…)
- ClaudeHost: recognise terminal sessions from the hook's term_program /
  bundle_id and route them to the Claude Code pill (AgentTask.hostApp).
- The pill says "Claude Code" and "Open <terminal>" brings it forward;
  "Handled in …" notes name the right app.
- New setting, off by default: answer terminal sessions' questions and
  permissions in the notch. Off, the terminal asks itself straight away.
- Tests: scripts/test-claude-host.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 21:55:25 -06:00

9 lines
305 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-claude-host.XXXXXX")"
trap 'rm -rf "$TEST_DIR"' EXIT
swiftc NotchBuddy/Sources/App/ClaudeHost.swift \
tests/ClaudeHostTests.swift -o "$TEST_DIR/claude-host-tests"
"$TEST_DIR/claude-host-tests"