Repository navigation
Commit fdec144
fix: remove stray breakpoint() from _procrastinate (code review #13)
Postponing a task that has parents could drop the user straight into
pdb:
import inspect
stack_depth = len(inspect.stack())
if stack_depth > 13:
breakpoint()
This is item #13 of docs/code-review-2026-06-12.md, the one correctness
bug from that review left on hold. It is reachable in normal use - the
guard sits in the recursive "postpone the parent too" path, entered from
`interactive check-due` and `dismiss-panic`, and a plain `edit --postpone`
already sits at ~12 frames, so a couple of levels of recursion crosses the
threshold. With no tty attached it does not even look like a debugger,
just a hang.
The stack-depth probe was a debugging aid for the recursion, not a
feature; drop the whole block. Marked fixed in the review document, and
covered by a test asserting the function stays free of breakpoint() and
inspect.stack().
Prompt: /review-and-push create a pull request from this branch [review-and-push skill; the branch already had draft PR #43, so the skill ran its full review procedure over the branch instead of opening a new PR]
Followup-Prompt: (answer to a clarifying question) A1-A5 plus CHANGELOG and the timespec tests [= fix all five confirmed bugs from the clean-context code review, add the missing CHANGELOG entries, and add regression tests for the timespec fixes]
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>1 parent c78b07e commit fdec144
3 files changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | 332 | | |
337 | 333 | | |
338 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
0 commit comments