File tree Expand file tree Collapse file tree
app/src/main/kotlin/com/google/ai/sample/feature/multimodal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2663,10 +2663,11 @@ private fun processCommands(text: String) {
26632663 }
26642664 val termuxOutputInfo = TermuxOutputPreferences .consumeOutput(appContext)?.let { " Termux output:\n $it " }
26652665 if (! termuxOutputInfo.isNullOrBlank()) {
2666- Log .i(TAG , " buildEnrichedScreenInfo: Injecting Termux output into next screen-info bubble. chars=${termuxOutputInfo.length} " )
2666+ Log .i(TAG , " buildEnrichedScreenInfo: Replacing screen-elements bubble with Termux output. chars=${termuxOutputInfo.length} " )
2667+ return termuxOutputInfo
26672668 }
26682669 val missingInfo = listOfNotNull(appNotFoundInfo, termuxNotFoundInfo).joinToString(" \n " ).ifBlank { null }
2669- val extraInfo = listOfNotNull(missingInfo, retrievedInfo, termuxOutputInfo ).joinToString(" \n\n " ).ifBlank { null }
2670+ val extraInfo = listOfNotNull(missingInfo, retrievedInfo).joinToString(" \n\n " ).ifBlank { null }
26702671
26712672 return when {
26722673 ! extraInfo.isNullOrBlank() && ! screenInfo.isNullOrBlank() -> " $extraInfo \n\n $screenInfo "
You can’t perform that action at this time.
0 commit comments