feat(tui): add unified task state color convention with icons#24406
feat(tui): add unified task state color convention with icons#24406herjarsa wants to merge 8 commits into
Conversation
- Add STATUS_COLORS constant with 6 states: running, waiting, attention, error, done, idle - Each state includes color (ISO 3864 based), icon, and text for WCAG 1.4.1 compliance - Add StatusIndicator, ProjectStatusBadge, SessionStateBanner components - Update ToastShow event to include projectName for multi-project notifications - Update Toast component to display project name and use status colors Closes anomalyco#24404
|
The following comment was made by an LLM, it may be inaccurate: Potential duplicate found:
Why it's related: PR #24369 appears to be the actual implementation of model fallback functionality (handling APIError retries, error classification, fallbackModels chain). The current PR #24406's description mentions these exact features (fallback triggered on retryable APIError, no fallback on AuthError, resolveFallbackChain helper, etc.), but the PR title claims to be about "unified task state color convention with icons" which is a TUI feature. This mismatch suggests PR #24406 may have copied the description from PR #24369, making it a duplicate or a misdescribed PR. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #24404
Type of change
What does this PR do?
Adds a unified task state color convention with icons for visual notifications in the TUI.
Color scheme:
success: Green (#22c55e) - Used for completed states, confirmationserror: Red (#ef4444) - Used for errors, failures, rejected stateswarning: Amber (#f59e0b) - Used for warnings, pending, in-progress statesinfo: Blue (#3b82f6) - Used for informational notificationsIcons used:
✓success✗error⚠warningℹinfoImplementation details:
status-colors.tswith centralized color and icon definitionsstatus-indicator.tsxcomponent for reusable status displayevent.tsto use status colors for user notificationstoast.tsxto apply consistent color stylingprompt/index.tsxto use status colors for message type indicatorsI understand why these changes work: centralized color definitions ensure consistency across the TUI, and the icon + color combination provides clear visual feedback for different task states.
How did you verify your code works?
bun typecheckpasses with zero errors in modified filesScreenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist