Repository navigation
fix(ui-react): refuse unsupported safety history selections - #3977
Merged
Merged
Conversation
7 of 8 tasks
5 tasks done
schlessera
marked this pull request as ready for review
November 11, 2026 12:00
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3811
What changed
Selecting a host-only voice history or an unsupported stored session key now clears the safety request, unsubscribes and shows unavailable. The client validates session IDs against the existing SDK schema before sending a read. Valid backend sessions retain paging, subscription and gap recovery.
Why this shape
The published safety target has no host-only history form. Reusing its existing session-key schema keeps the wire grammar in one place and preserves the server contract.
Containment
Proof
Head
8cbafb4cb2f52a902fe412eceef2adc7c994d968; base0f6296a791061c5343230e303117f8278093340b. The branch now contains merged tracker recovery fix #3980.parseClientMessageacross hello, selection, paging, subscription, gap recovery and reconnect. Invalid targets stay unavailable and stale pages cannot restore them.SAFETY_CLIENT_FRAMES_MATCH_PUBLISHED_PARSER, with the reportedtarget.sessionIdpattern error. Removing the validation reproduces those intended assertion failures; restoring the exact source passes. These original controls ran at97a94e2; both source and regression test bytes remain identical after the main refresh, and the combined checks ran at the new head.tsc --noEmitpassed with the repository heap setting.bun run check:pr --base origin/main: all five gates passed; 456 fast-invariant tests, 1,448 assertions. Pending changeset names and the complete release plan validate.{"version":1,"kind":"brain-check-pr-receipt","head":"8cbafb4cb2f52a902fe412eceef2adc7c994d968","base":"origin/main","mode":"focused","startedAt":"2026-11-11T11:37:59.474Z","finishedAt":"2026-11-11T11:38:43.214Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13463.243583},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":100.91079600000012},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":83.87021599999935},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":20.411925000000338},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":30053.017127999996}]}Collision record
At head
8cbafb4cb2f52a902fe412eceef2adc7c994d968, the current collision scan reports closure: #3054, #3056, #3059, #3069, #3116, #3393, #3437, #3464, #3581, #3622, #3806, #3968, #3971, #3972, #3979; textual: #3662. The direct safety-client overlap with #3662 will be preserved during its later refresh; other closure and textual reports do not transfer branch ownership.Checklist
Anything left open
Merged through
integrate.ts confirmas3c44ac6fc56d27675dadaf38a16254db53c39f69, with parent0f6296a791061c5343230e303117f8278093340band tree405136cad4db123bd175b4e4d8cb598e2e9930ee. Exact candidate run 43016644219, attempt 1, passed all eight selected jobs. Every actual selected checkout is804980cf3fbd7948e7029d1fe7e91dee448b4ab9, whose immutable parents/tree match the recorded candidate and squash. All three real safety-client cases and all 35 actual provider-history cases passed. Six heavy categories were intentionally unselected on the candidate.Automatic main run 43020467075, attempt 1, passed all 17 selected jobs at squash
3c44ac6fc56d27675dadaf38a16254db53c39f69. All actual job checkouts match that squash. All 35 actual provider-history cases and all three safety-client cases passed. Independently inspected native artifacts confirm four healthy Claude/Pi and UID 0/1000 hosted-app executions, complete owned cleanup and the separate verified intentional negative control. Candidate, actual squash and required main delivery proof are complete; #3811 is closed and both retain milestone 0.45.0. The separate chat safety PR #3662 overlaps this client and its tests; preserve both changes and verify their combined tree during refresh. Host-only safety history remains outside this issue's scope.