@@ -61,6 +61,7 @@ type CommandPaletteProps = {
6161 catalogItems : readonly PaletteItem [ ] ;
6262 sessionSearchFailed : boolean ;
6363 sessionSearchPartial : boolean ;
64+ sessionSearchIncomplete : boolean ;
6465 onToggle : ( ) => void ;
6566 onQueryChange : ( query : string ) => void ;
6667 onActiveIndexChange : ( index : number ) => void ;
@@ -234,9 +235,13 @@ function renderCommandPalette(props: CommandPaletteProps) {
234235 } }
235236 />
236237 < div id =${ paletteListboxId } class ="cmd-palette__results" role="listbox">
237- ${ props . sessionSearchPartial
238+ ${ props . sessionSearchPartial || props . sessionSearchIncomplete
238239 ? html `< div class ="cmd-palette__empty " role ="status ">
239- ${ t ( "palette.searchPartial" ) }
240+ ${ t (
241+ props . sessionSearchIncomplete
242+ ? "palette.searchIncomplete"
243+ : "palette.searchPartial" ,
244+ ) }
240245 </ div > `
241246 : nothing }
242247 ${ grouped . length === 0
@@ -308,6 +313,7 @@ export class CommandPalette extends OpenClawLightDomContentsElement {
308313 @state ( ) private catalogItems : readonly PaletteItem [ ] = [ ] ;
309314 @state ( ) private sessionSearchFailed = false ;
310315 @state ( ) private sessionSearchPartial = false ;
316+ @state ( ) private sessionSearchIncomplete = false ;
311317
312318 private readonly subscriptions = new SubscriptionsController ( this ) ;
313319 private sessionSearchTimer : ReturnType < typeof globalThis . setTimeout > | null = null ;
@@ -407,6 +413,7 @@ export class CommandPalette extends OpenClawLightDomContentsElement {
407413 this . sessionItems = [ ] ;
408414 this . sessionSearchFailed = false ;
409415 this . sessionSearchPartial = false ;
416+ this . sessionSearchIncomplete = false ;
410417 }
411418
412419 private clearCatalogSearch ( ) {
@@ -461,6 +468,7 @@ export class CommandPalette extends OpenClawLightDomContentsElement {
461468 this . sessionItems = [ ] ;
462469 this . sessionSearchFailed = false ;
463470 this . sessionSearchPartial = false ;
471+ this . sessionSearchIncomplete = false ;
464472 const search = normalizeOptionalString ( query ) ;
465473 if ( ! this . open || ! search || search . length < SESSION_SEARCH_MIN_CHARS ) {
466474 return ;
@@ -572,10 +580,10 @@ export class CommandPalette extends OpenClawLightDomContentsElement {
572580 return ;
573581 }
574582 const transcriptResult = transcriptOutcome ?. result ?? null ;
575- this . sessionSearchPartial =
576- transcriptOutcome ?. error === true ||
577- transcriptResult ?. indexing === true ||
578- transcriptResult ?. truncated === true ;
583+ this . sessionSearchPartial = transcriptOutcome ?. error === true ;
584+ this . sessionSearchIncomplete =
585+ transcriptOutcome ?. error !== true &&
586+ ( transcriptResult ?. indexing === true || transcriptResult ?. truncated === true ) ;
579587 const transcriptHitByKey = new Map < string , SessionsSearchHit > ( ) ;
580588 for ( const hit of transcriptResult ?. results ?? [ ] ) {
581589 if ( ! transcriptHitByKey . has ( hit . sessionKey ) ) {
@@ -660,6 +668,7 @@ export class CommandPalette extends OpenClawLightDomContentsElement {
660668 ] ,
661669 sessionSearchFailed : this . sessionSearchFailed ,
662670 sessionSearchPartial : this . sessionSearchPartial ,
671+ sessionSearchIncomplete : this . sessionSearchIncomplete ,
663672 desktopAvailable : this . desktopAvailable ,
664673 custodianAvailable : this . custodianAvailable ,
665674 onToggle : this . togglePalette ,
0 commit comments