Skip to content

Add flagged outline-fade and docked Session Composer styles - #1096

Merged
ivanfenenko merged 1 commit into
mainfrom
feature/composer-separation-styles
Nov 22, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
feature/composer-separation-styles

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

In dark mode the agent message and the Session Composer share the same raised fill, so it is hard to see where one ends and the other begins. This adds two composer styles on iOS and Android, each behind a feature flag in Settings > Developer Tools > Feature Flags:

  • Composer outline and fade (session_composer_outline_fade): the composer keeps floating, gains a 1pt outline, and the timeline fades into the background above it.
  • Docked composer (session_composer_docked): a full-width bar attached to the keyboard or bottom edge, with a 1pt top edge.

Both flags are off by default, so the current composer is unchanged until one is turned on. If both are on, Docked wins. The outline color is derived from theme tokens, using the same sRGB blend on both platforms. Permission and error outlines keep priority.

Checks

  • iOS and Android both covered
  • Screenshots for UI changes, light and dark, in the comment below
  • Tests run

Android: :app:assembleDebug passes, and the 39 focused tests pass. The full unit suite (3,501 tests) is not green, for reasons that also occur without this change:

  • settledThought_isAStep and thoughtDurationLabel_matchesTuiBuckets depend on the machine's locale.
  • SseRecoveryFaultOracleTest is flaky: it failed 3 of 5 runs with this change and 4 of 5 runs on the base commit, in the same two tests.

iOS: the full unit suite passes (3,864 tests). UI tests were not run. The suite resolved older Firebase-related package pins because Package.resolved is out of date on main. That file is not changed here.

Real app against the scenario harness, on a v2 server: checked both styles for scrolling behind the composer, keyboard open and closed, floating pills, drags that start in the fade, and permission requests. With both flags off, the Android composer area was pixel-identical to the baseline.

Risks / Follow-ups

  • Not checked: the v1 protocol, iOS 26 and earlier (captures are iOS 27.2), non-default themes, tablets and wide windows, Android three-button navigation, and child-lockout in the new styles.
  • Question requests were checked on iOS only.
  • In dark Docked, the composer fill is close to the agent bubble, so the 1pt top edge does most of the separating. This is the main design point to review.
  • One Android "app not responding" dialog appeared during capture after a fast fling on a heavily loaded host. It did not recur, and its cause is unproven.

Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Evidence

Real apps against the scenario harness, with scripted data only.

Dark mode

Android iOS
Current (flags off) Android current dark iOS current dark
Outline + fade, scrolled Android outline dark scrolled iOS outline dark scrolled
Outline + fade, keyboard Android outline dark keyboard iOS outline dark keyboard
Docked, scrolled Android docked dark scrolled iOS docked dark scrolled
Docked, keyboard Android docked dark keyboard iOS docked dark keyboard

Light mode

Android iOS
Current (flags off) Android current light iOS current light
Outline + fade, scrolled Android outline light scrolled iOS outline light scrolled
Outline + fade, keyboard Android outline light keyboard iOS outline light keyboard
Docked, scrolled Android docked light scrolled iOS docked light scrolled
Docked, keyboard Android docked light keyboard iOS docked light keyboard

Feature flags

Android iOS
Android feature flags iOS feature flags

@ivanfenenko
ivanfenenko marked this pull request as ready for review November 22, 2026 15:48

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated review: no finding that 2+ of 3 passes agreed on.

3 finding(s) from a single pass, not posted
  • ios/OpenCode Mobile/OpenCode Mobile/Components/Input/OpenCodeSessionComposerChrome.swift:24 medium: Docked fill centered so it covers timeline above shell (muse-spark-1.3-contributor)
  • ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/View/SessionChatTimelineView.swift:1048 low: iOS adds fade clearance on top of pill reserve, Android takes max (muse-spark-1.3-contributor)
  • ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/SessionChatView.swift:446 low: Draft-state composer scrim omits keyboardOverlap, so the fade does not track the raised composer (glm-5.3-flash)

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.124 · 1 pass(es) stopped early

@ivanfenenko
ivanfenenko added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 9552e06 Nov 22, 2026
@ivanfenenko
ivanfenenko deleted the feature/composer-separation-styles branch November 22, 2026 17:52
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