AI-native design editor. Open-source Figma alternative.
Show agent name in model selector for ACP, fix model dropdown, update docs
Anton A S63f3ef37552c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 10cf5daa6..b61961810 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,7 +13,8 @@### Features-- ACP agent support — use Claude Code, Codex, or Gemini CLI as AI assistants in the desktop chat panel+- ACP agent support — use Claude Code, Codex, or Gemini CLI as AI assistants in the desktop chat panel. Requires `@zed-industries/claude-agent-acp` and `mcp__open-pencil` permission in `~/.claude/settings.json`+- Permission confirmation dialog — ACP agents request user approval for file/shell operations, MCP design tools auto-approved- Unified MCP server — single HTTP + WebSocket proxy replaces Vite SSR bridge- Grid layout in AI chat — JSX renderer supports `grid`, `columns`, `rows`, `gap` props with child positioning (`colStart`, `rowStart`, `colSpan`, `rowSpan`) and auto-height grids- Configurable max output tokens in AI provider settings (default 16384)diff --git a/README.md b/README.mdindex d6b27c752..fef390246 100644--- a/README.md+++ b/README.md@@ -138,6 +138,19 @@ Press <kbd>⌘</kbd><kbd>J</kbd> to open the AI assistant. It has 87 tools thatUse Claude Code, Codex, or Gemini CLI directly in the chat panel. The agent connects to the editor's MCP server and uses all 90+ design tools. Requires the desktop app and the agent CLI installed locally.+**Setup (Claude Code):**++1. Install the ACP adapter: `npm i -g @zed-industries/claude-agent-acp`+2. Add MCP permission to `~/.claude/settings.json`:+ ```json+ {+ "permissions": {+ "allow": ["mcp__open-pencil"]+ }+ }+ ```+3. Open the desktop app → <kbd>Ctrl</kbd><kbd>J</kbd> → select **Claude Code** from the provider dropdown+### MCP serverConnect Claude Code, Cursor, Windsurf, or any MCP client to read and write `.fig` files headlessly. 90 tools (87 core + 3 file management). [Full docs →](https://openpencil.dev/reference/mcp-tools)diff --git a/src/components/chat/ChatInput.vue b/src/components/chat/ChatInput.vueindex 3b4a16427..b79760457 100644--- a/src/components/chat/ChatInput.vue+++ b/src/components/chat/ChatInput.vue@@ -21,6 +21,8 @@ import { uiInput } from '@/components/ui/input'import { selectContent, selectItem, selectTrigger } from '@/components/ui/select'import { useAIChat } from '@/composables/use-chat'+import { ACP_AGENTS } from '@open-pencil/core'+const { providerID, providerDef, modelID, customModelID } = useAIChat()const { status } = defineProps<{@@ -35,6 +37,11 @@ const emit = defineEmits<{const input = ref('')const isStreaming = computed(() => status === 'streaming' || status === 'submitted')+const isACPProvider = computed(() => providerID.value.startsWith('acp:'))+const acpAgentName = computed(() => {+ const agentId = providerID.value.replace('acp:', '')+ return ACP_AGENTS.find((a) => a.id === agentId)?.name ?? agentId+})const isCustomProvider = computed(() => providerID.value === 'openai-compatible' || providerID.value === 'anthropic-compatible')@@ -58,7 +65,13 @@ function handleSubmit(e: Event) {<div class="shrink-0 border-t border-border px-3 py-2"><!-- Model selector & settings --><div class="mb-1.5 flex items-center gap-1">- <template v-if="isCustomProvider">+ <template v-if="isACPProvider">+ <div class="flex items-center gap-1 px-1.5 py-0.5 text-[10px] text-muted">+ <icon-lucide-bot class="size-3" />+ {{ acpAgentName }}+ </div>+ </template>+ <template v-else-if="isCustomProvider"><divclass="flex items-center gap-1 px-1.5 py-0.5 text-[10px] text-muted"data-test-id="chat-custom-model-label"