1e52b2910c0023260f25e2e0632b1c36dd412502
A call left its group only while it was running, so the moment a command ended it vanished behind "Called 3 tools" -- and a session that has run its last command and is composing its answer, or has finished the turn entirely, spends most of its time in exactly that state. What folds a call back into its run is therefore not finishing but being overtaken: anything arriving behind it, a reply included, makes it history. Standing outside the run is the call's place in the list as it is now rather than something recorded on the call, so it is asked of the list while grouping it, where the rest of that decision already lives. Checked with ktfmtFormat, compileDebugKotlin, testDebugUnitTest and lintDebug, and on the emulator against the sandbox: "/tools 3 1" settles as "Called 2 tools" with the third Bash card beneath it, and folds to "Called 3 tools" the moment the next reply lands.
Languages
Rust
53%
Kotlin
44.4%
Shell
2.6%