Skip to content

feat(app): bring v2 visibility settings to web#32174

Merged
Hona merged 2 commits into
anomalyco:devfrom
Hona:fix/app-v2-settings-consistency
Jun 13, 2026
Merged

feat(app): bring v2 visibility settings to web#32174
Hona merged 2 commits into
anomalyco:devfrom
Hona:fix/app-v2-settings-consistency

Conversation

@Hona

@Hona Hona commented Jun 13, 2026

Copy link
Copy Markdown
Member

TLDR;

  • Web users can now customize the same supported v2 session controls as desktop users.
  • V2 settings no longer show options for buttons or platform features that are unavailable in the current UI.

Changelog

Added

  • Web users can show or hide the file tree, command palette, server status, and custom agent picker from General settings.

Fixed

  • File tree visibility now behaves consistently on web and desktop v2, including the session layout and file-tree command.
  • Hiding custom agents on web now also disables agent cycling commands, matching the hidden picker.
  • Web sessions now use the v2 session-header controls instead of falling back to legacy desktop controls.

Removed

  • Removed Navigation controls from v2 settings because v2 does not include back and forward title-bar buttons.
  • Removed the Terminal button setting from v2 because v2 opens the terminal through commands and keyboard shortcuts rather than a title-bar button.
  • Removed the native Wayland override from v2 settings because current Electron releases select native Wayland automatically and the old override no longer changed desktop behavior.
  • Removed desktop update and release-note settings from the web settings screen. They remain available in the desktop app.

Legacy settings and behavior are unchanged.

Closes #32026
Closes #31845

@Hona Hona requested a review from Brendonovich as a code owner June 13, 2026 10:40
Copilot AI review requested due to automatic review settings June 13, 2026 10:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the v2 “visibility” preferences (file tree, navigation controls, command palette/search, terminal, server status, and custom agents) behave consistently across web and desktop by centralizing the “is this feature visible in v2?” logic in the settings context, while keeping legacy (non-v2) behavior unchanged.

Changes:

  • Introduces a settings.visibility policy that gates advanced UI elements based on newLayoutDesigns + the existing advanced preferences.
  • Replaces platform-specific v2 checks in session/titlebar/composer code with the shared settings.visibility.* accessors.
  • Exposes the Advanced section in v2 settings on web and updates EN/UK descriptions to remove desktop-only wording.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/app/src/context/settings.tsx Adds centralized visibility accessors derived from newLayoutDesigns and existing “showX” preferences.
packages/app/src/pages/session/use-session-commands.tsx Uses settings.visibility.fileTree/customAgents to control file tree commands and agent cycling enablement.
packages/app/src/pages/session/session-side-panel.tsx Uses settings.visibility.fileTree to determine whether the file tree panel can be shown.
packages/app/src/pages/session/helpers.ts Simplifies shouldShowFileTree to opened && visible.
packages/app/src/pages/session/helpers.test.ts Updates unit test to reflect new shouldShowFileTree signature/behavior.
packages/app/src/pages/session.tsx Routes file tree visibility through settings.visibility.fileTree().
packages/app/src/components/titlebar.tsx Uses settings.visibility.navigation for navigation controls visibility under v2.
packages/app/src/components/settings-v2/general.tsx Renders AdvancedSection on all platforms (including web).
packages/app/src/components/session/session-header.tsx Uses settings.visibility for search/tree/terminal/status controls instead of desktop-only gating.
packages/app/src/components/prompt-input.tsx Uses settings.visibility.customAgents() to show/hide agent picker controls consistently.
packages/app/src/i18n/en.ts Removes desktop-specific wording from advanced preference descriptions (and clarifies custom agents).
packages/app/src/i18n/uk.ts Removes desktop-specific wording from advanced preference descriptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Hona Hona changed the title fix(app): align v2 visibility settings across platforms feat(app): bring v2 visibility settings to web Jun 13, 2026
@Hona Hona merged commit 45e4606 into anomalyco:dev Jun 13, 2026
12 checks passed
danzeroum added a commit to danzeroum/opencode that referenced this pull request Jun 13, 2026
… docs (#4)

* fix(app): fade overflowing titlebar tabs (anomalyco#32082)

* chore: generate

* fix(app): expand terminal resize gutter hitbox (anomalyco#32169)

* feat(app): bring v2 visibility settings to web (anomalyco#32174)

* fix(opencode): recover expired MCP sessions (anomalyco#32088)

* chore: update nix node_modules hashes

* feat(opencode): add external browser OAuth for snowflake cortex provider (anomalyco#31700)

Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es>
Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com>
Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com>
Co-authored-by: Cortex Code <noreply@snowflake.com>

* chore: generate

* docs(verify): note subtask side-effects; add frontmatter table + http-recorder guidance

* feat(core): add opt-in EventV2 event log and decision.recorded event

---------

Co-authored-by: Luke Parker <10430890+Hona@users.noreply.github.com>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: santigc6 <santigc6@users.noreply.github.com>
Co-authored-by: santiago.gonzalezcarvajcentenera <santiago.gonzalezcarvajcentenera@colaborador.elcorteingles.es>
Co-authored-by: David Fierro <14184197+davidfierro@users.noreply.github.com>
Co-authored-by: Kamesh Sampath <kamesh.sampath@hotmail.com>
Co-authored-by: Cortex Code <noreply@snowflake.com>
Co-authored-by: Claude <noreply@anthropic.com>
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.

Web settings cannot toggle shared advanced preferences V2 Web UI appears to hide several workspace controls behind desktop-only conditions

2 participants