From 124d576398ad89c057311d4d796b4b64f43661cb Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Fri, 6 Nov 2026 09:32:00 +0100 Subject: [PATCH] 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 --- test/history-truncation-notice.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/history-truncation-notice.test.ts b/test/history-truncation-notice.test.ts index 25245468..4bc495aa 100644 --- a/test/history-truncation-notice.test.ts +++ b/test/history-truncation-notice.test.ts @@ -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'");