From 158f387bc022fabf53b4529a362e11b661efb82e Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Apr 2026 21:19:01 +0000 Subject: [PATCH] test(cli): wire --secret-backend=plaintext into dm ghost identity init dm-03 and dm-04 spawn a throwaway "ghost" identity by calling $AMY_BIN directly (not through amy_a / amy_d), so they missed the plaintext backend flag added in the previous commit and were failing with "No TTY and no passphrase source" on headless CI. https://claude.ai/code/session_01SqdMfLdXvb3GskFLcEj739 --- cli/tests/dm/tests-dm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/tests/dm/tests-dm.sh b/cli/tests/dm/tests-dm.sh index 51e1f448b..f8f81ddd8 100644 --- a/cli/tests/dm/tests-dm.sh +++ b/cli/tests/dm/tests-dm.sh @@ -91,7 +91,7 @@ test_03_dm_send_rejects_no_inbox() { # Generate a throwaway identity but do NOT publish its kind:10050. local tmpdir; tmpdir=$(mktemp -d "${STATE_DIR}/ghost.XXXXXX") local ghost_out ghost_npub - ghost_out=$("$AMY_BIN" --data-dir "$tmpdir" init) || { + ghost_out=$("$AMY_BIN" --data-dir "$tmpdir" --secret-backend plaintext init) || { record_result "$id" fail "ghost init failed"; rm -rf "$tmpdir"; return } ghost_npub=$(printf '%s' "$ghost_out" | jq -r '.npub') @@ -121,7 +121,7 @@ test_04_dm_send_allow_fallback() { # publish should succeed even though the ghost has no 10050. local tmpdir; tmpdir=$(mktemp -d "${STATE_DIR}/ghost.XXXXXX") local ghost_out ghost_npub - ghost_out=$("$AMY_BIN" --data-dir "$tmpdir" init) || { + ghost_out=$("$AMY_BIN" --data-dir "$tmpdir" --secret-backend plaintext init) || { record_result "$id" fail "ghost init failed"; rm -rf "$tmpdir"; return } ghost_npub=$(printf '%s' "$ghost_out" | jq -r '.npub')