Steve Yegge
012bed1068
Fix GH#367: bd import defaulting to stdin is confusing
Changes:
1. Add TTY detection to bd import - prevents silent hang when run
interactively without arguments. Shows helpful usage message instead.
2. Fix misleading error messages - change "Run 'bd import'" to
"Run 'bd sync --import-only'" or explicit file path throughout.
Technical details:
- Added golang.org/x/term dependency for IsTerminal()
- When stdin is a TTY and no -i flag: show usage and exit
- When stdin is piped: works as before (supports script pipelines)
- Preserved all legitimate stdin uses:
* python gh2jsonl.py --repo owner/repo | bd import
* python md2jsonl.py feature.md | bd import
* git show HEAD:.beads/beads.jsonl | bd import -i /dev/stdin
Updated error messages in:
- cmd/bd/staleness.go - main "out of sync" error
- cmd/bd/sync.go - merge completion suggestions
- internal/rpc/server_export_import_auto.go - daemon warnings
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 11:15:34 -08:00
..
2025-11-22 00:11:45 -08:00
2025-11-22 00:06:13 -08:00
2025-11-21 21:29:43 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 23:34:22 -08:00
2025-11-21 19:30:48 -05:00
2025-11-21 19:30:48 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 22:17:26 -05:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 16:13:18 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 19:21:05 -05:00
2025-11-21 15:51:07 -05:00
2025-11-21 20:08:55 -05:00
2025-11-05 21:04:00 -08:00
2025-11-21 19:32:45 -05:00
2025-11-21 14:40:22 -05:00
2025-11-20 21:57:23 -05:00
2025-11-22 18:17:19 -08:00
2025-11-22 18:17:19 -08:00
2025-11-22 10:59:40 -08:00
2025-11-22 10:59:40 -08:00
2025-11-20 21:57:23 -05:00
2025-11-21 19:32:45 -05:00
2025-11-21 19:32:45 -05:00
2025-11-20 08:13:06 -08:00
2025-11-22 16:57:23 -08:00
2025-11-21 14:40:22 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 23:34:22 -08:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 23:09:47 -08:00
2025-11-20 21:57:23 -05:00
2025-11-22 00:11:45 -08:00
2025-11-21 18:53:34 -05:00
2025-11-21 19:01:42 -05:00
2025-11-21 16:14:30 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 14:40:22 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 20:08:55 -05:00
2025-11-22 00:11:45 -08:00
2025-11-22 00:11:45 -08:00
2025-11-17 10:12:46 -07:00
2025-11-20 21:57:23 -05:00
2025-11-21 23:09:47 -08:00
2025-11-21 14:40:22 -05:00
2025-11-21 14:40:22 -05:00
2025-11-23 11:15:34 -08:00
2025-11-20 21:57:23 -05:00
2025-11-21 23:34:22 -08:00
2025-11-21 23:34:22 -08:00
2025-11-21 14:40:22 -05:00
2025-11-21 16:11:56 -05:00
2025-11-21 11:40:37 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 15:51:07 -05:00
2025-11-21 21:57:23 -05:00
2025-11-21 23:34:22 -08:00
2025-11-21 19:32:45 -05:00
2025-11-20 21:57:23 -05:00
2025-11-22 16:49:29 -08:00
2025-11-21 23:34:22 -08:00
2025-11-15 12:52:34 -08:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 20:52:18 -05:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 23:34:22 -08:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 19:01:42 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-21 19:32:45 -05:00
2025-11-21 19:32:45 -05:00
2025-11-21 19:32:45 -05:00
2025-11-21 22:46:12 -05:00
2025-11-22 00:11:45 -08:00
2025-11-12 10:48:36 -08:00
2025-11-21 22:17:26 -05:00
2025-11-21 15:51:07 -05:00
2025-11-20 21:57:23 -05:00
2025-11-23 11:15:34 -08:00
2025-11-21 23:22:12 -08:00
2025-11-20 21:57:23 -05:00
2025-11-21 14:40:22 -05:00
2025-11-21 23:34:22 -08:00
2025-11-22 18:17:19 -08:00
2025-11-23 11:15:34 -08:00
2025-11-20 21:57:23 -05:00
2025-11-21 16:14:30 -05:00
2025-11-20 21:57:23 -05:00
2025-11-22 00:06:13 -08:00