mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 10:39:32 +01:00
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:
1 parent
12024ccac8
commit
124d576398
1 file changed
+3
-1
@@ -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'");
|
||||
|
||||
Reference in new issue
Block a user