authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-08 23:47:41-08:00
committergravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-11 09:00:18-08:00
log69e38a25c395ef2856adb6a99f322a1e19792e9a
tree5ac3a3579e22c2b432953ef4192f77b0899f6127
parent59448593d8e6b067e1691150f1925107114f3cc7

Fix typecheck errors for branch/worktree fields

Add non-null assertion for activeProject in worktree creation path (guarded by earlier check) and add missing branch/worktreePath to test fixture. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

1 files changed, 2 insertions(+), 0 deletions(-)

apps/web/src/persistenceSchema.test.ts+2
...@@ -134,6 +134,8 @@ describe("toPersistedState", () => {...@@ -134,6 +134,8 @@ describe("toPersistedState", () => {
134 events: [],134 events: [],
135 error: "boom",135 error: "boom",
136 createdAt: "2026-02-08T10:00:00.000Z",136 createdAt: "2026-02-08T10:00:00.000Z",
137 branch: null,
138 worktreePath: null,
137 };139 };
138140
139 const persisted = toPersistedState({141 const persisted = toPersistedState({