Skip to content

Session attention indicator, scroll fix, i18n terminology unification, and large-screen layout adjustments#532

Merged
limityan merged 4 commits intoGCWing:mainfrom
limityan:yanzhn/fix
Apr 26, 2026
Merged

Session attention indicator, scroll fix, i18n terminology unification, and large-screen layout adjustments#532
limityan merged 4 commits intoGCWing:mainfrom
limityan:yanzhn/fix

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

Summary

This PR adds a high-priority attention indicator for sessions awaiting user action, fixes a scroll issue for unread sessions, unifies Chinese terminology across locales, and relaxes chat area dimensions for larger screens.

Changes

feat: Add needsUserAttention for pending tool confirmations and ask-user questions

  • Introduce a high-priority attention indicator for sessions waiting on user input (tool confirmations / ask-user) while not active
  • Complement the existing hasUnreadCompletion mechanism, establishing three peer notification states:
    • hasUnreadCompletion (completed/error): weak hint, small dot
    • needsUserAttention (ask_user/tool_confirm): strong hint, pulsing dot + badge
    • none: no indicator
  • Clear attention state when the user switches to the session or the tool resolves
  • Add needsUserAttention to the frontend Session type and backend SessionMetadata
  • i18n labels supplied for all three locales

fix: Use scrollToIndex for unread session scroll-to-bottom

  • Replace the previous scroll logic in VirtualMessageList with scrollToIndex to avoid positioning errors when navigating to unread sessions

style(i18n): Unify Chinese terminology — replace «审查» with «审核»

  • Replace all occurrences of «审查» with «审核» across zh-CN and zh-TW locale files
  • Update model_copy.rs, README.zh-CN.md, and component registry examples to match
  • Affected panels: flow-chat, settings, agents, git, errors, etc.

style: Relax chat area max-width for larger screens

  • Chat content max-width: 900px → 1200px (1000px at the 1400px breakpoint)
  • Chat input: 700px → 900px
  • Empty state container: 650px → 800px
  • ReviewTeamPage styles refactored accordingly

Increase chat content max-width from 900px to 1200px with a new
1400px breakpoint (1000px) for better utilization on high-resolution
displays. Also widen input (700px -> 900px) and empty state
(650px -> 800px) to stay proportional.

Generated with BitFun

Co-Authored-By: BitFun
Unify Chinese terminology by replacing all occurrences of 审查 with 审核
in both Simplified and Traditional Chinese locale files, plus related
model copy strings, README, and component registry examples.
…and ask-user questions

Add high-priority attention indicator for sessions waiting for user input while not active. This complements the existing hasUnreadCompletion for finished sessions.

Changes:

* Add needsUserAttention field ('ask_user' | 'tool_confirm') to Session

* Show pulsing dot + attention badge in sidebar for non-active sessions

* Persist needsUserAttention in backend SessionMetadata

* Clear attention state when user switches to session or tool resolves

* Add i18n labels for all three locales

The three session notification states are now treated as peers:

* hasUnreadCompletion (completed/error): weak hint, small dot

* needsUserAttention (ask_user/tool_confirm): strong hint, pulsing dot + badge

* none: no indicator
@limityan limityan merged commit 2cc3eab into GCWing:main Apr 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant