Repository navigation
fix(composer): disable touch composer on desktop - #2082
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Hona
added a commit
that referenced
this pull request
Dec 1, 2026
Hona
added a commit
that referenced
this pull request
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ports official
anomalyco/opencode#67612(fix(app): disable touch composer on desktop, commit40ce89c032).Summary
apps/desktop/src/shell/view/composer/touch.rs::mountedbehindcfg!(target_arch = "wasm32")so native desktop builds never mount the bottom touch composer dock, never hide inline composer actions/Submit, and never switch Return to newline-only mode on touch-capable Windows 2-in-1s, pen displays, or remote desktop sessions.wasm32web build (apps/web) behavior unchanged for phones and tablets.touchmemo input inapps/desktop/src/shell/view/composer.rs::composer_dockbehindcfg!(target_arch = "wasm32")to match.Upstream Hunk Mapping
packages/app/src/composer/editor/editor.tsx(import { usePlatform },const platform = usePlatform(),const touch = platform.platform === "desktop" ? () => false : createMediaQuery("(hover: none) and (pointer: coarse)")) ->apps/desktop/src/shell/view/composer/touch.rs::mounted(!cfg!(target_arch = "wasm32")early return) andapps/desktop/src/shell/view/composer.rs::composer_dock(let touch = cfg!(target_arch = "wasm32") && session_view::style::touch_controls()).composer::touch::bar, hiding the inline submit button viaComposerHost::composer_docked_actions, switching toolbar items, shell-mode min-height/toolbar hiding, and Return-inserts-newline keyboard handling) flows throughtouch::mounted(s).Verification
scripts/guardrails.ps1: 11/11 passed.