fix: unblock goose2 push checks

Signed-off-by: Matt Toohey <contact@matttoohey.com>
This commit is contained in:
Matt Toohey
2026-05-06 14:39:50 +10:00
parent 28cc258b8e
commit 9afe1d3113
2 changed files with 9 additions and 11 deletions
@@ -203,6 +203,7 @@ describe("useChatSessionController", () => {
"session-1",
"anthropic",
"/tmp/project",
{ personaId: undefined },
);
});
@@ -245,7 +246,6 @@ describe("useChatSessionController", () => {
archivedAt: null,
createdAt: "2026-04-20T00:00:00.000Z",
updatedAt: "2026-04-20T00:00:00.000Z",
artifactsDir: "/tmp/project/artifacts",
},
],
loading: false,
@@ -430,6 +430,7 @@ describe("useChatSessionController", () => {
"session-2",
"anthropic",
"/tmp/project",
{ personaId: undefined },
);
});
@@ -556,18 +556,15 @@ function handleShared(
case "usage_update": {
const usage = update as SessionUpdate & { sessionUpdate: "usage_update" };
if (!getLocalSessionId(gooseSessionId)) {
pendingUsageUpdates.set(gooseSessionId, {
accumulatedTotal: usage.used,
contextLimit: usage.size,
});
break;
}
useChatStore.getState().updateTokenState(sessionId, {
const tokenState = {
accumulatedTotal: usage.used,
contextLimit: usage.size,
});
};
if (!getLocalSessionId(gooseSessionId)) {
pendingUsageUpdates.set(gooseSessionId, tokenState);
}
useChatStore.getState().updateTokenState(sessionId, tokenState);
break;
}