Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 4 additions & 3 deletions lib/src/components/wall/lath-wall-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export type LathWallEngine = {

/** Hydration: a persisted Lath layout when usable, else a fresh tree from
* `initialPaneIds` (or one generated id). Returns the resulting pane ids
* (pre-order) and whether the fresh path was taken (so the Wall knows to prime
* default-shell opts, mirroring `addTerminalPanel`). */
* (pre-order) and whether the fresh path was taken, which is what tells the
* Wall's seed effect to prime default-shell opts for the generated ids. */
seed(
lathBlob: unknown,
initialPaneIds: string[] | undefined,
Expand Down Expand Up @@ -233,7 +233,8 @@ export function createLathWallEngine(
}

// 2. Fresh tree from the restored session ids (or one generated id), splitting
// successive panes via the store's autoEdge (as `addTerminalPanel` does).
// successive panes via the store's autoEdge — the `null` position every
// Wall-level add without a reference pane uses.
const ids = initialPaneIds && initialPaneIds.length > 0 ? initialPaneIds : [generatePaneId()];
store.seed(leafTree(ids[0]), [[ids[0], terminalLeafMeta()], ...doorMeta]);
for (let i = 1; i < ids.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/components/wall/workspace-boot-plans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function getWorkspaceBootPlan(workspaceId: WorkspaceId): WallBootProps {
}

/** Drop one Workspace's parked plan: its mount was unwound before the store's
* lifecycle would have pruned it (`unwindAdoption` in
* lifecycle would have pruned it (`discardArrival` in
* `standalone/src/workspace-move.ts`). */
export function forgetWorkspaceBootPlan(workspaceId: WorkspaceId): void {
plans.delete(workspaceId);
Expand Down