fix: move defaultCreateValues to separate file to fix HMR
AgentConfigForm.tsx exported both React components and a plain object constant (defaultCreateValues), which broke Vite Fast Refresh. Moved the constant to agent-config-defaults.ts so the component module only exports React components. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
22
ui/src/components/agent-config-defaults.ts
Normal file
22
ui/src/components/agent-config-defaults.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { CreateConfigValues } from "@paperclip/adapter-utils";
|
||||
|
||||
export const defaultCreateValues: CreateConfigValues = {
|
||||
adapterType: "claude_local",
|
||||
cwd: "",
|
||||
promptTemplate: "",
|
||||
model: "",
|
||||
thinkingEffort: "",
|
||||
dangerouslySkipPermissions: false,
|
||||
search: false,
|
||||
dangerouslyBypassSandbox: false,
|
||||
command: "",
|
||||
args: "",
|
||||
extraArgs: "",
|
||||
envVars: "",
|
||||
envBindings: {},
|
||||
url: "",
|
||||
bootstrapPrompt: "",
|
||||
maxTurnsPerRun: 80,
|
||||
heartbeatEnabled: false,
|
||||
intervalSec: 300,
|
||||
};
|
||||
Reference in New Issue
Block a user