Repository navigation
feat(desktop): collect bounded session observations and safe diagnostics - #2234
Open
sunlight798 wants to merge 2 commits into
Open
sunlight798 wants to merge 2 commits into
sunlight798 wants to merge 2 commits into
Conversation
Record native HTTP requests and Memory/Scope actions with bounded retention, safe projection and cancellation/write certainty semantics. Expose trusted summary, reset and diagnostic preview IPC with generated types and bilingual contracts. Refs oceanbase#2107 (05-A)
sunlight798
requested review from
AlexStocks,
PsiACE,
frostming and
zhanghuidinah
as code owners
October 25, 2026 09:05
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This branch has not been deployed
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.
Which issue or RFC does this PR close?
Refs #2107 — implements PR 05-A: Native request observations and safe projection, following RFC #1455.
#2107 remains open for the 05-B UI and installed-platform acceptance.
Rationale for this change
Desktop needs bounded session observations to explain request outcomes and latency while preserving cancellation, uncertain-write semantics, and privacy. Collect measurements at the native boundary and expose an explicitly allowlisted diagnostic summary.
What changes are included in this PR?
Are there any user-facing changes?
This PR provides the native foundation for This session. The page and explicit preview/copy interaction are delivered separately in 05-B.
There are no breaking HTTP API or persisted-format changes.
How was this change tested?
Windows x64 validation used Rust 1.95.0, Node 24.14.1, and pnpm 11.13.1:
Local testing was also completed on macOS.
Regression coverage includes bounded retention, reset during in-flight writes, measurement units, cancellation, unknown writes, sensitive-data exclusion, IPC permissions, and collector failure isolation.
Windows repository-wide
ty checkreports existing POSIX-only attribute errors in unchanged Python files; the Linux-target type check passed.Native integration tests use synthetic loopback HTTP responses and mocked Tauri IPC. Installed clipboard behavior for 05-B and release qualification remain separate delivery work.
AI usage statement
OpenAI Codex (GPT-6) assisted with implementation, tests, documentation, and code review.