mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
fix(web): keep Reload history off while the incoming tab loads (#814)
- _historyReloadActionEligible() also requires no terminal load state: selectSession sets it before switching activeSessionId, so the sync right after the switch no longer offers Reload for the loading tab. - _clearTerminalLoadState() re-syncs the action, so a marked tab offers Reload once its load ends. - Changeset: note the reading-position fix for live flushes at the scrollback cap.
This commit is contained in:
1 parent
b4d729a054
commit
5f0366c060
5 files changed
+101
-1
No files matched your search
@@ -6695,6 +6695,7 @@ class CodemanApp {
|
||||
if (state && state.generation !== selectGen) return;
|
||||
this.terminalLoadStates.delete(sessionId);
|
||||
this._updateTerminalLoadTab(sessionId);
|
||||
if (state) this._syncHistoryReloadAction?.();
|
||||
}
|
||||
|
||||
_updateTerminalLoadTab(sessionId) {
|
||||
@@ -9932,6 +9933,7 @@ class CodemanApp {
|
||||
return !!(this.loadAppSettingsFromStorage?.()?.historyReloadAction !== false &&
|
||||
session && session.mode !== 'shell' && this._liveOutputSinceFullPull?.has(sessionId) &&
|
||||
!this._isLoadingBuffer &&
|
||||
!this.terminalLoadStates?.has(sessionId) && // Tab switches set this before the buffer load opens.
|
||||
!this._fullHistoryRepullInFlight && !this.detachedSessions?.has(sessionId) &&
|
||||
!this._historyReloadDismissed?.has(sessionId) && !this._tilesOwnTerminal?.() &&
|
||||
!this.isTerminalAtBottom());
|
||||
|
||||
Reference in new issue
Block a user