chore(clean up): remove unused imports, unnecessary object impls, concurrency/coroutine issues, trailing commas, etc.

This commit is contained in:
2026-05-24 22:56:19 +04:00
parent 71aac8afc9
commit ac05ad8733
16 changed files with 85 additions and 83 deletions
@@ -51,7 +51,7 @@ fun main(args: Array<String>) {
log.debug("got input state after reducers: {}", next.input)
log.debug(
"got session state after reducers: {}",
next.sessions.sessions.firstOrNull() { it.status != "COMPLETED" },
next.sessions.sessions.firstOrNull { it.status != "COMPLETED" },
)
state = next
effects.forEach { effect ->
@@ -71,7 +71,7 @@ private fun createRowsForNavigate(
hasSession: Boolean,
): Pair<Line?, Line?> {
val row1Line = Line.from(Span.styled(" ↑↓ sessions enter select", dimStyle))
val hints = buildList<String> {
val hints = buildList {
add("$sessionName · navigate")
add("tab router")
if (hasApproval) {
@@ -96,7 +96,7 @@ private fun createRowsForRouter(
} else {
Line.from(Span.raw(""), Span.styled("Ask anything…", dimStyle))
}
val hints = buildList<String> {
val hints = buildList {
add("$sessionName · router")
add("tab navigate")
if (hasApproval) {