hide empty subagent container to prevent white gap#539
Merged
limityan merged 4 commits intoGCWing:mainfrom Apr 26, 2026
Merged
Conversation
b386324 to
8568282
Compare
- Frontend (PersistenceModule.ts): When saving in-progress turns during app close, mark non-active sessions as having unread completion and persist to disk - Backend (session_manager.rs): When restoring sessions, detect if previous state was not Idle (indicating abnormal close/crash) and automatically set unread_completion to 'completed' This dual protection ensures sessions are marked as unread after IDE restart, whether the close was normal or abnormal (crash, kill, power loss).
When the model stream is interrupted mid-way and recovers partially, the session now shows a red unread dot instead of green, indicating that the output is incomplete and user input is needed to continue. - Add 'interrupted' to unreadCompletion type (red dot, same as 'error') - Add is-interrupted CSS class with red styling - Add i18n keys for interrupted state (en-US, zh-CN, zh-TW) - Backend partial recovery retry logic (in previous commit) Requires: PR #63fca72d (Rust side) for complete feature.
When a subagent task starts but has no items yet, the subagent-items-container was still rendered with padding and background, causing a white/empty area above the content. Now returns null when items.length === 0. Generated with BitFun Co-Authored-By: BitFun
- Replace '__TAURI__' in window check with isTauriRuntime() from @/infrastructure/runtime for correct Tauri v2 detection - Remove enabled: available condition from useShortcut registration; shortcuts are always registered but callbacks no-op when not in Tauri desktop environment. This avoids race conditions where Tauri runtime detection happens after component mount. Generated with BitFun Co-Authored-By: BitFun
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.
When a subagent task starts but has no items yet, the
subagent-items-container was still rendered with padding
and background, causing a white/empty area above the
content. Now returns null when items.length === 0.