Skip to content

Commit b779614

Browse files
committed
release: v2.7.233 — add session crash/worktree normalizer regression tests
1 parent a5b5984 commit b779614

File tree

4 files changed

+51
-2
lines changed

4 files changed

+51
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
All notable changes to this project will be documented in this file.
66

7+
## [2.7.233] — 2026-03-15
8+
9+
- test(web/session): expanded `apps/web/src/app/dashboard/session/session-page-normalizers.test.ts` with explicit regression coverage for `isolateWorktree`, `lastExitCode`, and `lastExitSignal` normalization to protect crash/worktree visibility cards in the session dashboard.
10+
- test(web): reran focused session+navigation suites (`session-page-normalizers`, `mcp/nav-validation`) with `40` tests passing; web `tsc --noEmit` passes.
11+
712
## [2.7.232] — 2026-03-15
813

914
- changed(web/logs): upgraded `apps/web/src/app/dashboard/logs/page.tsx` into a stronger operator surface with server/session filter inputs, level filtering, controllable auto-refresh, corrected table column structure, and improved visibility of message/error details.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.232
1+
2.7.233

VERSION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Borg Project Version: 2.7.232
1+
# Borg Project Version: 2.7.233

apps/web/src/app/dashboard/session/session-page-normalizers.test.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,51 @@ describe('session page normalizers', () => {
102102
restartCount: 0,
103103
maxRestartAttempts: 0,
104104
autoRestart: true,
105+
isolateWorktree: false,
106+
lastExitCode: undefined,
107+
lastExitSignal: undefined,
105108
logs: [],
106109
});
107110
});
111+
112+
it('normalizes worktree and exit metadata for crash visibility cards', () => {
113+
const sessions = normalizeSessionList([
114+
{
115+
id: 'ses-crash',
116+
name: 'Crash Session',
117+
cliType: 'codex',
118+
workingDirectory: 'C:/repo',
119+
isolateWorktree: true,
120+
lastExitCode: 137,
121+
lastExitSignal: ' SIGKILL ',
122+
lastError: 'process terminated',
123+
status: 'error',
124+
},
125+
{
126+
id: 'ses-bad-exit',
127+
name: 'Bad Exit Values',
128+
cliType: 'gemini',
129+
workingDirectory: 'C:/repo2',
130+
isolateWorktree: 'yes',
131+
lastExitCode: '1',
132+
lastExitSignal: 9,
133+
},
134+
] as any);
135+
136+
expect(sessions[0]).toMatchObject({
137+
id: 'ses-crash',
138+
isolateWorktree: true,
139+
lastExitCode: 137,
140+
lastExitSignal: 'SIGKILL',
141+
lastError: 'process terminated',
142+
status: 'error',
143+
});
144+
145+
expect(sessions[1]).toMatchObject({
146+
id: 'ses-bad-exit',
147+
isolateWorktree: false,
148+
lastExitCode: undefined,
149+
lastExitSignal: undefined,
150+
});
151+
});
108152
});

0 commit comments

Comments
 (0)