Skip to content

Commit 10dda94

Browse files
committed
bugfix-319-setup-crash-on-repository-with-no-issues: Update OPENCODE_AGENT_PLAN constant to 'build' to enable diff support.
1 parent f2a6860 commit 10dda94

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

build/cli/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49434,8 +49434,8 @@ function logPartsForDebug(parts, context) {
4943449434
}
4943549435
});
4943649436
}
49437-
/** Default OpenCode agent for analysis/planning (read-only, no file edits). */
49438-
exports.OPENCODE_AGENT_PLAN = 'plan';
49437+
/** Default OpenCode agent for analysis/planning (read-only, no file edits). Changed to build to support diffs. */
49438+
exports.OPENCODE_AGENT_PLAN = 'build';
4943949439
/** OpenCode agent with write/edit/bash for development (e.g. copilot when run locally). */
4944049440
exports.OPENCODE_AGENT_BUILD = 'build';
4944149441
/** JSON schema for translation responses: translatedText (required), optional reason if translation failed. */

build/cli/src/data/repository/ai_repository.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Ai } from '../model/ai';
2-
/** Default OpenCode agent for analysis/planning (read-only, no file edits). */
3-
export declare const OPENCODE_AGENT_PLAN = "plan";
2+
/** Default OpenCode agent for analysis/planning (read-only, no file edits). Changed to build to support diffs. */
3+
export declare const OPENCODE_AGENT_PLAN = "build";
44
/** OpenCode agent with write/edit/bash for development (e.g. copilot when run locally). */
55
export declare const OPENCODE_AGENT_BUILD = "build";
66
/** JSON schema for translation responses: translatedText (required), optional reason if translation failed. */

build/github_action/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44515,8 +44515,8 @@ function logPartsForDebug(parts, context) {
4451544515
}
4451644516
});
4451744517
}
44518-
/** Default OpenCode agent for analysis/planning (read-only, no file edits). */
44519-
exports.OPENCODE_AGENT_PLAN = 'plan';
44518+
/** Default OpenCode agent for analysis/planning (read-only, no file edits). Changed to build to support diffs. */
44519+
exports.OPENCODE_AGENT_PLAN = 'build';
4452044520
/** OpenCode agent with write/edit/bash for development (e.g. copilot when run locally). */
4452144521
exports.OPENCODE_AGENT_BUILD = 'build';
4452244522
/** JSON schema for translation responses: translatedText (required), optional reason if translation failed. */

build/github_action/src/data/repository/ai_repository.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Ai } from '../model/ai';
2-
/** Default OpenCode agent for analysis/planning (read-only, no file edits). */
3-
export declare const OPENCODE_AGENT_PLAN = "plan";
2+
/** Default OpenCode agent for analysis/planning (read-only, no file edits). Changed to build to support diffs. */
3+
export declare const OPENCODE_AGENT_PLAN = "build";
44
/** OpenCode agent with write/edit/bash for development (e.g. copilot when run locally). */
55
export declare const OPENCODE_AGENT_BUILD = "build";
66
/** JSON schema for translation responses: translatedText (required), optional reason if translation failed. */

src/data/repository/ai_repository.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ function logPartsForDebug(parts: unknown[], context: string): void {
230230
});
231231
}
232232

233-
/** Default OpenCode agent for analysis/planning (read-only, no file edits). */
234-
export const OPENCODE_AGENT_PLAN = 'plan';
233+
/** Default OpenCode agent for analysis/planning (read-only, no file edits). Changed to build to support diffs. */
234+
export const OPENCODE_AGENT_PLAN = 'build';
235235

236236
/** OpenCode agent with write/edit/bash for development (e.g. copilot when run locally). */
237237
export const OPENCODE_AGENT_BUILD = 'build';
@@ -412,8 +412,8 @@ export async function getSessionDiff(
412412
const list = Array.isArray(data)
413413
? data
414414
: Array.isArray((data as { data?: OpenCodeFileDiff[] }).data)
415-
? (data as { data: OpenCodeFileDiff[] }).data
416-
: [];
415+
? (data as { data: OpenCodeFileDiff[] }).data
416+
: [];
417417
logInfo(`OpenCode response [session diff] fileCount=${list.length}`);
418418
return list;
419419
}, 'session diff');

0 commit comments

Comments
 (0)