Add OpenCode auto accept feature

This commit is contained in:
Mohamed Boudra
2026-05-26 21:51:04 +07:00
parent 0ab41fbd9a
commit 6d205f8853
11 changed files with 265 additions and 65 deletions
@@ -1,7 +1,7 @@
import type { AgentFeature, AgentModelDefinition } from "@server/server/agent/agent-sdk-types";
export type ExplainedAgentControl = "mode" | "model" | "thinking";
export type FeatureHighlightColor = "blue" | "default" | "yellow";
export type FeatureHighlightColor = "blue" | "default" | "green" | "yellow";
export function getAgentControlHint(selector: ExplainedAgentControl): string {
switch (selector) {
@@ -32,6 +32,8 @@ export function getFeatureHighlightColor(featureId: string): FeatureHighlightCol
switch (featureId) {
case "fast_mode":
return "yellow";
case "auto_accept":
return "green";
case "plan_mode":
return "blue";
default: