You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Unified HTML rendering with theme-aware RippleUI
Single source of truth for agent response format:
- Agents MUST respond with HTML code blocks (```html ... ```)
- Removed duplicate ResponseFormatter and HTMLWrapper mechanisms
- System prompt now enforces HTML-only responses
- Theme-aware styling respects dark/light mode
- RippleUI integration prevents theme clashing
- OpenCode gets same CLI config support as Claude Code
- HTML extracted directly from code blocks
- No intermediate conversion steps
console.log(`[ACP] Loaded CLI config from ${configPath}`);
27
+
console.log(`[ACP] Loaded ${agentType}CLI config from ${configPath}`);
21
28
returnconfig;
22
29
}
23
30
}catch(e){
24
31
// Config file doesn't exist or is invalid, continue
25
32
}
26
33
}
27
34
35
+
console.log(`[ACP] No ${agentType} config found, using defaults`);
28
36
return{};
29
37
}
30
38
31
-
constRIPPLEUI_SYSTEM_PROMPT=`CRITICAL INSTRUCTION: You are responding in a web-based HTML interface. EVERY response must be formatted as beautiful, styled HTML using RippleUI and Tailwind CSS. This is NOT a text-based interface - users see raw HTML rendered in their browser.
32
-
33
-
YOUR RESPONSE FORMAT MUST BE:
34
-
Wrap your ENTIRE response in a single HTML container with these elements:
0 commit comments