fix(tui): replace standalone compacting label with animated working label#2302
Open
donglovejava wants to merge 1 commit into
Open
fix(tui): replace standalone compacting label with animated working label#2302donglovejava wants to merge 1 commit into
donglovejava wants to merge 1 commit into
Conversation
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Comment on lines
887
to
+888
| spans.iter().map(|span| span.content.width()).sum() | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
The trailing newline was removed from the end of the file. Most Rust formatters (
rustfmt) and editors expect a newline at EOF; its absence can produce diffs on every subsequent rustfmt run and may trigger linting warnings in CI.
Suggested change
| spans.iter().map(|span| span.content.width()).sum() | |
| } | |
| } | |
| spans.iter().map(|span| span.content.width()).sum() | |
| } |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
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.
Summary
Compacting phase previously showed a static 'compacting' text in the footer status bar, while loading phase used the animated
footer_working_labelwith elapsed seconds. This inconsistency made compacting appear to hang — users saw a static label with no visual feedback during long compaction turns.Changes
Consolidated both phases to use the unified
footer_working_labelwith elapsed seconds, so compacting now shows the same animated dot-pulse and timer as loading. Removed the dead else-if branch that always returnedfooter_working_labelregardless of which path was taken.Verification
cargo check -p codewhale-tui— passesRelated
This continues the feedback improvements from #2166.
Greptile Summary
This PR consolidates the footer status label logic during active turns: instead of a static
"compacting"string for the compacting phase versus an animatedfooter_working_labelfor loading, all active phases now use the unified animated label with elapsed seconds. The deadelsebranch (which already calledfooter_working_label) is also eliminated.if is_loading / else if is_compacting / elseconditional inrender_footeris replaced with a single unconditional call tofooter_working_label, giving users the same animated dot-pulse and(Xs)timer feedback during compaction as during model loading."compacting context") is still surfaced viastall_reasonafter 30 seconds, so long compactions remain identifiable.Confidence Score: 4/5
Safe to merge; the logic change is small and intentional, with the only unintended edit being a dropped trailing newline.
The code simplification is correct — both the
is_loadingandelsebranches were already callingfooter_working_label, so the only real behavioral change is replacing the static"compacting"string with the animated label.footer_working_strip_activealready gates onis_compacting, so the strip stays visible throughout compaction. The sole nit is the missing newline at EOF introduced alongside the logic change.No files require special attention beyond the trailing-newline nit in
footer_ui.rs.Important Files Changed
if is_loading / else if is_compacting / elsechain in favour of always callingfooter_working_label, so animated dot-pulse and elapsed-seconds timer are shown uniformly during all active phases. A trailing newline was also inadvertently dropped from the file.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[render_footer called] --> B{footer_working_strip_active?} B -- No --> C[Check for selected_detail_footer_label] B -- Yes --> D[active_subagent_status_label?] D -- Some --> G[Use subagent label] D -- None --> E[active_tool_status_label?] E -- Some --> G E -- None --> F["footer_working_label(dot_frame, locale) + elapsed_secs if > 0\n(BEFORE: static 'compacting' string for is_compacting)"] F --> H{stall_reason elapsed > 30s?} H -- Yes --> I[Append: 'compacting context' / 'waiting for model' / etc.] H -- No --> J[Set state_label + animate strip] I --> JReviews (1): Last reviewed commit: "fix(tui): replace standalone compacting ..." | Re-trigger Greptile