Troubleshooting
Common issues and solutions for the Kai VS Code extension. Most problems can be resolved with simple configuration changes or environment fixes.Installation Issues
Extension Not Appearing in Activity Bar
Symptoms:- Installed Kai but don’t see the icon in the left sidebar
- Extensions view shows Kai as installed but it’s not accessible
- Restart VS Code completely - Close all windows and reopen
- Check VS Code version - Ensure you’re running 1.80.0 or higher
- Verify installation:
- Go to Extensions view (
Ctrl+Shift+X) - Search for “Kai Agent”
- Should show as “Installed” with Reload/Uninstall options
- Go to Extensions view (
- Reset workspace:
- Close VS Code
- Delete
.vscodefolder in your project (optional) - Reopen project
- Reinstall extension:
- Uninstall Kai Agent
- Restart VS Code
- Reinstall from marketplace
Installation Fails or Gets Stuck
Symptoms:- “Installing…” status never completes
- Error messages during installation
- Partial installation with missing functionality
- Check network connectivity - Ensure access to VS Code marketplace
- Clear VS Code cache:
- Install manually:
- Download
.vsixfile from marketplace - Use
Extensions: Install from VSIXcommand
- Download
- Check disk space - Ensure sufficient storage for installation
- Disable other extensions temporarily - Rule out conflicts
Authentication Problems
Cannot Sign In / OAuth Fails
Symptoms:- Clicking “Sign In” does nothing
- Browser opens but authentication fails
- “Authentication failed” error messages
- Check network access:
- Ensure these domains are accessible:
github.comkai.dria.costaging.kai.dria.co
- Ensure these domains are accessible:
- Browser issues:
- Try signing in with an incognito/private window
- Clear browser cache and cookies
- Disable browser extensions temporarily
- Try a different browser
- Corporate firewall:
- Contact IT to whitelist required domains
- Check if OAuth redirects are blocked
- Try from a different network (mobile hotspot)
- VS Code settings:
- Check if VS Code proxy settings are configured correctly
- Ensure VS Code can open external URLs
Signed In But Shows as Logged Out
Symptoms:- Successfully authenticated but VS Code still shows login prompt
- Authentication seems to work but doesn’t persist
- Clear extension state:
- Use command palette:
Kai: Reset State - Sign in again
- Use command palette:
- Check VS Code storage:
- Restart VS Code completely
- Try signing in immediately after restart
- Token issues:
- Sign out completely
- Clear browser cookies for GitHub and Kai
- Sign in again with fresh authentication
Permission Errors During OAuth
Symptoms:- GitHub OAuth shows permission errors
- “Access denied” messages during authentication
- Check GitHub account status - Ensure account is in good standing
- Review OAuth permissions - Make sure you’re accepting necessary permissions
- GitHub organization restrictions - If using organization account, check OAuth policies
- Try personal account - Test with personal GitHub account first
Scan Issues
Cannot Start Scan / “No Files Selected” Error
Symptoms:- Scan button is disabled or doesn’t work
- Error message about file selection
- Files appear selected but scan won’t start
- Verify file selection:
- Check that at least one file has a checkmark
- Ensure selected files are actually code files (not config/binary)
- Try selecting different files
- Check project structure:
- Ensure you’re in a git repository:
git status - Verify repository has commits:
git log --oneline - Make sure working directory is clean
- Ensure you’re in a git repository:
- File size limits:
- Total selected files must be under 50MB
- Uncheck large files or dependencies
- Use
du -sh *to check file sizes
- Repository requirements:
Scan Fails to Start / Upload Errors
Symptoms:- Scan appears to start but fails immediately
- Upload progress never completes
- Network or timeout errors
- Network connectivity:
- Test internet connection
- Try from different network if possible
- Check if corporate proxy is interfering
- File content issues:
- Ensure files don’t contain sensitive data (API keys, passwords)
- Check for binary files accidentally included
- Verify file encoding (UTF-8 preferred)
- Authentication refresh:
- Sign out and sign back in
- Clear extension state and reauthenticate
- Retry scan:
- Wait a few minutes and try again
- Try with fewer files selected
- Contact support if consistently failing
Scan Stuck in “Running” Status
Symptoms:- Scan shows as running for many hours
- No progress updates or notifications
- Status never changes from “Running”
- Check normal timing:
- Baseline: ~2 hours is normal
- Enhanced: ~4 hours is normal
- Full: ~8 hours is normal
- Refresh status:
- Click refresh button in Executions panel
- Restart VS Code and check status again
- Wait for completion:
- Large or complex projects may take longer
- Scan continues even if VS Code is closed
- Contact support if scan runs >24 hours without completion
Results and Display Issues
No Results Showing / Empty Results Panel
Symptoms:- Scan completes but no vulnerabilities shown
- Results panel is blank or shows loading indefinitely
- “No data available” messages
- Refresh results view:
- Click refresh button in Scan Results panel
- Select the execution again in Executions panel
- Check scan success:
- Verify scan actually completed successfully
- Look for completion notification
- Check execution status in Executions panel
- Network issues:
- Ensure internet connectivity for loading results
- Try refreshing after checking network
- Very secure code:
- Some projects may genuinely have no vulnerabilities found
- Try scanning different files or using Full mode for deeper analysis
Cannot View Vulnerability Details
Symptoms:- Can see vulnerability list but clicking doesn’t show details
- Exploit code or fix suggestions not loading
- Partial information missing from vulnerability cards
- WebView issues:
- Restart VS Code to refresh webview
- Check if VS Code webview is blocked by security software
- Content loading:
- Wait for content to load (may take a few seconds)
- Check internet connectivity
- Extension conflicts:
- Disable other extensions temporarily
- Test with clean VS Code profile
Kanban Board Not Working
Symptoms:- Cannot drag and drop vulnerabilities between columns
- Column changes don’t save
- Board appears frozen or unresponsive
- Refresh interface:
- Reload VS Code window (
Developer: Reload Window) - Click refresh in Scan Results panel
- Reload VS Code window (
- WebView reset:
- Close and reopen Scan Results panel
- Restart VS Code completely
- Network synchronization:
- Ensure changes are syncing to cloud
- Check internet connectivity
- Try making changes slowly (one at a time)
Performance Issues
Extension Slows Down VS Code
Symptoms:- VS Code becomes sluggish when Kai is active
- High CPU or memory usage
- Typing lag or interface delays
- Resource optimization:
- Close unused VS Code windows
- Restart VS Code to clear memory
- Consider using smaller file selections
- Extension management:
- Disable Kai when not actively scanning
- Close Scan Results webview when not needed
- System resources:
- Ensure adequate RAM (8GB+ recommended)
- Close other resource-intensive applications
Slow File Selection / Tree Loading
Symptoms:- File tree takes long time to load
- Checking/unchecking files is slow
- VS Code freezes when selecting many files
- Project size:
- Large projects (1000+ files) may be slow
- Consider scanning subdirectories separately
- File system performance:
- Ensure project is on fast storage (SSD preferred)
- Check if antivirus is scanning files
- Selective scanning:
- Focus on specific directories
- Use .gitignore to exclude unnecessary files
Configuration Issues
Settings Not Persisting
Symptoms:- Default scan mode reverts to original setting
- API key settings don’t save
- Preferences reset after VS Code restart
- VS Code settings location:
- Check User vs Workspace settings
- Ensure settings file is writable
- Settings sync:
- If using VS Code settings sync, check for conflicts
- Try disabling sync temporarily
- Permissions:
- Ensure VS Code has write access to settings directory
- Check file permissions in
.vscodefolder
OpenRouter API Key Issues
Symptoms:- API key setting doesn’t reduce costs
- Getting charged despite setting custom key
- “Invalid API key” errors
- Key validation:
- Verify API key is correct and active
- Check OpenRouter dashboard for key status
- Settings location:
- Ensure key is set in User Settings, not just Workspace
- Double-check spelling and spacing
- Key permissions:
- Ensure API key has necessary permissions
- Check usage limits and billing status
Advanced Troubleshooting
Extension Logs and Debugging
Enable verbose logging:- Open Command Palette (
Ctrl+Shift+P) - Run
Developer: Set Log Level - Select
Tracefor maximum detail - Check
Outputpanel →Kai Agentfor logs
- Windows:
%APPDATA%\Code\logs - macOS:
~/Library/Application Support/Code/logs - Linux:
~/.config/Code/logs
Clean Reinstall Process
Complete extension reset:- Uninstall extension through Extensions view
- Clear settings:
- Clear state: Use
Kai: Reset Statecommand before uninstalling - Restart VS Code
- Reinstall from marketplace
- Reconfigure settings as needed
Network Diagnostics
Test connectivity:Getting Additional Help
Before Contacting Support
Gather this information:- VS Code version (
Help→About) - Extension version (Extensions view → Kai Agent → gear icon)
- Operating system and version
- Error messages (exact text)
- Steps to reproduce the issue
- Extension logs (if available)
Support Channels
- Email: kai@dria.co for bug reports and feature requests
- Documentation: Check other sections of this documentation
- Community: VS Code Marketplace Q&A section
- Web Dashboard: Contact support directly through the dashboard
Temporary Workarounds
While waiting for fixes:- Use web dashboard for vulnerability management
- Export results before making changes
- Take screenshots of important findings
- Document workarounds for team members