|
57 | 57 | the shared-mode timeline |
58 | 58 | (`CrewTimeline`) renders one composer per worker so the user types each |
59 | 59 | task manually; split timeline rounds show each lane's own prompt in that |
60 | | - lane card instead of one shared round prompt. Isolated mode already has |
61 | | - per-lane composers. |
| 60 | + lane card instead of one shared round prompt. Isolated mode |
| 61 | + (`CrewColumns`) keeps one composer inside each lane pane card. |
62 | 62 | - `broadcast`: the same message fans out to every worker (`handleBroadcast`), |
63 | 63 | and the supervisor is told it may use `"to":"all"`; the hard split gates |
64 | | - do not apply. |
| 64 | + do not apply. Without a supervisor, BOTH modes collapse to a single |
| 65 | + composer: shared mode uses the `crew-timeline-foot`, isolated mode drops |
| 66 | + every per-lane composer and renders one centered `crew-broadcast-foot` |
| 67 | + under the lane grid. Either one carries a `BroadcastTargetChip`, so the |
| 68 | + next send can still be retargeted at one enabled lane without leaving |
| 69 | + broadcast. |
65 | 70 | - The toggle dispatches `set_distribution`, which — unlike `set_mode` — is |
66 | 71 | legal at any lifecycle phase, so it can be flipped mid-run and takes effect |
67 | 72 | on the next prompt. |
|
89 | 94 | supervisor loop, and lane composer stop buttons stop only that lane so the |
90 | 95 | next prompt respawns it. |
91 | 96 |
|
| 97 | + 7d-i. Isolated lane layout — `CrewColumns` renders lanes into Workbench's |
| 98 | + |
| 99 | + responsive pane grid (`.canvas-mode-pane-grid` from `styles.css`, with a |
| 100 | + denser `.crew-pane-grid` track floor of 420px/520px in `crew-surface.css`) |
| 101 | + instead of a horizontal scroller. Each `LaneColumn` is a |
| 102 | + `.canvas-mode-pane` card whose title strip is a `.canvas-mode-pane-bar` |
| 103 | + (provider logo, agent name, role pill, restart, status dot); the lane's |
| 104 | + branch, model picker, run switch, effort, next action, and usage strip stay |
| 105 | + in `.lane-head` directly beneath the bar. Lanes wrap onto new rows rather |
| 106 | + than squeezing, and `--lane-i` still drives the entry stagger. |
| 107 | + |
| 108 | + 7d-iii. Lane reading affordances — a lane thread follows the newest output |
| 109 | + |
| 110 | + while its worker streams via `useStickToBottom` (`hooks/useStickToBottom.ts`, |
| 111 | + 72px threshold, scroll applied in the next animation frame so a streaming |
| 112 | + turn never forces a synchronous reflow of the surface). Following is |
| 113 | + suspended the moment the operator scrolls up and re-armed when they scroll |
| 114 | + back down; a sticky `lane-scroll-bottom` button appears only while unpinned. |
| 115 | + The waiting loader is driven by `useIsBridgeRunning(lane.bridgeId)`, NOT by |
| 116 | + `lane.bridgeId != null` / `lane.status === 'running'` — both of those mean |
| 117 | + "a runtime is attached" and stay true between turns, which would leave a |
| 118 | + permanent spinner. |
| 119 | + Each lane pane bar also carries an expand/shrink button: expanding renders |
| 120 | + that lane alone in a single full-surface grid track (`.crew-pane-grid.is-maximized`), |
| 121 | + with `Escape` restoring the grid. The maximized lane is resolved against live |
| 122 | + `session.lanes`, so a lane edited away or archived while expanded falls back |
| 123 | + to the grid instead of rendering an empty surface. |
| 124 | + |
| 125 | + 7d-ii. Lane approvals and the composer dock — worker lane bridges start with |
| 126 | + |
| 127 | + mode `'build'` (workers execute; only the supervisor starts `'ask'` / |
| 128 | + `'read-only'`). That is what makes `TurnPermissionGrantStore.prepareRequest` |
| 129 | + attach `allowAllForTurn`, so lane permission cards get the same |
| 130 | + "allow all (this turn ONLY)" button as a solo Build-mode chat. Eligibility |
| 131 | + is `kind === 'permission'` + a `turnId` + `mode === 'build'` + |
| 132 | + `toolPolicy !== 'read-only'`; the grant is keyed `bridgeId\0turnId` and dies |
| 133 | + with the turn, so it never outlives the turn that authorized it. Passing the |
| 134 | + mode explicitly does not change provider behavior — every bridge already |
| 135 | + treats an absent mode the same as `'build'`. |
| 136 | + `AgentActivityOverlay` renders in a `lane-composer-dock` pinned above the |
| 137 | + lane composer (mirroring solo's `composer-dock`) rather than inside the |
| 138 | + scrolling thread, so a turn-blocking permission pause cannot be scrolled out |
| 139 | + of view. The dock renders even when the composer is hidden (broadcast |
| 140 | + distribution or Supervisor-owned input) so the pause stays answerable. |
| 141 | + |
92 | 142 | 7e. Supervisor reporting cadence — worker replies are fed back incrementally, |
93 | 143 |
|
94 | 144 | not batched. `useCrewSupervisor.feedSupervisor()` nudges the supervisor the |
|
0 commit comments