Skip to content

fix: honor rx field-log --limit 0 - #11

Closed
Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/rx-field-log-limit-zero
Closed

Pitchfork-and-Torch wants to merge 2 commits into
mainfrom
cook/rx-field-log-limit-zero

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown
Owner

Bug

list_field_log(..., limit=0) used lines[-max(1, limit):], so skycache rx log --list --limit 0 still returned one row.

Distinct from prior cooks: ≠ #5 integrity --record, #6 disaster-drill render, #7 DTN corrupt queue, #8 pack-freshness sample limit, #9 handoff export --limit 0, #10 gateway receipts --limit 0.

Fix

Treat limit <= 0 as an empty list (same pattern as gateway receipts / handoff export).

Test

  • python3 -m pytest tests/test_rx_field_log_limit.py -q

Pitchfork-and-Torch and others added 2 commits September 17, 2026 22:47
…t, custody, USB mule v2, mesh hop-forward sim, not Starlink, not RFC 9171, not free commercial broadband.
list_field_log used max(1, limit), so --limit 0 still returned one row.
Match gateway receipts / handoff export: limit<=0 means empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant