Skip to content

Commit 5a7588e

Browse files
committed
Bump interactive add cast helper timings closer to the original pacing
The original human-driven recording paused ~1.3-1.4s before accepting a default, ~0.15-1.1s between tree navigation steps, and ~2.3s while reading the source-path tree before accepting the repo root. Widen the helper's delays to match that cadence instead of the much brisker defaults used for the first automated pass. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018L8LELgMvNRvxVPWGGhzFC
1 parent 7a0e5ab commit 5a7588e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

doc/generate-casts/interactive_add_helper.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232

3333
import pexpect
3434

35-
_PRE_DELAY = 0.6 # pause before pressing a key, to simulate "thinking"
36-
_STEP_DELAY = 0.3 # pause between arrow-key presses while browsing a tree
37-
_CONFIRM_DELAY = 0.6 # pause before the Enter that accepts a tree pick
35+
_PRE_DELAY = 1.3 # pause before pressing a key, to simulate "thinking"
36+
_STEP_DELAY = 0.35 # pause between arrow-key presses while browsing a tree
37+
_CONFIRM_DELAY = 0.9 # pause before the Enter that accepts a tree pick
38+
_READ_DELAY = 1.8 # longer pause where the original recording lingers to read
3839
_PUMP_SLICE = 0.02 # granularity for draining/mirroring output while paused
3940

4041
DOWN = "\x1b[B"
@@ -96,7 +97,7 @@ def _drive_wizard(child: pexpect.spawn) -> None:
9697
_press(child, ENTER, delay=_CONFIRM_DELAY)
9798

9899
child.expect("Esc skip") # source-path tree browser has been drawn
99-
_press(child, ENTER, delay=_PRE_DELAY) # accept "." (fetch whole repo)
100+
_press(child, ENTER, delay=_READ_DELAY) # accept "." (fetch whole repo)
100101

101102
child.expect("Space toggle") # ignore tree browser has been drawn
102103
_navigate(child, 5) # . -> .settings -> build -> cmake -> docs -> examples

0 commit comments

Comments
 (0)