fix: address review feedback — retryDelay uses effectiveForce, default overrides param, @state() on chatNewMessagesBelow

This commit is contained in:
Marco Marandiz
2026-02-02 09:56:05 -06:00
committed by Shakker
parent e18f43ddad
commit 822388fe92
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ function createScrollHost(overrides: {
scrollTop?: number;
clientHeight?: number;
overflowY?: string;
}) {
} = {}) {
const {
scrollHeight = 2000,
scrollTop = 1500,

View File

@@ -64,7 +64,7 @@ export function scheduleChatScroll(host: ScrollHost, force = false) {
target.scrollTop = target.scrollHeight;
host.chatUserNearBottom = true;
host.chatNewMessagesBelow = false;
const retryDelay = force ? 150 : 120;
const retryDelay = effectiveForce ? 150 : 120;
host.chatScrollTimeout = window.setTimeout(() => {
host.chatScrollTimeout = null;
const latest = pickScrollTarget();

View File

@@ -252,7 +252,7 @@ export class OpenClawApp extends LitElement {
private chatScrollTimeout: number | null = null;
private chatHasAutoScrolled = false;
private chatUserNearBottom = true;
chatNewMessagesBelow = false;
@state() chatNewMessagesBelow = false;
private nodesPollInterval: number | null = null;
private logsPollInterval: number | null = null;
private debugPollInterval: number | null = null;