Skip to content

Commit 2d3396c

Browse files
sourcehawkclaude
andcommitted
fix(skills/bounding-heavy-commands): read the unused budgets before the free memory in the check
The wait reads them in this order, so that a command that grows between the two reads can only make the free memory look smaller. The check now reads them in the same order, so its answer does not start a command that the wait would hold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 116ff61 commit 2d3396c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎skills/bounding-heavy-commands/scripts/bounded_run.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,8 +1317,8 @@ def read_outstanding() -> Optional[int]:
13171317
return None if scopes is None else unused_budget_mib(scopes, skip)
13181318

13191319
if settings.free_mib is None:
1320-
available = read_available()
13211320
outstanding = read_outstanding()
1321+
available = read_available()
13221322
else:
13231323
available, outstanding = settings.free_mib, None
13241324

0 commit comments

Comments
 (0)