@@ -1780,7 +1780,7 @@ bd dep [issue-id] [flags]
17801780
17811781```
17821782 -b, --blocks string Issue ID that this issue blocks (shorthand for: bd dep add <blocked> <blocker>)
1783- --no-cycle-check Skip cycle detection after adding (use for bulk wiring — run 'bd dep cycles' to verify afterwards)
1783+ --no-cycle-check Skip per-edge cycle checks for speed (bulk wiring); bulk --file adds still run one final whole-graph check before commit
17841784```
17851785
17861786#### bd dep add
@@ -1825,7 +1825,7 @@ bd dep add [issue-id] [depends-on-id] [flags]
18251825 --blocked-by string Issue ID that blocks the first issue (alternative to positional arg)
18261826 --depends-on string Issue ID that the first issue depends on (alias for --blocked-by)
18271827 --file string Read dependency edges from JSONL file, or '-' for stdin
1828- --no-cycle-check Skip cycle detection after adding (use for bulk wiring — run 'bd dep cycles' to verify afterwards)
1828+ --no-cycle-check Skip per-edge cycle checks for speed (bulk wiring); bulk --file adds still run one final whole-graph check before commit
18291829 -t, --type string Dependency type (blocks|tracks|related|parent-child|discovered-from|until|caused-by|validates|relates-to|supersedes) (default "blocks")
18301830```
18311831
@@ -2427,6 +2427,14 @@ Timestamps (created_at, updated_at, started_at, closed_at) are preserved
24272427when present in the JSONL and otherwise filled in by the importer. The
24282428legacy "wisp" boolean is accepted as an alias for "ephemeral".
24292429
2430+ By default rows whose updated_at is older than the local issue's are
2431+ skipped (reported as stale_skipped_ids), so a routine import never rolls
2432+ issues back. The guard is also enforced inside the upsert itself, so a
2433+ local update that lands while the import is running is preserved rather
2434+ than overwritten. To deliberately restore an older snapshot, pass
2435+ --allow-stale, which imports every row even when it overwrites newer
2436+ local state.
2437+
24302438EXAMPLES:
24312439 bd import # Import from configured import.path
24322440 bd import backup.jsonl # Import from a specific file
@@ -2435,6 +2443,7 @@ EXAMPLES:
24352443 cat issues.jsonl | bd import - # Pipe JSONL from another tool
24362444 bd import --dry-run # Show what would be imported
24372445 bd import --dedup # Skip issues with duplicate titles
2446+ bd import --allow-stale old.jsonl # Restore an older snapshot (overwrites newer local rows)
24382447 bd import --json # Structured output with created and skipped IDs
24392448
24402449```
@@ -2444,6 +2453,7 @@ bd import [file|-] [flags]
24442453** Flags:**
24452454
24462455```
2456+ --allow-stale Import rows even when older than the local issue (required to restore an older snapshot)
24472457 --dedup Skip lines whose title matches an existing open issue
24482458 --dry-run Show what would be imported without importing
24492459 -i, --input string Read JSONL from a specific file
0 commit comments