mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
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:
parent
c55159f185
commit
b5ca900508
2 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue