fix(frontend): show session display name in terminal toolbar header

The terminal toolbar showed the raw session id. Show the display name
(session.title, same field the sidebar renders) instead, and
'Orchestrator' for orchestrator sessions.

Fixes #2380

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Harshit Singh Bhandari 2026-07-03 20:15:00 +05:30
parent 3aa8e044b2
commit b46e14df19
No known key found for this signature in database
1 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import { ChevronLeft, Maximize2, Minimize2, Shield } from "lucide-react";
import { useCallback, useEffect, useRef, useState, type WheelEvent } from "react";
import type { Theme } from "../stores/ui-store";
import type { TerminalTarget } from "../types/terminal";
import type { WorkspaceSession } from "../types/workspace";
import { isOrchestratorSession, type WorkspaceSession } from "../types/workspace";
import { TerminalPane } from "./TerminalPane";
type CenterPaneProps = {
@ -99,7 +99,9 @@ export function CenterPane({ session, theme, daemonReady, terminalTarget, onSele
<div className="terminal-toolbar">
<div className="terminal-toolbar__label">
<span className="terminal-toolbar__eyebrow">TERMINAL</span>
<span className="terminal-toolbar__session">{session?.id ?? "No session"}</span>
<span className="terminal-toolbar__session">
{!session ? "No session" : isOrchestratorSession(session) ? "Orchestrator" : session.title}
</span>
</div>
<div className="terminal-toolbar__controls">
<button