Skip to content

feat(floating-workspace): add adjustable panel opacity - #48550

Open
nthungdev wants to merge 1 commit into
stablyai:mainfrom
nthungdev:nthungdev/feat-floating-panel-opacity-24751
Open

nthungdev wants to merge 1 commit into
stablyai:mainfrom
nthungdev:nthungdev/feat-floating-panel-opacity-24751

Conversation

@nthungdev

@nthungdev nthungdev commented Nov 24, 2026 •

Copy link
Copy Markdown

ELI5

Make the floating panel see-through so you can check a terminal behind it while keeping the panel open.

What Changed

Floating Workspace settings now has a Floating panel opacity slider from 30% to 100%. It defaults to 100%. The saved value applies to the entire open panel, including browser tabs.

Why

Checking the terminal behind the panel used to require minimizing and reopening it. Applying opacity to the panel lets the user read both without leaving the current tab.

Linked Issue

Fixes #24751

Visual Proof

The recording shows the same browser tab over the same terminal at 100% and 30%.

floating-panel-opacity.mp4
floating-panel-opacity-65.mp4

Testing

  1. Open the Floating Workspace over a terminal with output. Open a browser tab in the panel and confirm the default 100% opacity covers the terminal.
  2. Search for Floating panel opacity in Settings. Set it to 30% with the slider, then reopen the panel. The terminal output should show through the browser.
  3. Minimize and reopen the panel, then restart Orca. The 30% setting should persist. Restore 100% to make the panel opaque.
  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the project's test anti-patterns

I verified light and dark themes, keyboard and pointer adjustment, and persistence in hidden macOS Electron. I used rendered verification for this UI setting per the project's test policy. The affected suite passed 987 tests with 4 skipped.

Performance

The setting adds a CSS opacity value to the panel's existing render. Lower values require the browser to blend the panel with the workspace beneath it.

Risk

Low. At lower settings, foreground text can become harder to read against content behind the panel. Users can restore 100% in Settings. A plain revert removes the control and restores the fixed opacity.

AI Disclosure

OpenAI Codex (GPT-6.2 Sol) implemented and verified the change.

Review

The persisted default keeps existing profiles at 100%. The setting uses the desktop renderer's CSS compositing on macOS, Windows, and Linux. Rendered verification ran on macOS. The change has no SSH, mobile, agent, or integration protocol impact and adds no new security boundary or polling.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The opacity stays active during hover and focus so the terminal stays visible while users read or interact with the panel.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk and how to back it out
  • Before/after video attached for the UI change
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Lint, typecheck, affected tests, build, and the local changed-files gate passed. CI covers the full test suite.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds a global floating panel opacity setting with a default of 100% and a supported range of 30% to 100%. A slider in floating workspace settings updates the value in 5-point steps. The panel resolves the saved setting and applies it when open; when closed, it retains zero opacity and the existing visibility and pointer-event behavior.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to 221bf

This adds a Floating panel opacity slider (30% to 100%, default 100%) that applies to the whole floating panel, including browser tabs. Existing users see no change by default. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(floating-workspace): add adjustable panel opacity" names the main change: a new adjustable opacity setting for the floating workspace panel. The changeset adds a floating panel opacity…
Linked Issues check Passed Issue #24751 requires a Floating panel opacity slider from 30% to 100%, defaulting to 100%. The summary shows this setting: DEFAULT_FLOATING_PANEL_OPACITY (1) and MIN_FLOATING_PANEL_OPACITY (0.3) in s…
Out of Scope Changes check Passed All changed areas support the opacity setting. These are the shared constants and resolver, the settings type composition, default settings, the settings pane slider, search keywords, en.json strings,…
Description check Passed The description covers most required sections. It includes a clear ELI5, a What Changed section with the user-facing behavior, a Why section, a linked issue (Fixes #24751), before/after visual proof v…
Full details: Title check

Explanation

The title "feat(floating-workspace): add adjustable panel opacity" names the main change: a new adjustable opacity setting for the floating workspace panel. The changeset adds a floating panel opacity slider, resolver, default and minimum constants, and applies the resolved opacity in the panel surface. The title is short, specific, and follows a conventional commit style.

Full details: Linked Issues check

Explanation

Issue #24751 requires a Floating panel opacity slider from 30% to 100%, defaulting to 100%. The summary shows this setting: DEFAULT_FLOATING_PANEL_OPACITY (1) and MIN_FLOATING_PANEL_OPACITY (0.3) in src/shared/settings/floating-panel-opacity.ts, wired into default-global-settings.ts and global-settings-base.ts. FloatingWorkspacePane.tsx adds the slider. FloatingTerminalPanel.tsx passes the resolved value to renderFloatingTerminalPanelSurface, which sets it as inline opacity on the outer panel node when open. The issue says this outer node covers browser tabs, because the webview sits inside it. The issue requirement that the setting apply to panel contents, including browser tabs, is met by this outer-node opacity. The default of 100% keeps existing users unchanged. The issue's optional alternatives (opaque on hover/focus, toggle command) are not acceptance requirements. The PR keeps opacity active on hover and focus, which the issue does not require. The summary lists no automated test files. The issue does not request specific tests, so this does not change the verdict. Assessment is based on the summary and the PR description. I did not inspect the source files directly.

Full details: Out of Scope Changes check

Explanation

All changed areas support the opacity setting. These are the shared constants and resolver, the settings type composition, default settings, the settings pane slider, search keywords, en.json strings, and the panel render path. None of these changes touch the main window, terminal rendering, or window-level transparency, which the issue excludes. The summary lists no unrelated files. The summary does not list test files, so test changes could not be confirmed from it. This does not indicate out-of-scope work.

Full details: Description check

Explanation

The description covers most required sections. It includes a clear ELI5, a What Changed section with the user-facing behavior, a Why section, a linked issue (Fixes #24751), before/after visual proof via video links, detailed Testing steps, a Performance statement, a Risk section with a level-free assessment and a revert path, an AI Disclosure, and a checked upstream boundary box. Gaps: the Risk section does not state a level (Low, Medium, or High) in the template format, although it says 'Low'. The Performance line is not in the template's 'None, because ...' form, but it does state a reasoned trade-off. The Testing checklist leaves the test anti-pattern item unchecked without explaining why new tests were not added. The Testing section mentions 'the affected suite passed 987 tests' but does not say whether new automated tests were added. The Review section states the platforms that were tested. Overall the description is mostly complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5df35445-3de4-4769-afa0-305439742447
Commits

Reviewing files that changed from the base of the PR and between b350db3 and 221bfca.

Files selected for processing: 8

  • src/renderer/src/components/floating-terminal/FloatingTerminalPanel.tsx
  • src/renderer/src/components/floating-terminal/FloatingTerminalPanelSurface.tsx
  • src/renderer/src/components/settings/floating-workspaces/FloatingWorkspacePane.tsx
  • src/renderer/src/components/settings/floating-workspaces/floating-workspace-search.ts
  • src/renderer/src/i18n/locales/en.json
  • src/shared/settings/default-global-settings.ts
  • src/shared/settings/floating-panel-opacity.ts
  • src/shared/settings/global-settings-base.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

onegaop pushed a commit to onegaop/orca that referenced this pull request Nov 28, 2026

This branch has not been deployed

No deployments
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.

[Feature]: Configurable opacity for the Floating Workspace panel (peek at terminals underneath)

1 participant