Skip to content

Commit ce79ea4

Browse files
committed
Fix commit detection in codegen
Code was comparing value against deprecated enum.
1 parent f5b9e59 commit ce79ea4

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

apps/desktop/src/lib/codegen/claude.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function injectEndpoints(api: ClientState['backendApi']) {
185185
`project://${arg.projectId}/claude/${arg.stackId}/message_recieved`,
186186
async (event) => {
187187
const { payload } = event.payload;
188-
if (payload.source === 'system' && payload.type === 'commitCreated') {
188+
if (payload.source === 'gitButler' && payload.type === 'commitCreated') {
189189
lifecycleApi.dispatch(
190190
api.util.invalidateTags([invalidatesItem(ReduxTag.StackDetails, arg.stackId)])
191191
);

apps/desktop/src/lib/codegen/messages.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,7 @@ export function formatMessages(
171171
payload.type === 'userAbort' ||
172172
payload.type === 'unhandledException' ||
173173
payload.type === 'compactStart' ||
174-
payload.type === 'compactFinished' ||
175-
payload.type === 'commitCreated'
174+
payload.type === 'compactFinished'
176175
) {
177176
wrapUpAgentSide();
178177
}

apps/desktop/src/lib/codegen/types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ export type SystemMessage =
157157
| {
158158
type: 'compactFinished';
159159
summary: string;
160-
}
161-
| {
162-
type: 'commitCreated';
163-
stackId: string;
164-
branchName: string;
165-
commitIds: string[];
166160
};
167161

168162
/**

0 commit comments

Comments
 (0)