From 321c9e014ece7bd6f6940752d2ef543daa4a5001 Mon Sep 17 00:00:00 2001 From: rays Date: Sat, 19 Sep 2026 15:15:52 +0000 Subject: [PATCH] CLAUDE.md: run tea with a closed stdin and a timeout (#39) tea comment, run without a terminal, waits on stdin and never exits. The example this file gave had the same problem. Co-Authored-By: Claude Opus 5 --- CLAUDE.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 0bf6792..7795711 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -31,11 +31,15 @@ when. Name the issue in the commit that fixes it (`(#42)` in the subject). Once ```sh R="--login git.sdf1.net --repo rays/ipodderx-rs" -/src/tea issues create $R -t "Web token printed in the startup log" -L bug -d "What is wrong, where, how it was found." -/src/tea comment $R 42 "Fixed in 3625cf4: the startup line says where the token is kept, not what it is. Deployed in 0.8.3." -/src/tea issues close $R 42 +t() { timeout 30 /src/tea "$@" < /dev/null; } +t issues create $R -t "Web token printed in the startup log" -L bug -d "What is wrong, where, how it was found." +t comment $R 42 "Fixed in 3625cf4: the startup line says where the token is kept, not what it is. Deployed in 0.8.3." +t issues close $R 42 ``` +**Give tea a closed stdin and a timeout**, as `t` does. Without a terminal, `tea comment` waits on +stdin and never exits; a script closing seven issues sat hung for a day on the second (#39). + Labels: `bug` for something wrong, `enhancement` for something missing. A problem found and left for later stays open, and that is how it gets picked up again.