fmt(js): npm run fix on merge (#74694)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-30 08:08:51 +00:00 committed by GitHub
parent c55159f185
commit b5ca900508
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -29,13 +29,15 @@ export function useTerminalTitle(title: string | TerminalTitlePair | null): void
}
if (process.platform === 'win32') {
const clean = stripAnsi(typeof title === 'string' ? title : title.window ?? title.tab ?? '')
const clean = stripAnsi(typeof title === 'string' ? title : (title.window ?? title.tab ?? ''))
process.title = clean
return
}
if (typeof title === 'string') {
writeRaw(osc(OSC.SET_TITLE_AND_ICON, stripAnsi(title)))
return
}
@ -43,6 +45,7 @@ export function useTerminalTitle(title: string | TerminalTitlePair | null): void
// show the short session name instead of a truncated tail.
const tab = stripAnsi(title.tab ?? '')
const window = stripAnsi(title.window ?? '')
if (tab && window) {
writeRaw(osc(OSC.SET_ICON, tab) + osc(OSC.SET_TITLE, window))
} else if (window) {

View file

@ -629,7 +629,7 @@ export function useMainApp(gw: GatewayClient) {
model
? {
tab: composeTabTitle(marker, ui.sessionTitle, '', ''),
window: composeTabTitle(marker, ui.sessionTitle, model, tabCwd ? shortCwd(tabCwd, 24) : ''),
window: composeTabTitle(marker, ui.sessionTitle, model, tabCwd ? shortCwd(tabCwd, 24) : '')
}
: 'Hermes'
)