Skip to content

OpenCode (Rune): switching between top and side tabs glides each tab under the page at full strength (t1435) - #4

Merged
kitlangton merged 1 commit into
mainfrom
t1435-tab-layout-motion
Nov 8, 2026
Merged

kitlangton merged 1 commit into
mainfrom
t1435-tab-layout-motion

Conversation

@kitlangton

@kitlangton kitlangton commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Switching Settings › Interface layout between Top tabs and Side tabs now glides each tab cleanly under the page, instead of flashing faint copies over it.
Each tab still flies on its own path between the titlebar and the sidebar; the sidebar and the page move with it.

❌ Before

  1. You pick Side tabs (or Top tabs).
  2. ❌ The tabs fly at partial strength: each tab's pill, avatar and title faded in on its own, alternating level by level.
  3. ❌ They fly over the page's content.

✅ After

  1. You pick Side tabs (or Top tabs).
  2. Each tab flies at full strength from its old slot to its new one.
  3. The page sits on top during the switch, so tabs slide under its edges. The page and sidebar both move on the tabs' glide.
- matched tab flies; its fresh pill/avatar/label each play their own fade-in
+ matched tab flies; everything mounted with it shows at once (Rune #251)
- tabs drawn over the page; panel and sidebar on their usual springs
+ while switching: panel raised above the flying tabs; panel and sidebar on the tabs' GLIDE

📊 Proof (quarter speed, fixture; before left, after right)

layout-switch-before-after-quarter.mp4
Case Before After
Tab title strength while flying ❌ faint ✅ full
Tab drawn over the page mid-move ❌ yes ✅ never

The new frame-by-frame test (motion_gate::layout_switch) checks every tab, every frame: one copy each, title at full strength, never over the page, on a straight path with no jump bigger than a quarter of it, landing on its slot. The Rune fix's own test fails without it (a nested child draws at 0.014 on the first frame).

👀 Read: view.rs shell(), where the titlebar row moves below the panel only while switching. The four new gate allow rows cover handoffs the gate can't pair (a sidebar row leaving as its matched tab flies in) and the long tab flights' first-frame acceleration. The rest is routine.

🔍 Seen in real use · new story "Settings/Layout switch" (S / T to switch) · the Rune half is anomalyco/rune#251, already in main's Rune pin

Checks run
  • cargo test --locked -p opencode-desktop: 631 passed, 67 failed; the same 67 fail on main (629 passed), none new
  • scripts/motion-audit-desktop layout-switch: 0 findings (22 allowed). The full run and apps/desktop/scripts/motion-audit.sh fail on main too (missing user-menu-… and popup-item-fork keys)
  • scripts/file-size.sh: no errors; scripts/folder-shape.sh: the same 2 errors as main
  • cargo check -p session-view --examples: ok
  • Rune: cargo test -p rune -p rune-kit --features rune-kit/markdown fails the same 16 tests with and without the fix

@kitlangton kitlangton changed the title fix(desktop): switching between top and side tabs glides each tab under the page at full strength (t1435) OpenCode (Rune): switching between top and side tabs glides each tab under the page at full strength (t1435) Nov 7, 2026
@kitlangton
kitlangton force-pushed the t1435-tab-layout-motion branch from 894f0b1 to 8dc6648 Compare November 8, 2026 01:27
@kitlangton
kitlangton merged commit d21c528 into main Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into main. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode-rune/desktop/dev/macos-arm64-dmg.

This branch was previously deployed

1 inactive deployment
release — 8dc66489 Deployed Nov 8, 2026 by kitlangton via sign-macos #6
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