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] Diagnose desktop client settings read failures by juliusmarminge · Pull Request #3432 · pingdotgg/t3code

Conversation

@juliusmarminge

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

Uh oh!

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

Copy link
Copy Markdown
Member

Desktop client settings intentionally fall back to None when the settings file is missing or unusable, but the loader previously implemented that behavior with Effect.option and Effect.orElseSucceed. Those broad fallbacks also hid permission failures, other filesystem failures, and malformed settings documents without leaving any diagnostic evidence.

This change keeps the existing nonfatal API while making unexpected failures observable. A normalized PlatformError whose reason is NotFound remains an expected silent absence. Other filesystem failures produce a warning annotated with settingsPath and retain the original platform error in the log arguments. Schema failures likewise produce a path-annotated warning with the original SchemaError before returning None. Both recovery points use tagged catch semantics.

The diagnostics tests use an isolated test file because the established client-settings test is currently touched by feature work. They verify that missing files remain silent, permission failures remain nonfatal but observable, and malformed documents remain nonfatal but observable.

Validation:

  • vp test apps/desktop/src/settings/DesktopClientSettings.diagnostics.test.ts
  • vp check (passes with pre-existing repository warnings only)
  • vp run typecheck

Note

Low Risk
Behavior for callers (get still returns Option) is unchanged except that some previously hidden failures may now surface as Effect failures or logs; no auth or data-mutation paths.

Overview
Desktop client settings still return None when the file is absent or unusable, but unexpected problems are no longer swallowed silently.

readClientSettings replaces broad Effect.option / orElseSucceed fallbacks with tagged handling: NotFound stays a quiet None; other PlatformError cases emit a warning (with settingsPath) and return None; SchemaError on decode gets the same treatment. Errors outside those tags are no longer converted to None.

Adds DesktopClientSettings.diagnostics.test.ts to assert missing file → no logs, permission/read failure → warning + path, malformed JSON → decode warning + path.

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

Note

Diagnose desktop client settings read failures with targeted warning logs

  • Missing settings files return None silently (no log) in readClientSettings.
  • Non-missing filesystem read errors now emit a warning log annotated with settingsPath instead of silently returning None.
  • Schema decode failures now emit a warning log annotated with settingsPath instead of silently returning None.
  • Read or decode errors that are not PlatformError/SchemaError now propagate as failures rather than being swallowed.
  • Adds diagnostic tests in DesktopClientSettings.diagnostics.test.ts covering all three cases above.

Macroscope summarized 295cff2.

Sorry, something went wrong.

Uh oh!

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

All reactions
@coderabbitai

coderabbitai Bot commented Jun 20, 2026 •
edited
Loading

Uh oh!

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

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: 01ecb35f-4319-49ef-b2cb-3b957beb2879

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-client-settings-diagnostics

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.

@juliusmarminge
juliusmarminge marked this pull request as ready for review June 20, 2026 19:57
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 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 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved

This PR adds diagnostic warning logs when desktop client settings fail to read due to unexpected errors (not missing file). The actual behavior is unchanged - errors still result in returning None - but now unexpected failures are logged with the settings path for debugging purposes.

No code changes detected at 295cff2. Prior analysis still applies.

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 force-pushed the codex/desktop-client-settings-diagnostics branch from f596e87 to 46386c2 Compare June 20, 2026 22:42
@juliusmarminge @codex
Diagnose desktop client settings read failures
295cff2
Co-authored-by: codex <[email protected]>
@juliusmarminge
juliusmarminge force-pushed the codex/desktop-client-settings-diagnostics branch from 46386c2 to 295cff2 Compare June 20, 2026 22:50
@juliusmarminge
juliusmarminge merged commit ad2cb1d 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-client-settings-diagnostics branch June 20, 2026 22:55
NeilTheFisher pushed a commit to NeilTheFisher/t3code that referenced this pull request Aug 18, 2026
@juliusmarminge @codex
[codex] Diagnose desktop client settings read failures (pingdotgg#3432)
ea7c131
Co-authored-by: codex <[email protected]>
darjss pushed a commit to darjss/t3code that referenced this pull request Aug 26, 2026
@juliusmarminge @codex
[codex] Diagnose desktop client settings read failures (pingdotgg#3432)
c107eab
Co-authored-by: codex <[email protected]>
gabrielMalonso pushed a commit to gabrielMalonso/t3code that referenced this pull request Sep 4, 2026
@juliusmarminge @codex
[codex] Diagnose desktop client settings read failures (pingdotgg#3432)
678e06e
Co-authored-by: codex <[email protected]>
This was referenced Oct 24, 2026
feat(desktop): live mode drives Ditto through the web orchestrator ditto-assistant/ditto-desktop#41
Merged
feat(desktop): Live launcher in the composer like the web app ditto-assistant/ditto-desktop#45
Merged
omarzanji added a commit to ditto-assistant/ditto-desktop that referenced this pull request Oct 25, 2026
@omarzanji @claude
feat(desktop): Live launcher in the composer like the web app (#45)
d63be76
Until the bundled ditto-app ships ditto-app#3432's own launcher, a build-time
bridge puts a waveform Live launcher just left of Send (where Temporary chat
was) and moves Temporary chat to the header, as pingdotgg#3432 does. The launcher calls
window.ditto.liveToggle() and its pressed state follows ditto:live-active, so
it agrees with the rail button and Cmd+Shift+L. Composer and header patches
apply together or not at all, and are skipped once ditto-app renders its own
live-mode-launcher.

Co-authored-by: Claude Opus 5.5 <[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:S 10-29 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.