Remove contextMode, consolidate wake policies, and default serveUi to true
Drop the unused contextMode field from the agent schema, shared types, validators, and all UI references. Merge wakeOnOnDemand and wakeOnAutomation into a single wakeOnDemand toggle. Default serveUi to true and remove the onboarding prompt for it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -642,34 +642,14 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
|
||||
Advanced
|
||||
</div>
|
||||
<ToggleField
|
||||
label="Wake on assignment"
|
||||
hint={help.wakeOnAssignment}
|
||||
label="Wake on demand"
|
||||
hint={help.wakeOnDemand}
|
||||
checked={eff(
|
||||
"heartbeat",
|
||||
"wakeOnAssignment",
|
||||
heartbeat.wakeOnAssignment !== false,
|
||||
"wakeOnDemand",
|
||||
heartbeat.wakeOnDemand !== false,
|
||||
)}
|
||||
onChange={(v) => mark("heartbeat", "wakeOnAssignment", v)}
|
||||
/>
|
||||
<ToggleField
|
||||
label="Wake on on-demand"
|
||||
hint={help.wakeOnOnDemand}
|
||||
checked={eff(
|
||||
"heartbeat",
|
||||
"wakeOnOnDemand",
|
||||
heartbeat.wakeOnOnDemand !== false,
|
||||
)}
|
||||
onChange={(v) => mark("heartbeat", "wakeOnOnDemand", v)}
|
||||
/>
|
||||
<ToggleField
|
||||
label="Wake on automation"
|
||||
hint={help.wakeOnAutomation}
|
||||
checked={eff(
|
||||
"heartbeat",
|
||||
"wakeOnAutomation",
|
||||
heartbeat.wakeOnAutomation !== false,
|
||||
)}
|
||||
onChange={(v) => mark("heartbeat", "wakeOnAutomation", v)}
|
||||
onChange={(v) => mark("heartbeat", "wakeOnDemand", v)}
|
||||
/>
|
||||
<Field label="Cooldown (sec)" hint={help.cooldownSec}>
|
||||
<DraftNumberInput
|
||||
@@ -693,11 +673,6 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
|
||||
<div className="border-b border-border">
|
||||
<div className="px-4 py-2 text-xs font-medium text-muted-foreground">Runtime</div>
|
||||
<div className="px-4 pb-3 space-y-3">
|
||||
<Field label="Context mode" hint={help.contextMode}>
|
||||
<div className="text-sm font-mono px-2.5 py-1.5">
|
||||
{props.agent.contextMode}
|
||||
</div>
|
||||
</Field>
|
||||
<Field label="Monthly budget (cents)" hint={help.budgetMonthlyCents}>
|
||||
<DraftNumberInput
|
||||
value={eff(
|
||||
|
||||
@@ -42,9 +42,6 @@ export function AgentProperties({ agent, runtimeState }: AgentPropertiesProps) {
|
||||
<PropertyRow label="Adapter">
|
||||
<span className="text-sm font-mono">{adapterLabels[agent.adapterType] ?? agent.adapterType}</span>
|
||||
</PropertyRow>
|
||||
<PropertyRow label="Context">
|
||||
<span className="text-sm">{agent.contextMode}</span>
|
||||
</PropertyRow>
|
||||
</div>
|
||||
|
||||
<Separator />
|
||||
|
||||
@@ -112,13 +112,10 @@ export function NewAgentDialog() {
|
||||
heartbeat: {
|
||||
enabled: configValues.heartbeatEnabled,
|
||||
intervalSec: configValues.intervalSec,
|
||||
wakeOnAssignment: true,
|
||||
wakeOnOnDemand: true,
|
||||
wakeOnAutomation: true,
|
||||
wakeOnDemand: true,
|
||||
cooldownSec: 10,
|
||||
},
|
||||
},
|
||||
contextMode: "thin",
|
||||
budgetMonthlyCents: 0,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -152,9 +152,7 @@ export function OnboardingWizard() {
|
||||
heartbeat: {
|
||||
enabled: true,
|
||||
intervalSec: 300,
|
||||
wakeOnAssignment: true,
|
||||
wakeOnOnDemand: true,
|
||||
wakeOnAutomation: true,
|
||||
wakeOnDemand: true,
|
||||
cooldownSec: 10,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -33,11 +33,8 @@ export const help: Record<string, string> = {
|
||||
intervalSec: "Seconds between automatic heartbeat invocations.",
|
||||
timeoutSec: "Maximum seconds a run can take before being terminated. 0 means no timeout.",
|
||||
graceSec: "Seconds to wait after sending interrupt before force-killing the process.",
|
||||
wakeOnAssignment: "Automatically wake this agent when a new issue is assigned to it.",
|
||||
wakeOnOnDemand: "Allow this agent to be woken on demand via the API or UI.",
|
||||
wakeOnAutomation: "Allow automated systems to wake this agent.",
|
||||
wakeOnDemand: "Allow this agent to be woken by assignments, API calls, UI actions, or automated systems.",
|
||||
cooldownSec: "Minimum seconds between consecutive heartbeat runs.",
|
||||
contextMode: "How context is managed between runs (thin = fresh context each run).",
|
||||
budgetMonthlyCents: "Monthly spending limit in cents. 0 means no limit.",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user