Skip to content

Commit fd1c340

Browse files
committed
feat: optimize changes refresh and simplify input bar
- Reduce refresh debounce to 150ms for faster updates - Keep smart loading to prevent UI flicker - Remove placeholder text from input bar for cleaner UI
1 parent 5824589 commit fd1c340

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

packages/ui/src/components/layout/InputBar.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,14 +1105,6 @@ export const InputBar: React.FC<InputBarProps> = React.memo(({
11051105
color="var(--st-text)"
11061106
opacity={isFocused ? 0.7 : 0.3}
11071107
/>
1108-
{isEmpty && !isRunning && (
1109-
<div
1110-
className="absolute top-0 left-0 text-[13px] pointer-events-none"
1111-
style={{ color: 'var(--st-text-faint)', opacity: 0.6 }}
1112-
>
1113-
{placeholder}
1114-
</div>
1115-
)}
11161108
</div>
11171109

11181110
<div className="flex items-center gap-2 mt-2 text-[12px]">

packages/ui/src/components/layout/useRightPanelData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ export function useRightPanelData(sessionId: string | undefined): RightPanelData
241241
refreshTimerRef.current = window.setTimeout(() => {
242242
refreshTimerRef.current = null;
243243
refreshRef.current();
244-
}, 500); // Increased debounce to reduce flicker
244+
}, 150); // Fast refresh with smart loading to avoid UI flicker
245245
}, []); // No dependencies - scheduleRefresh identity is now stable
246246

247247
useEffect(() => {

0 commit comments

Comments
 (0)