Tags: feicaiclub/forge
Tags
fix: prevent onboarding from overwriting existing .claude/ config files When ~/.forge/ database is deleted (e.g. during packaging) and the user reinstalls, onboarding re-triggers. Previously it unconditionally overwrote CLAUDE.md and USER.md, destroying user's customized content. Fix: check if each file has real user content before writing. Files matching known stub prefixes (from initializeWorkspaceDir defaults) are treated as empty and get overwritten. Files with any other content are preserved and reported in the `skipped` response field. Tested scenarios: - New project (no .claude/) → writes normally - Existing project with custom content → skipped, content preserved - Existing project with stub content → overwrites stubs - Previous onboarding content → not re-overwritten Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
feat: display Agent-created images/files in desktop ChatView When the Agent downloads or creates images/files (via Write or Bash curl/wget), they are now: 1. Detected from tool_use blocks after stream completes 2. Copied to uploads directory (accessible via /api/upload/) 3. Appended as image_attachment/file_attachment content blocks 4. Rendered inline in ChatView (images as <img>, files as download cards) Refactored extractFilePaths + resolveFileAttachments into shared exported functions, reused by both IM conversation-engine and desktop chat route. ChatView assistant message renderer now handles image_attachment (inline with max 300px, click to open) and file_attachment (icon + name + size, click to download). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>