Skip to content

Conversation

@vancelin
Copy link

No description provided.

xticriss and others added 9 commits September 15, 2025 16:01
Problem:
- ZIP download was failing with 'No active sandbox' error even when sandbox was active
- Root cause: Mismatch between V1 (global.activeSandbox) and V2 (global.activeSandboxProvider) architectures
- E2B provider's command splitting broke complex bash commands
- Different working directories: E2B uses /home/user/app, Vercel uses /vercel/sandbox

Solution:
- Detect which sandbox provider is active (E2B, Vercel, or V1 legacy)
- E2B: Use Python zipfile module directly to avoid command parsing issues
- Vercel: Use correct /vercel/sandbox working directory
- Maintain backward compatibility with V1 sandboxes

Changes:
- Provider-aware ZIP creation logic
- Python-based implementation for E2B to avoid bash command splitting
- Correct path handling for each provider type
- Proper output format handling for different providers

Testing:
- Works with E2B provider using Python zipfile
- Works with Vercel provider using correct paths
- Maintains V1 sandbox compatibility
- ESLint passes with no errors
…ox-provider

Fix: ZIP download fails with 'No active sandbox' error for E2B provider
Updated README to include additional demo images.
  Add Python FastAPI bridge service to enable Claude Code CLI subscription
  mode as an alternative to API key authentication.

  ## New Features
  - Python FastAPI service (api/python/) bridging Next.js with Claude Code SDK
  - Startup scripts for Linux/macOS (.sh) and Windows (.bat)
  - Claude Code client library (lib/claude-code-client.ts)
  - Status API endpoint (app/api/claude-code/status/route.ts)
  - Streaming code generation with SSE support

  ## Documentation
  - Add comprehensive setup guide in README.md
  - Add Python API documentation (api/python/README.md)
  - Add CLAUDE.md with project guidelines for UI design workflow

  ## Configuration
  - Update .env.example with Claude Code CLI settings
  - Add .gitignore rules for temporary files (.claude/, .superdesign/, logs/, src/)
  - Update app.config.ts with CLI mode support

  ## Code Quality
  - All code and comments in English
  - Python code follows FastAPI best practices
  - Proper error handling and logging
  - TypeScript type definitions

  ## Testing
  - Add test_sdk.py for SDK validation
  - Manual testing verified for both API and CLI modes

  Files changed: 21 files
  Insertions: ~3,200 lines
  New files: 11
  Modified files: 10
  - Add retry mechanism with exponential backoff for Firecrawl API requests
  - Increase timeout from 30s to 60s to handle queue delays
  - Simplify API request to only essential formats (markdown, screenshot)
  - Add better error handling for SCRAPE_TIMEOUT errors
  - Clean src directory before code generation to ensure fresh starts
  - Update Claude Code adapter to use fresh sessions (continue_conversation=false)
  - Change all status messages from Chinese to English for consistency
  - Simplify CLAUDE.md to only include language preference instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants