Repository navigation
fix(tui): give a failed session an error notice, not a success tick - #718
Merged
Merged
Conversation
The `Attention` arm hardcoded `FeedbackSeverity::Ok`, so every out-of-band session notice arrived wearing a success marker: a failed turn read `[✓] Session failed`, and one stopped for input read `[✓] Session needs input`. The severity now comes from the turn state, following the design system's lifecycle grammar: `[✓]` completed, `[!]` failed, `[?]` for a turn waiting on the operator or interrupted, and neutral for a cancelled turn the operator stopped themselves. The arm binds `state` instead of discarding it with `..`.
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
The
SupervisorEvent::Attentionarm hardcodedFeedbackSeverity::Ok, so every out-of-band session notice arrived wearing a success marker:[✓] Session failed[✓] Session needs inputThe arm now destructures
state(previously discarded with..) and maps it through a newsession_notice_severity, which follows the lifecycle grammar inFORGE-DESIGN.md§5.3:Completed[✓]OkFailed[!]ErrorWaiting[?]WarnInterrupted[?]WarnCancelledCancelledis deliberately neutral rather than a success or a failure — the operator is the one who stopped it.Interruptedis a warning because both of its call sites carry "A prompt was interrupted; review it before retrying".Verification
the_turn_state_picks_the_markerasserts each of the five states, andno_other_state_reports_successasserts no state other thanCompletedmay announce itself as a success.cargo test --package forge-tui --locked multi_task54 passed,toast9,feedback15.cargo fmt --all -- --checkclean.cargo clippy --package forge-tui --all-targets --locked -- -D warningsclean.Scope
Split out from #717, which fixed the duplicate notice but deliberately preserved the hardcoded severity to keep that diff focused. The ~153
set_feedback-only call sites and the severity vocabulary unification are still untouched.