git.iko.soy/opencode-android
on master help sign in
Fix chat crash by using stable Long keys for DiffView produceState color params
commit15d51d8cdb49df77bb9f622709c3c9423f10c07d authoriko <mail@iko.soy> dateTue 7 Jul 2026, 22:09 (3 months ago) parentae3e393
1 file changed+3−2
app/src/main/java/soy/iko/opencode/ui/components/DiffView.kt+3−2
app/src/main/java/soy/iko/opencode/ui/components/DiffView.kt+3−2
@@ -339,8 +339,9 @@ private fun rememberDiffRows(
339339): DiffRows = produceState<DiffRows>(
340340 DiffRows(emptyList(), 0),
341341 diff, expanded, collapsedHunks,
342− addColor, removeColor, addText, removeText,
343− tertiary, onSurface, onSurfaceVariant,
342+ addColor.value.toLong(), removeColor.value.toLong(),
343+ addText.value.toLong(), removeText.value.toLong(),
344+ tertiary.value.toLong(), onSurface.value.toLong(), onSurfaceVariant.value.toLong(),
344345) {
345346 val result = withContext(Dispatchers.Default) {
346347 runCatchingCancellable {