Skip to content

fix: follow system appearance in the Tauri Gateway manager - #148668

Merged
steipete merged 1 commit into
mainfrom
codex/tauri-gateway-system-theme
Sep 15, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/tauri-gateway-system-theme

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The redesigned Tauri Gateway manager stayed dark even when the operating system used light appearance. Follow-up to #148526.

User Impact

Manage Gateways now follows the system's light or dark appearance, including changes while the window is open. Unsaved fields and masked credentials remain intact.

Why This Change Was Made

Use the web login flow's warm light palette alongside the existing dark palette. CSS handles appearance changes and themes the fields, window controls, focus rings, errors, and removal dialog without adding settings or changing connection storage.

Evidence

  • All 10 native-desktop Gateway browser tests pass. The extended editing flow failed on the original forced-dark styles, then passed through dark → light → dark while preserving the draft and masked credential.
  • Inspected both appearances for saved connections, editing, SSH, errors, removal, and narrow layouts. Captures use the actual manager in Chromium with synthetic native IPC; they are browser evidence, not native OS screenshots.
  • Focused lint and formatting pass. Independent review found no actionable P0–P2 issues.
  • Full core-test typecheck passes in a fresh checkout with the exact candidate files and frozen dependencies. The original checkout had stale dependency/declaration state.
  • Linux companion build and macOS companion tests pass.

Before (system set to light), followed by the new light and dark appearances:

Before: manager forced dark with the system set to light

After: system light appearance

After: system dark appearance

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 15, 2026 01:06
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui app: linux plugin: linux-node size: S maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 9:21 PM ET / September 15, 2026, 01:21 UTC (Revision 2).

ClawSweeper review

What this changes

The Tauri desktop Gateway manager follows system light and dark appearance, with documentation and browser coverage for preserving unsaved fields during appearance changes.

Merge readiness

✅ Ready for maintainer review

This remains useful: current main still forces dark appearance. The focused patch has no actionable correctness or security findings, and the inspected screenshots support the visual improvement.

Priority: P3
Reviewed head: 7aa3e36daf6f53bc16c9a052598f67b448b94420

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable presentation repair with convincing visual evidence and relevant regression coverage.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/light/dark screenshots demonstrate the changed manager stylesheet in Chromium using the actual bundled page with synthetic native IPC. The reported browser run supplements them with draft-preserving theme transitions; native OS theme propagation is not claimed as demonstrated.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/light/dark screenshots demonstrate the changed manager stylesheet in Chromium using the actual bundled page with synthetic native IPC. The reported browser run supplements them with draft-preserving theme transitions; native OS theme propagation is not claimed as demonstrated.
Evidence reviewed 7 items Current main still needs the change: The fetched main stylesheet retains color-scheme: dark and has no light palette in its root styling.
Presentation remains with the stylesheet: The introduced CSS adds a light media-query palette and theme-dependent effects; the HTML advertises both schemes. Existing window controls consume the same tokens, and no connection, credential, persistence, or authorization implementation changes.
Inspected visual proof: Inspected prepared proof-image-1.png, proof-image-2.png, and proof-image-3.png from the supplied media manifest. The PR-linked before/light/dark captures show the actual manager editor with synthetic data, readable controls, and unchanged layout. The captured body identifies Chromium with synthetic native IPC, not native OS screenshots.
Findings None None.
Security None None.

How this fits together

The desktop Gateway manager is a locally bundled page for editing saved Gateway connections, including when a Gateway is unavailable. Its stylesheet controls presentation while the existing native bridge handles connection operations.

flowchart LR
  A[System appearance] --> B[Browser color preference]
  B --> C[Gateway manager palette]
  C --> D[Connection form and dialogs]
  E[Saved connections] --> D
  D --> F[Existing native connection bridge]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +18, Docs +6, Other +26. Total +50 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 18 0 +18
Docs 2 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 2 36 10 +26
Total 5 60 10 +50

Review metrics

None.

Technical review

Best possible solution:

Keep appearance adaptation in the existing CSS tokens so system changes repaint the manager without rebuilding its editor or introducing a stored preference.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: opening the current-main manager with a light browser preference still uses its unconditional dark palette. No current-main runtime reproduction was executed during this read-only review.

Is this the best way to solve the issue?

Yes. CSS media queries repair the presentation at its existing owner without adding JavaScript state, a competing setting, or changes to connection handling.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ed01ccfd17a3.

Labels

Label justifications:

  • P3: This is bounded appearance polish with no reported blocked connection workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/light/dark screenshots demonstrate the changed manager stylesheet in Chromium using the actual bundled page with synthetic native IPC. The reported browser run supplements them with draft-preserving theme transitions; native OS theme propagation is not claimed as demonstrated.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/light/dark screenshots demonstrate the changed manager stylesheet in Chromium using the actual bundled page with synthetic native IPC. The reported browser run supplements them with draft-preserving theme transitions; native OS theme propagation is not claimed as demonstrated.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/light/dark screenshots demonstrate the changed manager stylesheet in Chromium using the actual bundled page with synthetic native IPC. The reported browser run supplements them with draft-preserving theme transitions; native OS theme propagation is not claimed as demonstrated.

Evidence

What I checked:

  • Current main still needs the change: The fetched main stylesheet retains color-scheme: dark and has no light palette in its root styling. (apps/linux/ui/gateways.css:27, ed01ccfd17a3)
  • Presentation remains with the stylesheet: The introduced CSS adds a light media-query palette and theme-dependent effects; the HTML advertises both schemes. Existing window controls consume the same tokens, and no connection, credential, persistence, or authorization implementation changes. (apps/linux/ui/gateways.css:59, 7aa3e36daf6f)
  • Inspected visual proof: Inspected prepared proof-image-1.png, proof-image-2.png, and proof-image-3.png from the supplied media manifest. The PR-linked before/light/dark captures show the actual manager editor with synthetic data, readable controls, and unchanged layout. The captured body identifies Chromium with synthetic native IPC, not native OS screenshots. (7aa3e36daf6f)
  • Focused regression coverage: The existing offline profile-management test now changes dark → light → dark, checks computed page and field colors, and verifies the draft name, entered token, and password masking survive. The PR reports failure against the original styles and success afterward; this review did not execute tests. (ui/src/e2e/native-desktop-gateways.e2e.test.ts:568, 7aa3e36daf6f)
  • Related merged work and routing: GitHub verifies feat(desktop): redesign Gateway manager around web login #148526 merged the preceding Gateway-manager redesign. Current-main path history and commit metadata connect steipete to that prior work; it does not supersede this appearance follow-up. (apps/linux/ui/gateways.css, 39342e7149ed)
  • Release check and inspection limits: GitHub reports v2026.9.4 as the latest release, published September 11. Reading its manager stylesheet and completing deeper local blame encountered unavailable promisor objects with HTTP 403; no release inclusion or exact line-introduction claim is made. Current-main source and prior merged-PR metadata were inspected successfully.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-15T01:12:54.449Z sha 7aa3e36 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 3669d7b into main Sep 15, 2026
201 checks passed
@steipete
steipete deleted the codex/tauri-gateway-system-theme branch September 15, 2026 01:37
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

app: linux app: web-ui App: web-ui docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: linux-node proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant