Skip to content
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
b6b780e
Serialize bonsplit pane layout into mobile workspace list (layout.v1)
Jul 15, 2026
c76eb70
Decode mobile pane layout into iOS value models
Jul 15, 2026
27db84d
Replace iOS terminal picker menu with pane-grouped surface deck
Jul 15, 2026
bb707a7
Add iOS pane map overlay with live terminal previews
Jul 15, 2026
2d28715
Add DEBUG panes-and-tabs fixture preview route
Jul 15, 2026
ce3e3a6
Polish surface deck and pane map from live simulator verification
Jul 15, 2026
ba4b648
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
Jul 17, 2026
29e9f20
Fix escaping-closure capture in sidebar slot view tint
Jul 17, 2026
0891f8b
Anchor pane-map preview window to content and migrate to live themes
Jul 17, 2026
881f34d
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
Jul 21, 2026
8c26fef
Test state sync pane layout projection
Jul 21, 2026
03bf449
Test pane layout observer invalidation gaps
Jul 21, 2026
305e785
Test pane preview rendering and fetch scheduling
Jul 21, 2026
b3c7741
Run pane layout packages in iOS CI
Jul 21, 2026
f441a45
test(ios): constrain pane split ratios
Jul 21, 2026
b33638d
Fix pane preview rendering and cancellation
Jul 21, 2026
51d30bf
Share pane layouts across mobile sync transports
Jul 21, 2026
bdddcf2
feat(ios): complete pane-aware workspace navigation
Jul 21, 2026
75fc3a3
Fix actor initializer for Swift 6.3
Jul 21, 2026
bd307f6
Stabilize pane preview scheduler test
Jul 21, 2026
8e3613f
Fix mobile pane layout invalidation
Jul 22, 2026
682fe04
Stabilize pane observer emission assertion
Jul 22, 2026
afe4c04
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
Jul 22, 2026
f4dbc09
Align window reference state with current main
Jul 22, 2026
fe5da35
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
Jul 22, 2026
d7ea14b
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
Jul 22, 2026
3b2a8e1
Isolate panes preview behind debug route
Jul 22, 2026
bc666eb
Fix pane map on iOS 18
Jul 22, 2026
35934fc
Remove mobile observer test counter
Jul 22, 2026
d85a567
Test mobile observer via emitted updates
Jul 22, 2026
7488cf0
Test constrained iOS pane previews
Jul 22, 2026
a37d8b3
Build Safari-style iOS pane map
azooz2003-bit Jul 22, 2026
28f14d6
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
azooz2003-bit Jul 22, 2026
24a2c49
Test reversible pane map zoom
azooz2003-bit Jul 22, 2026
c0a6fae
Anchor iOS pane zoom to pinch
azooz2003-bit Jul 23, 2026
e50db56
Test polished iOS pane previews
azooz2003-bit Jul 23, 2026
aad1eff
Polish iOS pane previews and zoom
azooz2003-bit Jul 23, 2026
92792d4
Verify interrupted pane zoom settlement
azooz2003-bit Jul 23, 2026
1b739ac
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
azooz2003-bit Jul 23, 2026
24985d8
Polish native iOS pane zoom transitions
azooz2003-bit Jul 23, 2026
bb34705
test(ios): cover pane reorder reconciliation
azooz2003-bit Jul 23, 2026
f074baa
feat(ios): synchronize Safari-style pane layout
azooz2003-bit Jul 23, 2026
b887b36
test(ios): stabilize pane map presentation checks
azooz2003-bit Jul 23, 2026
2677ab8
test(ios): cover direct restored pane presentation
azooz2003-bit Jul 24, 2026
387dda4
fix(ios): restore focused pane on workspace entry
azooz2003-bit Jul 24, 2026
69ae8a5
fix(ios): let pane zoom own toolbar transitions
azooz2003-bit Jul 24, 2026
2892256
fix(ios): prefer focused pane terminal on workspace entry
azooz2003-bit Jul 25, 2026
b62c281
test(ios): cover pane map layout loss route reset
azooz2003-bit Jul 29, 2026
9502fdc
fix(ios): reset pane map route when layout disappears
azooz2003-bit Jul 29, 2026
bec4e06
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
azooz2003-bit Jul 31, 2026
ee9eca7
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
azooz2003-bit Jul 31, 2026
f5293f7
fix(ios): reconcile pane layout merge decoding
azooz2003-bit Jul 31, 2026
2e156bb
test(ios): assert pane transition endpoint stability
azooz2003-bit Jul 31, 2026
0584137
refactor(ios): model pane geometry as values
azooz2003-bit Jul 31, 2026
86f10d0
test(ios): query inert pane title by identifier
azooz2003-bit Jul 31, 2026
6c2d150
test(ios): mirror workspace toolbar in pane preview
azooz2003-bit Jul 31, 2026
5562acf
fix(ios): stabilize shared workspace title geometry
azooz2003-bit Jul 31, 2026
d129f58
fix(ios): stabilize pane map toolbar geometry
azooz2003-bit Jul 31, 2026
4811f75
fix(ios): remove visible pane numbers from deck
azooz2003-bit Jul 31, 2026
53b92bf
fix(ios): retire superseded pending connect clients
azooz2003-bit Jul 31, 2026
dff67f9
fix(ios): anchor pane map toolbar items natively
azooz2003-bit Jul 31, 2026
70a69a9
Fix iOS pane zoom transition background
azooz2003-bit Aug 1, 2026
58f0bcb
fix(ios): retain pane deck outside zoom route
azooz2003-bit Aug 1, 2026
e844e98
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
azooz2003-bit Aug 1, 2026
cac569f
fix(ios): reconcile pane interactions with Mac authority
azooz2003-bit Aug 1, 2026
5cc12c6
test(ios): cover zoom background restoration
azooz2003-bit Aug 1, 2026
3185cdb
test(ios): avoid mutating reorder state in macro
azooz2003-bit Aug 1, 2026
6545e29
fix(mac): restore pane focus after mutation snapshot
azooz2003-bit Aug 1, 2026
3217729
fix(ios): keep surface deck on zoom destination
azooz2003-bit Aug 1, 2026
77e66b5
fix(ios): isolate pane zoom background snapshots
azooz2003-bit Aug 1, 2026
7e64b92
Merge remote-tracking branch 'origin/main' into feat-ios-panes-ux
azooz2003-bit Aug 4, 2026
7cbecf3
fix(panes): resolve Cubic review findings across reorder authority chain
azooz2003-bit Aug 4, 2026
5dbefae
test(panes): cold-open detached pane map must materialize zoom source…
azooz2003-bit Aug 5, 2026
f637c36
fix(panes): pre-warm detached pane-map cells so the first unzoom matc…
azooz2003-bit Aug 5, 2026
719ec2c
fix(panes): deduplicate PaneMapReorderStateTests suite that broke tes…
azooz2003-bit Aug 5, 2026
4cdd8eb
test(panes): drop stale MobileInjectedAttachStartupTests referencing …
azooz2003-bit Aug 5, 2026
1a3ffce
test(panes): import SwiftUI for the cold-open prewarm namespace
azooz2003-bit Aug 5, 2026
b38947c
test(panes): real-shell pane-layout workspace must survive pane-map n…
azooz2003-bit Aug 7, 2026
afb4b6c
fix(panes): host the zoomed terminal as a presentation under pushed s…
azooz2003-bit Aug 7, 2026
61c2901
test(panes): give the cover re-presentation liveness waits CI headroom
azooz2003-bit Aug 7, 2026
bb81ab3
fix(panes): hide covered pane-map chrome from accessibility in push h…
azooz2003-bit Aug 7, 2026
2d0fc11
test(panes): size pane-map return waits for the cover rebuild on CI
azooz2003-bit Aug 7, 2026
00bf152
fix(panes): hide the covered pane-map bar instead of gating items
azooz2003-bit Aug 7, 2026
7386aa1
test(panes): only require pane-map-side hittability in waitForPaneMap
azooz2003-bit Aug 7, 2026
51bf1ab
test(panes): retry the docs-row push if the list swallowed the first tap
azooz2003-bit Aug 7, 2026
5536a50
fix(ios): preserve gated connect failure copy
azooz2003-bit Aug 13, 2026
b27745f
test(panes): dump the AX tree when a pane-map presentation wait times…
azooz2003-bit Aug 13, 2026
38a06df
fix(panes): hide the covered pane map from accessibility at the UIKit…
azooz2003-bit Aug 13, 2026
059ed21
test(panes): dump the AX tree when the post-pane docs push produces n…
azooz2003-bit Aug 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public struct MobileSyncWorkspaceListResponse: Decodable, Sendable {
public let hasUnread: Bool?
/// Terminals belonging to this workspace.
public let terminals: [Terminal]
/// The workspace's pane layout, or `nil` when absent or malformed.
public let layout: Layout?

private enum CodingKeys: String, CodingKey {
case id
Expand All @@ -55,6 +57,122 @@ public struct MobileSyncWorkspaceListResponse: Decodable, Sendable {
case lastActivityAt = "last_activity_at"
case hasUnread = "has_unread"
case terminals
case layout
}

/// Decodes a workspace while isolating optional layout decoding failures.
/// - Parameter decoder: The decoder for one workspace object.
/// - Throws: A decoding error when a required non-layout workspace field is malformed.
public init(from decoder: any Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
id = try container.decode(String.self, forKey: .id)
windowID = try container.decodeIfPresent(String.self, forKey: .windowID)
title = try container.decode(String.self, forKey: .title)
currentDirectory = try container.decodeIfPresent(String.self, forKey: .currentDirectory)
isSelected = try container.decode(Bool.self, forKey: .isSelected)
isPinned = try container.decodeIfPresent(Bool.self, forKey: .isPinned)
groupID = try container.decodeIfPresent(String.self, forKey: .groupID)
preview = try container.decodeIfPresent(String.self, forKey: .preview)
previewAt = try container.decodeIfPresent(Double.self, forKey: .previewAt)
lastActivityAt = try container.decodeIfPresent(Double.self, forKey: .lastActivityAt)
hasUnread = try container.decodeIfPresent(Bool.self, forKey: .hasUnread)
terminals = try container.decode([Terminal].self, forKey: .terminals)
layout = try? container.decode(Layout.self, forKey: .layout)
}
}

/// A wire-level workspace pane layout snapshot.
public struct Layout: Decodable, Sendable {
/// A recursively decoded layout node.
public indirect enum Node: Decodable, Sendable {
/// A split branch with two child nodes.
case split(Split)
/// A leaf pane containing surface tabs.
case pane(Pane)

private enum CodingKeys: String, CodingKey {
case kind
}

private enum Kind: String, Decodable {
case split
case pane
}

/// Decodes a layout node based on its `kind` discriminator.
/// - Parameter decoder: The decoder for one layout node.
/// - Throws: A decoding error for unknown kinds or malformed node data.
public init(from decoder: any Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
let kind = try container.decode(Kind.self, forKey: .kind)
switch kind {
case .split:
self = try .split(Split(from: decoder))
case .pane:
self = try .pane(Pane(from: decoder))
}
}
}

/// A wire-level split branch.
public struct Split: Decodable, Sendable {
/// A split orientation emitted by bonsplit.
public enum Orientation: String, Decodable, Sendable {
/// Places children side by side.
case horizontal
/// Stacks children vertically.
case vertical
}

/// The stable split identifier.
public let id: String
/// The axis along which this split divides its rectangle.
public let orientation: Orientation
/// The first child's proportional share.
public let ratio: Double
/// The first child node.
public let first: Node
/// The second child node.
public let second: Node
}

/// A wire-level leaf pane.
public struct Pane: Decodable, Sendable {
/// The stable pane identifier.
public let id: String
/// The selected surface identifier, when one is selected.
public let selectedSurfaceID: String?
/// The pane's surfaces in tab order.
public let surfaces: [Surface]

private enum CodingKeys: String, CodingKey {
case id
case selectedSurfaceID = "selected_surface_id"
case surfaces
}
}

/// A wire-level surface tab.
public struct Surface: Decodable, Sendable {
/// The stable surface identifier.
public let id: String
/// The raw panel type emitted by the Mac.
public let type: String
/// The surface's display title.
public let title: String
}

/// The Mac-side pane layout version.
public let version: Int
/// The focused pane identifier, when one is focused.
public let focusedPaneID: String?
/// The root of the recursive layout tree.
public let root: Node

private enum CodingKeys: String, CodingKey {
case version
case focusedPaneID = "focused_pane_id"
case root
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,95 @@ extension MobileWorkspacePreview {
hasUnread: remote.hasUnread ?? false,
terminals: remote.terminals.map { terminal in
MobileTerminalPreview(remote: terminal)
}
},
layout: remote.layout.map(MobilePaneLayout.init(remote:))
)
}
}

private extension MobilePaneLayout {
init(remote: MobileSyncWorkspaceListResponse.Layout) {
self.init(
version: remote.version,
focusedPaneID: remote.focusedPaneID,
root: Node(remote: remote.root)
)
}
}

private extension MobilePaneLayout.Node {
init(remote: MobileSyncWorkspaceListResponse.Layout.Node) {
switch remote {
case let .split(split):
self = .split(MobilePaneSplit(remote: split))
case let .pane(pane):
self = .pane(MobilePaneNode(remote: pane))
}
}
}

private extension MobilePaneSplit {
init(remote: MobileSyncWorkspaceListResponse.Layout.Split) {
self.init(
id: remote.id,
orientation: MobilePaneSplitOrientation(remote: remote.orientation),
ratio: min(max(remote.ratio, 0.05), 0.95),
first: MobilePaneLayout.Node(remote: remote.first),
second: MobilePaneLayout.Node(remote: remote.second)
)
}
}

private extension MobilePaneSplitOrientation {
init(remote: MobileSyncWorkspaceListResponse.Layout.Split.Orientation) {
switch remote {
case .horizontal:
self = .horizontal
case .vertical:
self = .vertical
}
}
}

private extension MobilePaneNode {
init(remote: MobileSyncWorkspaceListResponse.Layout.Pane) {
self.init(
id: remote.id,
selectedSurfaceID: remote.selectedSurfaceID,
surfaces: remote.surfaces.map(MobilePaneSurface.init(remote:))
)
}
}

private extension MobilePaneSurface {
init(remote: MobileSyncWorkspaceListResponse.Layout.Surface) {
self.init(
id: remote.id,
type: MobilePaneSurfaceType(remoteRawValue: remote.type),
title: remote.title
)
}
}

private extension MobilePaneSurfaceType {
init(remoteRawValue: String) {
switch remoteRawValue {
case "terminal": self = .terminal
case "browser": self = .browser
case "markdown": self = .markdown
case "filepreview": self = .filepreview
case "rightSidebarTool": self = .rightSidebarTool
case "customSidebar": self = .customSidebar
case "agentSession": self = .agentSession
case "project": self = .project
case "extensionBrowser": self = .extensionBrowser
case "workspaceTodo": self = .workspaceTodo
case "cloudVMLoading": self = .cloudVMLoading
default: self = .other(remoteRawValue)
}
}
}

extension MobileWorkspaceGroupPreview {
/// Build a group preview value from a remote workspace-list group entry.
/// - Parameter remote: A group decoded from the RPC response.
Expand Down
Loading