MCPcopy Create free account
hub / github.com/Noumena-Network/code / setSessionTitle

Function setSessionTitle

src/bridge/bridgeUI.ts:505–518  ·  view source on GitHub ↗
(sessionId: string, title: string)

Source from the content-addressed store, hash-verified

503 },
504
505 setSessionTitle(sessionId: string, title: string): void {
506 const info = sessionDisplayInfo.get(sessionId)
507 if (!info) return
508 info.title = title
509 // Guard against reconnecting/failed — renderStatusLine clears then returns
510 // early for those states, which would erase the spinner/error.
511 if (currentState === 'reconnecting' || currentState === 'failed') return
512 if (sessionMax === 1) {
513 // Single-session: show title in the main status line too.
514 currentState = 'titled'
515 currentStateText = truncatePrompt(title, 40)
516 }
517 renderStatusLine()
518 },
519
520 removeSession(sessionId: string): void {
521 sessionDisplayInfo.delete(sessionId)

Callers

nothing calls this directly

Calls 2

renderStatusLineFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected