Skip to content

Drop error_report from get_pro_status - #112

Merged
jagerman merged 3 commits into
session-foundation:devfrom
jagerman:drop-error-report
Aug 3, 2026
Merged

Drop error_report from get_pro_status#112
jagerman merged 3 commits into
session-foundation:devfrom
jagerman:drop-error-report

Conversation

@jagerman

@jagerman jagerman commented Aug 3, 2026

Copy link
Copy Markdown
Member

The backend is dropping this field and libsession follows. It carried no actionable information: a single count of "some number of backend errors happened at some unspecified past time", with no what, no when, and nothing a client could do in response. Parsing it only added a way for the response to fail.

jagerman and others added 3 commits August 3, 2026 14:38
The backend is dropping this field and libsession follows. It carried no
actionable information: a single count of "some number of backend errors
happened at some unspecified past time", with no what, no when, and
nothing a client could do in response. Parsing it only added a way for
the response to fail.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the manual skip_until + consume_string_view + explicit size
checks with require<>/require_span<>/maybe<>, which fold presence and
size/type validation into the accessor. Build the verification buffer
with reserve+insert instead of resize+memcpy (identical bytes; also
drops the spurious -Wstringop-overflow warning on the memcpy).
@jagerman
jagerman merged commit 947d72a into session-foundation:dev Aug 3, 2026
1 check was pending
jagerman added a commit that referenced this pull request Aug 3, 2026
Records dev up to 947d72a as merged, keeping pfs's tree unchanged (-s ours).
The only PR in the range, #112 (drop-error-report), is already applied to pfs
via #113 drop-error-report-pfs; nothing needed forward-porting.

#113 is a faithful adaptation rather than a straight pick, so its commits have
different patch-ids: it carries the same six files, differing only in pfs's
unsigned char -> std::byte types, the resulting drop of an ed_pk.first<32>()
now that require_span is fixed-extent, and each branch removing its own
pre-existing form of the two size-error messages.  Verified by outcome:
error_report is absent from both branches, both parse decrypt_group_message
through the bt_dict_consumer require/maybe helpers, and seed_payment.py is
identical on both.
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