GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [codex] Structure desktop backend settings read errors by juliusmarminge · Pull Request #3379 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Jun 20, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

  • replace the exists/read fallback pair with one race-free read
  • treat only NotFound as an expected missing settings file
  • log other read failures as a structured Schema error with the settings path and exact platform cause while preserving the existing defaults fallback

Verification

  • vp test apps/desktop/src/backend/DesktopBackendConfiguration.test.ts (5 passed)
  • vp check (passes; 20 existing warnings)
  • vp run typecheck

Note

Low Risk
Localized desktop bootstrap config read path; behavior on missing files is unchanged and failures still degrade to defaults with better observability.

Overview
Desktop backend config now loads persisted OTLP settings with a single readFileString instead of exists plus read, avoiding a race when the file appears or disappears between checks.

Missing settings are handled only when the read fails with NotFound; other filesystem errors (e.g. permission denied) emit a structured DesktopBackendObservabilitySettingsReadError via Effect.logWarning with component, settingsPath, and the platform cause, then still fall back to empty observability defaults so startup is unchanged.

A new test asserts that behavior on read failure: bootstrap URLs stay undefined and the logged error matches the path and cause.

Reviewed by Cursor Bugbot for commit fc020f5. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Structure desktop backend observability settings read errors with DesktopBackendObservabilitySettingsReadError

  • Adds a new DesktopBackendObservabilitySettingsReadError Schema tagged error class in DesktopBackendConfiguration.ts with settingsPath and cause fields, replacing the previous generic string warning log.
  • When reading persisted observability settings fails, non-NotFound errors (e.g. PermissionDenied) now log a structured warning annotated with component: desktop-backend-configuration; NotFound errors return empty settings silently.
  • Removes the FileSystem.exists pre-check, instead attempting readFileString directly and branching on the error reason tag.
  • Adds a test in DesktopBackendConfiguration.test.ts that injects a failing FileSystem layer and asserts the structured error is logged with the expected fields.

Macroscope summarized fc020f5.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@juliusmarminge @codex
fix(desktop): retain backend settings read errors
fc020f5
Co-authored-by: codex <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 959386f2-073c-4007-9ede-0b66dae60c32

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/desktop-backend-configuration-errors

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Jun 20, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Jun 20, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved

Refactors error handling to use structured error classes with better context for debugging. Runtime behavior is preserved - read failures still gracefully return empty settings. Original file author with comprehensive test coverage.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge merged commit 53a477c into main Jun 20, 2026
16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge deleted the codex/desktop-backend-configuration-errors branch June 20, 2026 18:11
NeilTheFisher pushed a commit to NeilTheFisher/t3code that referenced this pull request Aug 18, 2026
@juliusmarminge @codex
[codex] Structure desktop backend settings read errors (pingdotgg#3379)
457a4c5
Co-authored-by: codex <[email protected]>
darjss pushed a commit to darjss/t3code that referenced this pull request Aug 26, 2026
@juliusmarminge @codex
[codex] Structure desktop backend settings read errors (pingdotgg#3379)
e9ce269
Co-authored-by: codex <[email protected]>
gabrielMalonso pushed a commit to gabrielMalonso/t3code that referenced this pull request Sep 4, 2026
@juliusmarminge @codex
[codex] Structure desktop backend settings read errors (pingdotgg#3379)
957546d
Co-authored-by: codex <[email protected]>
@only21mil only21mil mentioned this pull request Nov 1, 2026
fix(desktop): one unreadable value in desktop-settings.json no longer resets every desktop setting #28682
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.