refactor(workspace): fix viewportLocked regression and wire run status callback
This commit is contained in:
@@ -296,9 +296,10 @@ export function LaneConsolePane({
|
|||||||
data-testid="pane-lane-select"
|
data-testid="pane-lane-select"
|
||||||
aria-label={tLanes("splitView.paneLaneLabel")}
|
aria-label={tLanes("splitView.paneLaneLabel")}
|
||||||
className="rounded border border-border bg-surface-1 px-2 py-1 text-xs text-fg-secondary"
|
className="rounded border border-border bg-surface-1 px-2 py-1 text-xs text-fg-secondary"
|
||||||
value={laneId}
|
value={laneId ?? ""}
|
||||||
onChange={(e) => onLaneIdChange(Number(e.target.value))}
|
onChange={(e) => e.target.value && onLaneIdChange(Number(e.target.value))}
|
||||||
>
|
>
|
||||||
|
<option value="">{tLanes("splitView.pickLane")}</option>
|
||||||
{lanes.map((l) => (
|
{lanes.map((l) => (
|
||||||
<option key={l.id} value={l.id}>
|
<option key={l.id} value={l.id}>
|
||||||
{l.title || l.cwd}
|
{l.title || l.cwd}
|
||||||
@@ -353,7 +354,7 @@ export function LaneConsolePane({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!handle ? (
|
{!handle && laneId !== null ? (
|
||||||
<RunSetup
|
<RunSetup
|
||||||
laneId={laneId}
|
laneId={laneId}
|
||||||
prompt={prompt}
|
prompt={prompt}
|
||||||
@@ -377,10 +378,12 @@ export function LaneConsolePane({
|
|||||||
runHistory={runHistory}
|
runHistory={runHistory}
|
||||||
onResumeFromHistory={onResumeFromHistory}
|
onResumeFromHistory={onResumeFromHistory}
|
||||||
/>
|
/>
|
||||||
|
) : !handle && laneId === null ? (
|
||||||
|
<p className="text-sm text-fg-muted">{tLanes("splitView.pickLane")}</p>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex-1 min-h-0 flex flex-col">
|
<div className="flex-1 min-h-0 flex flex-col">
|
||||||
<TerminalView
|
<TerminalView
|
||||||
runId={handle.id}
|
runId={handle!.id}
|
||||||
wsBaseUrl={window.location.origin.replace(/^http/, "ws")}
|
wsBaseUrl={window.location.origin.replace(/^http/, "ws")}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user