feat: support opencode

This commit is contained in:
weishu
2026-01-29 10:34:57 +08:00
parent 66ab96bf38
commit 70b5c22c8f
47 changed files with 2737 additions and 28 deletions
+4 -2
View File
@@ -327,7 +327,9 @@ export async function startRunner(): Promise<void> {
? 'codex'
: agent === 'gemini'
? 'gemini'
: 'claude';
: agent === 'opencode'
? 'opencode'
: 'claude';
const args = [agentCommand];
if (options.resumeSessionId) {
if (agent === 'codex') {
@@ -337,7 +339,7 @@ export async function startRunner(): Promise<void> {
}
}
args.push('--hapi-starting-mode', 'remote', '--started-by', 'runner');
if (options.model) {
if (options.model && agent !== 'opencode') {
args.push('--model', options.model);
}
if (yolo) {