test: count an adopted session in the pane history guard

#510 added the adopted case to the app.js condition this guard reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-11-06 09:32:00 +01:00
1 parent 12024ccac8
commit 124d576398
1 file changed
+3 -1
+3 -1
View File
@@ -229,7 +229,9 @@ describe('the in-terminal truncation line is gone (static guard)', () => {
expect(app).toContain(
'const useFullHistory = !shellSession && (paneKeepsNoHistory || !this._fullHistoryLoaded.has(sessionId));'
);
expect(app).toContain('!session?.remote && !session?.docker && this._paneHistoryLines?.get(sessionId) === 0;');
expect(app).toContain(
'!session?.remote && !session?.docker && !session?.adopt && this._paneHistoryLines?.get(sessionId) === 0;'
);
// The shell's bounded load is tmux's rendered history, never the byte recording.
expect(app).toContain('`/api/sessions/${sessionId}/terminal?${SHELL_LOAD_QUERY}`');
expect(app).toContain("!restoredSnapshot && session?.mode !== 'shell'");