Skip to content

Conversation

codegen-sh[bot]
Copy link
Contributor

@codegen-sh codegen-sh bot commented Sep 12, 2025

This PR updates the codegen-ide VSCode extension to have a more prominent home screen with a purple "New Agent" button, making it work similarly to the CLI's background agent functionality as requested.

Changes Made

🏠 New Home Screen

  • HomeViewProvider: Created a new webview-based home screen with a prominent purple "New Agent" button
  • Purple Button Design: Matches the requested design with gradient purple styling and hover effects
  • Built-in Prompt Input: Large text area with helpful examples and placeholder text
  • Keyboard Shortcuts: Support for Ctrl/Cmd + Enter to quickly create agents

🔧 Technical Improvements

  • Same API Routes: Uses identical API endpoints as the CLI for consistency
  • Client Identifier: Adds x-codegen-client: codegen__ide_extension header for tracking
  • Authentication Integration: Seamlessly handles login/logout state changes
  • Auto-refresh: Updates both home view and agent runs when agents are created

📦 Package Configuration

  • New View Registration: Added codegenHome webview view to the sidebar
  • Updated Welcome Content: Simplified welcome messages for better UX
  • View Ordering: Home view appears first, followed by Recent Agent Runs

📚 Documentation

  • Updated README: Added documentation for the new home screen features
  • Usage Instructions: Clear steps for both home screen and command palette methods

UI Preview

The new home screen features:

  • 🎨 Prominent purple "New Agent" button (as requested)
  • 📝 Large prompt input area with examples
  • ⌨️ Keyboard shortcuts for power users
  • 🔄 Real-time authentication state handling

This makes the IDE extension work identically to the CLI's background agents while providing a more user-friendly interface directly in VSCode.


💻 View my work • 👤 Initiated by Jay Hack • 💬 Initiated in #demoAbout Codegen
⛔ Remove Codegen from PR🚫 Ban action checks

- Create new HomeViewProvider with webview-based interface
- Add purple 'New Agent' button similar to CLI design
- Include built-in prompt input with helpful examples
- Support keyboard shortcuts (Ctrl/Cmd + Enter)
- Update package.json to register new home view
- Maintain same API routes as CLI for consistency
- Add client identifier header for tracking
- Update README with new home screen features

This makes the IDE extension work similarly to the CLI background agents
with a more prominent and user-friendly interface.
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.

0 participants