* fix(init): make JSONL auto-export opt-in
Default export.auto and export.git-add to false for new repos, make the init prompt opt-in, and update docs/tests to describe JSONL as an optional viewer/interchange/backup export rather than core sync behavior.
Fixes GH#4062
* refactor(auto-export): check commit before throttle
Move cheap Dolt commit change detection ahead of the auto-export throttle and extract the throttle decision into a tested helper. This keeps the default-off design while carrying the compatible part of Jeremy Longshore's GH#4061 refactor.
Based-on: 313e1f8258
Co-authored-by: jeremylongshore <jeremylongshore@users.noreply.github.com>
* docs: regenerate versioned CLI references
* docs: call out JSONL export opt-in change
---------
_codex-gpt-5.5-medium on behalf of CI Bot_
_codex-gpt-5.5-high on behalf of matt wilkie_
Co-authored-by: CI Bot <ci@beads.test>
15 lines
645 B
Text
15 lines
645 B
Text
# Test auto-export: init must not prime throttle before any issues exist.
|
|
# Regression guard for GH#2973: bd init used to write an empty issues.jsonl
|
|
# and save export-state.json timestamp, causing the first real `bd create`
|
|
# to be throttled for up to export.interval seconds (GH#3204 review).
|
|
bd init --prefix test
|
|
stdout 'initialized successfully'
|
|
! exists .beads/issues.jsonl
|
|
! exists .beads/export-state.json
|
|
|
|
# First real write must export immediately, not wait for throttle to expire.
|
|
bd config set export.auto true
|
|
bd create 'First issue'
|
|
exists .beads/issues.jsonl
|
|
grep 'First issue' .beads/issues.jsonl
|
|
exists .beads/export-state.json
|