Skip to content

fix(desktop): retain dconf failures without stderr - #10230

Merged
kaoru0822-kitauji merged 2 commits into
mainfrom
codex/b2-10223-dconf-diagnostics-root
Nov 13, 2026
Merged

kaoru0822-kitauji merged 2 commits into
mainfrom
codex/b2-10223-dconf-diagnostics-root

Conversation

@kaoru0822-kitauji

@kaoru0822-kitauji kaoru0822-kitauji commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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. DesktopApplicationState consumes 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

  • Ordinary correction within the existing staged dconf read; maintainer scope decision: not applicable.
  • CLI/MCP schemas, Evidence identity/provenance, captured input bytes, package metadata and installation behavior are unchanged.
  • Existing helper execution and staged-profile ownership are unchanged; no target-selection, cancellation or cleanup authority is added.
  • Read existing files or captured data through the existing workflow.

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: null with 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 8e101b3e0cf5f4424141ec2b4f7ad80fe0560af3 merges main a8527d43b8, 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).
  • Unmodified-head npm run check — passed, including typecheck, lint, format, Knip, metadata, architecture/module guards, production reachability and typed lint (zero errors; existing warnings).
  • git diff --check and normal pre-push check: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.
  • Original static-job logs confirm the shared TS2741; merging the maintainer's main repair resolves that cause.

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:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • Baseline static-check repair and current-head CI are verified.
  • Human ownership and readiness are completed.

Copy link
Copy Markdown
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
kaoru0822-kitauji marked this pull request as ready for review November 12, 2026 18:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T18:25:16.059482Z 8e101b3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kaoru0822-kitauji
kaoru0822-kitauji merged commit 913b029 into main Nov 13, 2026
50 of 52 checks passed
@kaoru0822-kitauji
kaoru0822-kitauji deleted the codex/b2-10223-dconf-diagnostics-root branch November 13, 2026 04:39
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] dconf state reads lose command failures when stderr is empty

2 participants