feat(libSceNpWebApi2): implement push-event handle abort #5085

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/5085 into main
MarcZX10 commented 2026-10-13 11:10:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T11:10:55Z.


What

Carries screamm’s offered fix for #4174. Push-event handles are tracked by library context, sceNpWebApi2PushEventAbortHandle marks a handle aborted, and later filter creation reports ABORTED. Unknown contexts and handles return the corresponding errors; delete and terminate clear handle state.

The implementation commit keeps screamm as its author. The cherry-pick reconciles the test declarations and moves the technical-debt entry into the current component file; no Codex co-author is added. The PS4-derived behavior and result codes remain unverified on PS5.

Tested

  • Linux: configured with CMake and Ninja, built guest_np_web_api2_tests, and ran ctest -R '^guest_np_web_api2$': passed (1/1).
  • tools/check_conventions.py --base upstream/main: passed.
  • git diff --check: passed.
  • Live overlap scan against 522 open PRs: no overlap.
  • No title run; Planet Coaster imports this function, but execution has not been observed.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; behavior limitations are recorded in library technical debt
  • No notes, investigation files or images added
  • New third-party code is a submodule built from source
  • Generic behavior, not title-specific
  • Depends on: none
  • Unblocks: Planet Coaster PPSA01736 (#4174)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4842320000 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5085). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T11:10:55Z. --- ### What Carries screamm’s offered fix for #4174. Push-event handles are tracked by library context, `sceNpWebApi2PushEventAbortHandle` marks a handle aborted, and later filter creation reports `ABORTED`. Unknown contexts and handles return the corresponding errors; delete and terminate clear handle state. The implementation commit keeps screamm as its author. The cherry-pick reconciles the test declarations and moves the technical-debt entry into the current component file; no `Codex` co-author is added. The PS4-derived behavior and result codes remain unverified on PS5. ### Tested - Linux: configured with CMake and Ninja, built `guest_np_web_api2_tests`, and ran `ctest -R '^guest_np_web_api2$'`: passed (1/1). - `tools/check_conventions.py --base upstream/main`: passed. - `git diff --check`: passed. - Live overlap scan against 522 open PRs: no overlap. - No title run; Planet Coaster imports this function, but execution has not been observed. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; behavior limitations are recorded in library technical debt - [x] No notes, investigation files or images added - [x] New third-party code is a submodule built from source - [x] Generic behavior, not title-specific - [x] Depends on: none - [x] Unblocks: Planet Coaster PPSA01736 (#4174) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-13 11:27:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T11:27:36Z.


Progress report (3ee394e → cd666ae)

📈 System libraries: 87.88% (+0.02%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNpWebApi2 sceNpWebApi2PushEventAbortHandle
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144511285 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5085#issuecomment-6144511285). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T11:27:36Z. --- <!-- progress-report --> ### Progress report (3ee394e → cd666ae) 📈 **System libraries**: 87.88% (+0.02%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpWebApi2 | `sceNpWebApi2PushEventAbortHandle` | </details>
adriadam10 commented 2026-10-13 13:06:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T13:06:00Z.


Closing, for the same reasons as #4375 and #4188 (same commit, closed by @oneandonlydean):

  • No title is seen calling sceNpWebApi2PushEventAbortHandle (#4174 says the call has not been observed executing; this PR says so too), so there is no evidence a title stops at it on main.
  • The change also alters what sceNpWebApi2PushEventCreateHandle, DeleteHandle and CreateFilter return for every title (LIB_CONTEXT_NOT_FOUND / HANDLE_NOT_FOUND / ABORTED), and those codes come from PS4 (shadPS4) and are unverified on PS5.

Welcome to reopen with the log line where a title stops at this export on main.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6146224220 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5085#issuecomment-6146224220). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T13:06:00Z. --- Closing, for the same reasons as #4375 and #4188 (same commit, closed by @oneandonlydean): - No title is seen calling `sceNpWebApi2PushEventAbortHandle` (#4174 says the call has not been observed executing; this PR says so too), so there is no evidence a title stops at it on `main`. - The change also alters what `sceNpWebApi2PushEventCreateHandle`, `DeleteHandle` and `CreateFilter` return for every title (`LIB_CONTEXT_NOT_FOUND` / `HANDLE_NOT_FOUND` / `ABORTED`), and those codes come from PS4 (shadPS4) and are unverified on PS5. Welcome to reopen with the log line where a title stops at this export on `main`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5085
No description provided.