Repository navigation
fix(desktop): retain dconf failures without stderr - #10230
Merged
Merged
Conversation
2 tasks done
Collaborator
Author
|
Maintenance claim for session backlog-root-20261112: auditing this existing PR's checks and discussion, updating it with current main's shared setup-fixture repair where applicable, and validating its own regressions. I will preserve branch history, avoid force pushes, recheck the remote head before pushing, and mark it ready only after technical verification. No new issue/PR work is being started. |
kaoru0822-kitauji
marked this pull request as ready for review
November 12, 2026 18:23
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 13, 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.
Summary
Fixes #10223. A failed dconf launch or silent nonzero exit returned an empty error, which reached retained-state Evidence as
view_error: "". Fall back to the original command error when stderr is empty or whitespace-only.Problem and expected behavior
A caller-selected, non-executable dconf command should report its EACCES reason and selected path. Existing nonblank stderr, missing-command recovery, caller cancellation and profile-write failures should retain their behavior.
Change and scope
One production-line correction at
DconfDatabaseReader, the owner of the command-failure projection.DesktopApplicationStateconsumes that diagnostic without reinterpreting it. Sibling setup/doctor command readers already fall back when stderr is empty; merged #10109's cancellation handling is preserved.Contract and boundary impact
Evidence and regression coverage
Claimed before coding: #10223 (comment), branch
codex/b2-10223-dconf-diagnostics-root. Main, recent/all-state PRs and the issue discussion were rechecked before submission; no competing claim or fix was found.On unchanged
edc9304669, the new tests fail 4 cases / 6 pass. With the fix, 59 tests pass across the dconf reader, retained-state Evidence regression and existing state consumers. Real authored subprocesses cover denied execution, empty/whitespace-only stderr, nonblank stderr and missing-command recovery; existing exact cancellation tests remain active. Independent review reran the two focused files: 10/10 pass.The state regression now retains
view: nullwith an EACCES diagnostic containing the selected command. It does not claim that the dconf database was read successfully. Silent exits expose command-failure text, not a newly structured exit status.Validation performed
Current head
8e101b3e0cf5f4424141ec2b4f7ad80fe0560af3merges maina8527d43b8, including the shared setup-fixture repair. Node 24.22.1/npm 11.16.0, macOS arm64; matching locked dependencies verified.npm run test:focused -- src/desktop/DconfDatabaseReader.test.ts src/application/desktop/DesktopDconfDiagnostics.test.ts src/application/desktop/DesktopApplicationState.test.ts— Test Files 3 passed (3); Tests 59 passed (59).npm run check— passed, including typecheck, lint, format, Knip, metadata, architecture/module guards, production reachability and typed lint (zero errors; existing warnings).git diff --checkand normal pre-pushcheck:fast— passed. Normal non-force push; no temporary source repair or hook bypass. Hosted CI is running on this exact head and will be checked before handoff.Compatibility, safety, and release
No migration, schema, package or new side-effect change. Source and production-boundary tests use authored files and inert commands; no live dconf service, user database, desktop capture, compiled CLI/MCP or Windows run was performed. Windows-only behavior is not established by the POSIX permission fixtures.
Author readiness
The author is exempt from the declaration under current CONTRIBUTING.md (GitHub account ID 208281322). Human declaration states are preserved; no human review is claimed.
Human owner:
Before merge