Merge branch 'main' of git.arirex.me:iris/ai-app
This commit is contained in:
commit
257f4c85c1
2 files changed
+36
-23
No files matched your search
@@ -601,9 +601,6 @@ fun SessionScreen(
|
||||
// screen starts with the end of the conversation and fetches earlier
|
||||
// pages only when somebody scrolls to them.
|
||||
var oldestSeq by remember { mutableLongStateOf(0L) }
|
||||
// Every transcript event loaded, in order, beside the rows they folded
|
||||
// into. See `apply`.
|
||||
var loaded by remember { mutableStateOf(listOf<SessionEvent>()) }
|
||||
// Sent, but not yet read by the session -- which is when the backend
|
||||
// records it and it comes back as a row. Until then it is drawn below
|
||||
// the working indicator, because that is where it is in the session's
|
||||
@@ -686,11 +683,6 @@ fun SessionScreen(
|
||||
if (event is SessionEvent.CommandSent) {
|
||||
waitingCommands = waitingCommands.filterNot { it.first == event.id }
|
||||
}
|
||||
// Kept as well as folded. Folding is one-way -- a tool's
|
||||
// start and end become one row -- so a page arriving in
|
||||
// front of what is already here cannot be stitched on
|
||||
// without the events themselves.
|
||||
loaded = loaded + event
|
||||
items = foldEvent(items, entry)
|
||||
}
|
||||
|
||||
@@ -830,7 +822,6 @@ fun SessionScreen(
|
||||
// screen -- `apply` refills them, and scrolling
|
||||
// up pages the rest back in as it always does.
|
||||
items = listOf()
|
||||
loaded = listOf()
|
||||
held = listOf()
|
||||
oldestSeq = 0L
|
||||
moreHistory = true
|
||||
|
||||
Reference in new issue
Block a user