@@ -97,6 +97,8 @@ private fun ReasoningBlock(text: String, streaming: Boolean, modifier: Modifier)
97 var expanded by rememberSaveable { mutableStateOf(false) }
97 var expanded by rememberSaveable { mutableStateOf(false) }
98 val expandedState = stringResource(R.string.state_expanded)
98 val expandedState = stringResource(R.string.state_expanded)
99 val collapsedState = stringResource(R.string.state_collapsed)
99 val collapsedState = stringResource(R.string.state_collapsed)
100+ val thinkingLabel = stringResource(R.string.thinking)
101+ val thoughtsLabel = stringResource(R.string.thoughts)
100 Column(modifier = modifier.fillMaxWidth()) {
102 Column(modifier = modifier.fillMaxWidth()) {
102 modifier = Modifier
104 modifier = Modifier
@@ -110,7 +112,6 @@ private fun ReasoningBlock(text: String, streaming: Boolean, modifier: Modifier)
110 verticalAlignment = Alignment.CenterVertically,
112 verticalAlignment = Alignment.CenterVertically,
112 if (streaming) {
114 if (streaming) {
113− val thinkingLabel = stringResource(R.string.thinking)
114 CircularProgressIndicator(
115 CircularProgressIndicator(
115 Modifier.size(14.dp).semantics { contentDescription = thinkingLabel },
116 Modifier.size(14.dp).semantics { contentDescription = thinkingLabel },
116 strokeWidth = 2.dp,
117 strokeWidth = 2.dp,
@@ -125,7 +126,7 @@ private fun ReasoningBlock(text: String, streaming: Boolean, modifier: Modifier)
128− if (streaming) stringResource(R.string.thinking) else stringResource(R.string.thoughts),
129+ if (streaming) thinkingLabel else thoughtsLabel,
129 style = MaterialTheme.typography.labelMedium,
130 style = MaterialTheme.typography.labelMedium,
130 color = MaterialTheme.colorScheme.onSurfaceVariant,
131 color = MaterialTheme.colorScheme.onSurfaceVariant,
131 modifier = Modifier.padding(start = 6.dp),
132 modifier = Modifier.padding(start = 6.dp),