Skip to content

Accept Octopus free-session events with code: null - #54

Merged
dandwhelan merged 2 commits into
mainfrom
fix/octopus-free-session-null-code
Aug 29, 2026
Merged

dandwhelan merged 2 commits into
mainfrom
fix/octopus-free-session-null-code

Conversation

@dandwhelan

Copy link
Copy Markdown
Owner

Cherry-picks one fix from upstream v8.54.1 (cef15cf0, upstream springfall2008#4837 for issue springfall2008#4835). The rest of v8.54.1 is not taken.

The bug

fetch_octopus_sessions() required a truthy code before it would build a free slot:

if start and end and code:

Auto-joined events — Weekend Happy Hours is the live example — publish code: null. Only "available to join" events carry a code, so every auto-joined free session was silently dropped and never reached the plan. Two sibling code paths in the same function already gate on start/end alone; this one now matches them.

code was never used downstream (the slot only carries start/end/rate), so dropping the requirement is safe. It is kept for the diagnostic log, falling back to the event id when absent.

Tests

tests/test_saving_session.py gains test_octopus_free_session_null_code, registered as octopus_free_session_null_code. Run in a throwaway container against this branch:

octopus_free_session_null_code  PASSED
saving_session                  PASSED
saving_session_null             PASSED
saving_session_bad_slot         PASSED

Version bumped to v712.27 so the release ships it.

chalfontchubby and others added 2 commits August 29, 2026 22:40
…008#4835)

fetch_octopus_sessions() required a truthy code for octopus_free_session
events, but auto-joined events like Weekend Happy Hours publish code:
null - only "available to join" events carry one. Two sibling code
paths already gate on start/end alone; this one now matches. code was
never used downstream (the resulting slot only carries start/end/rate),
so dropping the requirement is safe - kept for the diagnostic log only,
falling back to the event id when absent.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
(cherry picked from commit cef15cf)
@dandwhelan
dandwhelan merged commit 9be59b0 into main Aug 29, 2026
2 checks passed
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.

2 participants