Skip to content

#359 Changes and Terminals split views - #642

Merged
ivanfenenko merged 2 commits into
mainfrom
feature/359-changes-terminals-split
Oct 11, 2026
Merged

ivanfenenko merged 2 commits into
mainfrom
feature/359-changes-terminals-split

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • On a window wide enough for two 500pt columns, Changes shows the file list beside the diff, and selecting a file swaps the diff instead of pushing. The Terminals catalog shows the catalog beside a live terminal, using the same OpenCodeSplitPane handle.
  • Opening Changes from a chat collapses the Home sidebar for that visit and restores the previous state on pop. The collapse is not written to split-pane preferences.
  • Narrower windows, including phones and an 11-inch tablet in portrait, keep the current push.

Checks

  • Android: :app:compileDebugKotlin succeeded. OpenCodeSplitPaneLayoutTest and SplitPanePreferencesCodecTest passed.
  • iOS: OpenCodeSplitPaneLayoutTests and SplitPanePreferencesTests passed (21 tests) on the iPhone 17 Pro simulator. The app target compiled as part of that run.

Issue

Risks / Follow-ups

  • A content split starts only at 1001pt so both columns can stay at least 500. Regular-width portrait, including an 11-inch iPad, stays a push because two 500pt columns do not fit.
  • Android Changes opened from Session Chat now stays in the Home trailing pane so the sidebar can collapse beside it. Other chat pushes (context, tool groups, child sessions, terminal from chat) still cover the split. That remainder is Session Chat lifecycle in the split view #357.
  • The Terminals split is included. Changes and Terminals split views #359 said to drop it if the iPad build shows it is unused.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.


Note

Medium Risk
Touches core navigation and split-pane layout on both platforms, including new nested state when opening Changes from Home split chat; behavior changes at wide vs narrow breakpoints but phones keep push navigation.

Overview
Adds content split panes on wide windows (≥1001pt/dp so each column can stay at least 500): Changes shows the file list beside the diff, and Terminals shows the catalog beside a live shell, with list selection highlighting and shared resize handle behavior.

Extends OpenCodeSplitPane with per-screen bounds (sidebar vs content metrics), persisted widths for .changes / .terminals, and nesting so a nested content split temporarily collapses the Home sidebar without writing that collapse to preferences.

On Home split layout, opening review changes from embedded session chat stays in the trailing pane via nestedChanges (overlay + back handling) instead of pushing a Changes route; narrowing the window still hands off to stacked navigation.

Android and iOS are updated in parallel, with layout/preference unit tests for content bounds and stored widths above the old 480 sidebar cap.

Reviewed by Cursor Bugbot for commit 7ae1f12. Bugbot is set up for automated code reviews on this repo. Configure here.

On a window wide enough for two 500pt columns, Changes and Terminals use
OpenCodeSplitPane instead of pushing. Opening Changes from a chat collapses
the Home sidebar for that visit and restores it on pop.
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

@cursor review

@ivanfenenko
ivanfenenko marked this pull request as ready for review October 11, 2026 12:01

@cursor cursor 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.

Cursor Bugbot has reviewed your changes using high effort and found 3 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7ae1f12. Configure here.

Remount the split file viewer when the path changes, drop the split
selection when handing a file to the stacked route, and clear the
Changes overlay on home reset.
@ivanfenenko
ivanfenenko merged commit f215857 into main Oct 11, 2026
@ivanfenenko
ivanfenenko deleted the feature/359-changes-terminals-split branch October 11, 2026 12:22
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.

Changes and Terminals split views

1 participant