Skip to content

feat(native): add diff, browser and SnapShots settings - #101

Merged
rynfar merged 3 commits into
nativefrom
nw/99-settings-diffs-browser
Nov 3, 2026
Merged

rynfar merged 3 commits into
nativefrom
nw/99-settings-diffs-browser

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Diff, Browser and SnapShots settings were missing from the native settings navigation and search. This ports their web titles, order, descriptions, searchable IDs and reset affordances into the existing modal.

Thread whitespace overrides stay with their thread; otherwise the saved default applies when a thread opens. File folds derive from the current files and default until an explicit fold/reveal action records an override. Both state regressions have core tests that failed with the previous behavior.

Diff layout shares the toolbar's persisted setting (migrating its old native location), whitespace defaults feed native thread diff requests, initial file folding applies to thread and PR Code views, and diff colors update semantic theme colors and change counts. Browser agent access saves through server.updateSettings with grant checks. Browser search engines and custom search URLs persist locally and drive the address bar, including the web's invalid-template fallback.

Unsupported controls use the web's unavailable-group treatment with a visible native-specific explanation and no inert editable toggles.

Ledger: ST-DIFFS, ST-BROWSER and ST-SNAPSHOTS remain partial.

Remaining gaps:

  • ST-DIFFS: proactive PR/Changes panels and PR-link interception. Those paths have no matching native settings integration; transcript/link handling belongs to the concurrent transcript worker. Whitespace defaults apply to thread diffs; the detached PR Code source does not support that filter yet.
  • ST-BROWSER: Electron browser profiles/default profile and cookie-import wizard, link target selection, floating previews, viewport/zoom/appearance defaults, and recordings. Browser access is environment-scoped; the native settings modal has no project/checkout scope picker.
  • ST-SNAPSHOTS: capture backend, permission/setup flow, global shortcut, accessibility capture, sound/flash/animation and draft delivery. Without a capture backend the page follows the web's unavailable state, showing the disabled enable row; dependent search IDs land there.

Verification:

  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace: 1,030 passing tests
  • cargo build -p t3-native --features snapshot
  • node scripts/gen-theme.ts --check
  • node --test parity/sync.test.ts: 42 passing
  • conformance/generate.ts --check from packages/client-runtime
  • vp run check:changed HEAD: passed
  • Smoke server 14658 runtime probe: streamed true, saved false, confirmed reply and stream, restored true and confirmed stream. No provider turns.
  • Offscreen native client pass: light/dark pages, diff selections and resets, browser engine selection/custom URL state, and search-jump expansion of Advanced. No computer use or real-window launch.

Screenshots are local per the shared worker brief:

  • Live diff after changing whitespace/fold defaults: /private/tmp/native-99-review-diff-defaults.png
  • Before (missing page/nav): /private/tmp/native-99-before.png
  • Diffs light: /private/tmp/native-99-diffs-light.png
  • Diffs dark: /private/tmp/native-99-diffs-dark.png
  • Browser light: /private/tmp/native-99-browser-light.png
  • Browser dark: /private/tmp/native-99-browser-dark.png
  • SnapShots light: /private/tmp/native-99-snapshots-light.png
  • SnapShots dark: /private/tmp/native-99-snapshots-dark.png
  • Edited diff settings: /private/tmp/native-99-diffs-edited.png
  • Reset diff settings: /private/tmp/native-99-diffs-reset.png
  • Browser Advanced search target: /private/tmp/native-99-browser-advanced.png
  • Browser custom search state: /private/tmp/native-99-browser-custom.png

Closes #99.

Built with GPT-6.1 Sol in Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant