auto load builder

This commit is contained in:
marko-kraemer 2025-08-14 15:16:17 -07:00
parent d01318e022
commit 10c1a42783
6 changed files with 8 additions and 17 deletions

View File

@ -11,7 +11,6 @@ from agent.tools.sb_expose_tool import SandboxExposeTool
from agent.tools.web_search_tool import SandboxWebSearchTool
from dotenv import load_dotenv
from utils.config import config
from flags.flags import is_enabled
from agent.agent_builder_prompt import get_agent_builder_prompt
from agentpress.thread_manager import ThreadManager
from agentpress.response_processor import ProcessorConfig

View File

@ -130,8 +130,7 @@ class SunaAgentRepository:
except Exception as e:
logger.error(f"Failed to surgically update agent {agent_id}: {e}")
raise
async def update_agent_version_pointer(self, agent_id: str, version_id: str) -> bool:
try:
client = await self.db.client

View File

@ -67,9 +67,13 @@ export default function AgentConfigurationPage() {
const [originalData, setOriginalData] = useState<FormData>(formData);
const [isPreviewOpen, setIsPreviewOpen] = useState(false);
const initialTab = tabParam === 'agent-builder' ? 'agent-builder' : 'configuration';
// Default to 'agent-builder' (Prompt to build) tab unless explicitly set to 'configuration'
const initialTab = tabParam === 'configuration' ? 'configuration' : 'agent-builder';
const [activeTab, setActiveTab] = useState(initialTab);
// Log the default tab selection for debugging
console.log('🔄 Default tab selected:', initialTab, 'from URL param:', tabParam);
useEffect(() => {
if (!agent) return;

View File

@ -105,10 +105,6 @@ export default function ThreadPage({
const [fileToView, setFileToView] = useState<string | null>(null);
const initialLoadCompleted = useRef<boolean>(false);
const messagesLoadedRef = useRef(false);
const agentRunsCheckedRef = useRef(false);
const [streamingTextContent, setStreamingTextContent] = useState('');
const userClosedPanelRef = useRef(false);
@ -624,14 +620,6 @@ export default function ThreadPage({
}
}, [agentStatus, streamHookStatus, agentRunId, currentHookRunId]);
const autoScrollToBottom = useCallback(
(behavior: ScrollBehavior = 'smooth') => {
if (!userHasScrolled && messagesEndRef.current) {
messagesEndRef.current.scrollIntoView({ behavior });
}
},
[userHasScrolled],
);
useEffect(() => {
if (!isPlaying || currentMessageIndex <= 0 || !messages.length) return;

View File

@ -242,7 +242,7 @@ export function AgentHeader({
className="flex items-center gap-1.5 text-xs px-3"
>
<Settings className="h-3 w-3" />
<span className="hidden md:inline">Manual Config</span>
<span className="hidden md:inline">Manual config</span>
</TabsTrigger>
</TabsList>
</Tabs>

View File

@ -15,6 +15,7 @@ async def main():
"""
Please ignore the asyncio.exceptions.CancelledError that is thrown when the MCP server is stopped. I couldn't fix it.
"""
# Start the MCP server in the background
asyncio.create_task(
mcp.run_http_async(