Repository navigation
fix(tui): render tool activity before the final answer (chronological order) - #258
Merged
Merged
Conversation
…cal order The final answer was composed before the tool-call activity groups, so a completed turn read as input -> output -> tool calls even though the session stream is input -> tool calls -> output. Emit activity first so the transcript reads chronologically.
mohitranka
added a commit
that referenced
this pull request
Aug 21, 2026
…cal order (#258) The final answer was composed before the tool-call activity groups, so a completed turn read as input -> output -> tool calls even though the session stream is input -> tool calls -> output. Emit activity first so the transcript reads chronologically.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…cal order (#258) The final answer was composed before the tool-call activity groups, so a completed turn read as input -> output -> tool calls even though the session stream is input -> tool calls -> output. Emit activity first so the transcript reads chronologically.
mohitranka
added a commit
that referenced
this pull request
Sep 11, 2026
…cal order (#258) The final answer was composed before the tool-call activity groups, so a completed turn read as input -> output -> tool calls even though the session stream is input -> tool calls -> output. Emit activity first so the transcript reads chronologically.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Completed turns rendered
input → output → tool calls: the final answer was composed before the tool-call activity groups. The session stream is actuallyinput → tool calls → output, so the transcript read out of order.Fix
compose_turn_presentation(conversation.rs) now emitsactivitybeforeanswers/failures, restoring chronology:input → tool calls → output.Updated three tests that pinned the old order (
completed_turn_composes_activity_before_answer,semantic_blocks_keep_assistant_answer_separate_from_activity,failed_turn_renders_activity_before_failure).Validation
cargo fmt --all -- --checkcleancargo clippy --workspace --all-targets --locked -- -D warningscleancargo test --package forge-tui --lib: 740 passedKnown: 3
forge-configpermissions tests fail on this machine (environmental, read the developer's real user-levelpermissions.toml) — confirmed pre-existing on cleanmain, unrelated to this change.