Skip to content

Keep locally owned chats accessible when a UUID trips the child privacy filter - #718

Merged
sambitcreate merged 2 commits into
mainfrom
feature/owner-bound-chat-reads
Nov 3, 2026
Merged

sambitcreate merged 2 commits into
mainfrom
feature/owner-bound-chat-reads

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Failure and scope

On main c975f6e77, a real desktop draft with the valid UUID d2492706-6417-42f1-974d-0c12a2fad0b4 saved successfully. Reopening it invoked the child identifier privacy heuristic on the chat ID. That heuristic interpreted a random UUID segment as encoded private text. The app showed “This chat could not be loaded. Try again.”

In an isolated Linux Cua Space, forcing this UUID with the local provider fixture reproduced three original Playwright failures with zero retries: saved approval recovery (interrupted-question-resume.spec.ts:151), second send (workspace-settings.spec.ts:32) and Snooze approval (inbox-sidebar.spec.ts:190). The first two also failed on #703's previous head. Hosted logs contained the same notice and assertion locations, but did not retain the chat IDs. #703 Linux job · Earlier Snooze job

Change

A local read now matches the requested chat against the returned transcript and recovery marker. Activity recognizes a filtered UUID only through independently known local owners. Older Bot UUIDs outside the regular index cannot hide another chat's approval. Detached and observed runs retain their local owner, and a terminal transcript must match its retained stream, chat and workspace. New draft, fork and Bot chat IDs are screened before use. The global child privacy validator stays strict, including for UUID-shaped text that encodes a path.

Verification

  • Fixing reads alone restored recovery and the second send. Snooze reached Allow once, then failed at the Needs you row. Binding activity and attention to known chat IDs restored the full workflow.
  • Behavioral tests cover wrong chat and workspace, missing transcripts with provisional metadata, detached terminals, filtered Bot activity, unknown attention owners and encoded private identifiers in each child snapshot field.
  • 291 focused tests, desktop TypeScript and targeted ESLint passed. iOS chat tests passed 358/358 and Android chat tests passed 136/136.
  • A broader ordinary-UUID Linux Cua run passed 12 of 13 on an intermediate patch. The pending-approval case exited during relaunch at fixtures.ts:676 with “Resulting promise was garbage collected” before its transcript assertion. No test policy or timeout changed.
  • On the reviewed head c5d372c3f, all three original cases passed with the same forced UUID, a local provider fixture, one worker and zero retries (30.9 s).

Hosted validation gap: run 41556368490, Electron E2E (3/3) on exact head c5d372c3fbacc1120b9966c88423f22a6d2d309b was cancelled by the annotated 20-minute job budget. It started 108 of 117 tests; the last was tests/e2e/workspace-panel.spec.ts:210, Quick View docking/floating. No assertion failure or flaky result appeared before cancellation; unfinished coverage is not a pass. No manual rerun has executed. One recovery is deferred until the entire workflow is terminal, with exact-head revalidation. Timeout, worker, retry and fail-on-flaky policy remain unchanged. This PR remains open.

Recovery update: after the entire workflow became terminal and exact head c5d372c3fbacc1120b9966c88423f22a6d2d309b was reverified, the single allowed recovery was accepted for the cancelled shard3 job. Its one executed manual-rerun budget is now spent; result pending. The original 20-minute /108-of-117 coverage gap remains recorded above. No timeout, worker, retry or flaky-test policy changes.

Recovery result: the single executed shard3 recovery job 125727652529 passed. All 24 applicable checks, including every required context, are now green on exact head c5d372c3fbacc1120b9966c88423f22a6d2d309b, with no unresolved review threads at the supervisor snapshot. The original 20-minute budget failure is retained above; the manual recovery budget is spent. This PR remains open.

Fresh main and the hosted Remote approval UUID

Regular merge a983c12789098e604ad8d845b6839de7bd7d345a incorporates main cad91dc2c (#609). The 47 upstream files are byte-identical to main, and the 22 files in this PR are byte-identical to the previously reviewed head. The complete package script inventory includes main’s workspace-artifact, MCP launch-review and Linux contract suites. The Remote contract, both native clients, OpenAPI and shared fixture retain revision 53.

The #715 hosted job captured the actual missing Inbox row UUID, a9762f97-b864-4eb0-a13a-217127305bb1. On the unchanged #715 head the local Electron reproduction lost that row, while the safe control passed. On this merge head, both the hosted UUID and safe control passed the complete flow in 22.3 seconds with one worker, zero retries and a local provider. The fixture asserted each persisted ID before relaunch, opened the approval from the keyboard and the row, checked Deny focus, approved it and verified the switch to Working. This is direct evidence for the #715 failure. Earlier #703 and #704 logs did not retain their UUIDs.

Local checks passed: 381 focused ownership, privacy, lifecycle, Remote and storage/MCP tests, 33 IPC/read-marker tests, 364 iOS tests, and 146 Android tests. Root, CLI and E2E TypeScript passed. The standalone CLI type check used its own lockfile install. Scoped lint passed. Full workspace lint picked up a previous Cua test report’s generated JavaScript; the same command on a clean archive of this exact head passed.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes across local chat reads, activity, pending attention, retained stream ownership, and chat ID creation, including their callers and privacy boundaries.

  • Owner-bound reads: Transcript and provisional recovery metadata must match the requested chat, with workspace consistency checked when a transcript is present.
  • Activity and attention: Independently known local UUIDs remain usable without allowing unknown filtered Bot IDs to suppress other chats' activity or approvals.
  • Stream recovery: Detached and observed runs retain local ownership, while terminal transcripts remain bound to the retained stream, chat, and workspace.
  • UUID creation and privacy: New draft, Bot, and fork UUIDs are screened before use; global child snapshot validation remains strict. The saved-chat contract is documented.
  • Verification: All 290 focused tests run during review passed. Electron E2E and native mobile suites were not rerun; several hosted CI jobs were still pending at inspection.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@sambitcreate
sambitcreate merged commit 2869692 into main Nov 3, 2026
24 checks passed
@sambitcreate
sambitcreate deleted the feature/owner-bound-chat-reads branch November 3, 2026 15:51
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