Skip to content

Commit 4c96ec1

Browse files
blockframe-header: show frame:title in durable shell block headers
Durable shell-controller blocks (used by remote/SSH terminal panes, including via wsh createblock) render their header with useTermHeader true, which skips the entire viewName/frame:title block entirely - so frame:title had no effect for these blocks even though it works for every other block type. This left every durable pane on a given connection showing an identical, generic connection-name header with no way to distinguish them (e.g. multiple tmux-attached sessions on the same host). Render frame:title inside the useTermHeader branch too, next to the connection button, so a caller (wsh setmeta / wsh createblock) can label a durable session distinctly.
1 parent 97e5600 commit 4c96ec1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎frontend/app/block/blockframe-header.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ const BlockFrame_Header = ({
271271
isTerminalBlock={isTerminalBlock}
272272
/>
273273
)}
274+
{useTermHeader && metaFrameTitle && (
275+
<div className="block-frame-view-type" key="frame-title">
276+
{metaFrameTitle}
277+
</div>
278+
)}
274279
{useTermHeader && termConfigedDurable != null && (
275280
<DurableSessionFlyover
276281
key="durable-status"

0 commit comments

Comments
 (0)