Merge pull request #479 from AutoMaker-Org/fix/followup-run

fix: follow up prompts
This commit is contained in:
Shirone
2026-01-14 08:43:39 +00:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -628,8 +628,8 @@ export function useBoardActions({
currentProject.path,
followUpFeature.id,
followUpPrompt,
imagePaths
// No worktreePath - server derives from feature.branchName
imagePaths,
useWorktrees
);
if (!result.success) {
@@ -667,6 +667,7 @@ export function useBoardActions({
setFollowUpPrompt,
setFollowUpImagePaths,
setFollowUpPreviewMap,
useWorktrees,
]);
const handleCommitFeature = useCallback(

View File

@@ -524,7 +524,7 @@ export interface AutoModeAPI {
featureId: string,
prompt: string,
imagePaths?: string[],
worktreePath?: string
useWorktrees?: boolean
) => Promise<{ success: boolean; passes?: boolean; error?: string }>;
commitFeature: (
projectPath: string,
@@ -2113,7 +2113,7 @@ function createMockAutoModeAPI(): AutoModeAPI {
featureId: string,
prompt: string,
imagePaths?: string[],
worktreePath?: string
useWorktrees?: boolean
) => {
if (mockRunningFeatures.has(featureId)) {
return {

View File

@@ -1652,14 +1652,14 @@ export class HttpApiClient implements ElectronAPI {
featureId: string,
prompt: string,
imagePaths?: string[],
worktreePath?: string
useWorktrees?: boolean
) =>
this.post('/api/auto-mode/follow-up-feature', {
projectPath,
featureId,
prompt,
imagePaths,
worktreePath,
useWorktrees,
}),
commitFeature: (projectPath: string, featureId: string, worktreePath?: string) =>
this.post('/api/auto-mode/commit-feature', {