chore: fmt

This commit is contained in:
Brooklyn Nicholson 2026-04-16 21:09:50 -05:00
parent c74017f405
commit c730ab8ad7
5 changed files with 17 additions and 9 deletions

View file

@ -169,7 +169,6 @@ export function createGatewayEventHandler(ctx: GatewayEventHandlerContext): (ev:
}
return
case 'session.info': {
const info = ev.payload

View file

@ -383,7 +383,10 @@ export function useMainApp(gw: GatewayClient) {
}
const next = composerActions.dequeue()
if (next) sendQueued(next)
if (next) {
sendQueued(next)
}
}, [ui.sid, ui.busy, composerActions, composerRefs, sendQueued])
const { pagerPageSize } = useInputHandlers({

View file

@ -114,11 +114,17 @@ export function useSessionLifecycle(opts: UseSessionLifecycleOptions) {
usage: usageFrom(info)
})
if (info) setHistoryItems([introMsg(info)])
if (info) {
setHistoryItems([introMsg(info)])
}
if (info?.credential_warning) sys(`warning: ${info.credential_warning}`)
if (info?.credential_warning) {
sys(`warning: ${info.credential_warning}`)
}
if (msg) sys(msg)
if (msg) {
sys(msg)
}
},
[closeSession, colsRef, resetSession, rpc, setHistoryItems, setSessionStartedAt, sys]
)

View file

@ -20,8 +20,7 @@ const TAGLINE = `${DIM}⚕ Nous Research · Messenger of the Digital Gods${RESET
const FALLBACK = `\x1b[1m${GOLD}⚕ NOUS HERMES${RESET}`
export function bootBanner(cols: number = process.stdout.columns || 80): string {
const body =
cols >= LOGO_WIDTH ? LOGO.map((text, i) => `${GRADIENT[i]}${text}${RESET}`).join('\n') : FALLBACK
const body = cols >= LOGO_WIDTH ? LOGO.map((text, i) => `${GRADIENT[i]}${text}${RESET}`).join('\n') : FALLBACK
return `\n${body}\n${TAGLINE}\n\n`
}

View file

@ -32,7 +32,9 @@ const StreamingAssistant = memo(function StreamingAssistant({
progress: AppLayoutProgressProps
t: Theme
}) {
if (!progress.showProgressArea && !progress.showStreamingArea) return null
if (!progress.showProgressArea && !progress.showStreamingArea) {
return null
}
return (
<Box flexDirection="column">
@ -117,7 +119,6 @@ const TranscriptPane = memo(function TranscriptPane({
progress={progress}
t={ui.theme}
/>
</Box>
</ScrollBox>