fix: hide instructions file and show advanced fields in import adapter config
- Added hideInstructionsFile prop to AdapterConfigFieldsProps - All adapter config-fields now conditionally hide the instructions file field when hideInstructionsFile is set (used during import since the AGENTS.md is automatically set as promptTemplate) - Import adapter config panel now renders ClaudeLocalAdvancedFields (Chrome, skip permissions, max turns) when claude_local is selected Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
import { Field, adapterLabels } from "../components/agent-config-primitives";
|
||||
import { defaultCreateValues } from "../components/agent-config-defaults";
|
||||
import { getUIAdapter } from "../adapters";
|
||||
import { ClaudeLocalAdvancedFields } from "../adapters/claude-local/config-fields";
|
||||
import type { CreateConfigValues } from "@paperclipai/adapter-utils";
|
||||
import {
|
||||
type FileTreeNode,
|
||||
@@ -542,7 +543,21 @@ function AdapterPickerList({
|
||||
eff={() => "" as any}
|
||||
mark={() => {}}
|
||||
models={[]}
|
||||
hideInstructionsFile
|
||||
/>
|
||||
{selectedType === "claude_local" && (
|
||||
<ClaudeLocalAdvancedFields
|
||||
mode="create"
|
||||
isCreate
|
||||
adapterType={selectedType}
|
||||
values={vals}
|
||||
set={(patch) => onChangeConfig(agent.slug, patch)}
|
||||
config={{}}
|
||||
eff={() => "" as any}
|
||||
mark={() => {}}
|
||||
models={[]}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user