forked from sst/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: update agent addition notification to show correct message #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shift
wants to merge
9
commits into
dev
Choose a base branch
from
fix/agent-toast-message
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Phase 0 Critical Stability Fixes: CRASH PREVENTION: ✅ Safe clipboard operations with panic recovery and timeouts ✅ Async API calls to prevent UI blocking ✅ Input buffering during long operations ✅ Comprehensive panic recovery wrappers ✅ Context management with proper timeouts RESPONSIVENESS: ✅ Non-blocking API calls with background goroutines ✅ Input keystroke buffering during AI responses ✅ Async operation tracking and cancellation ✅ Safe memory and pointer operations RESOURCE MANAGEMENT: ✅ Proper context timeouts (30s prompts, 15s shell, 5s files) ✅ Background operation cleanup ✅ Memory leak prevention ✅ Goroutine safety improvements TESTING: ✅ Comprehensive test suite for crash scenarios ✅ Stress tests for concurrent operations ✅ Clipboard failure simulation ✅ Memory operation safety verification NEXT: Fix LSP process spawning (hundreds of rust-analyzer instances) NEXT: Fix MCP server startup/shutdown issues All tests pass. Ready for LSP and MCP process management fixes.
🚨 CRITICAL RESOURCE MANAGEMENT FIXES: LSP PROCESS SPAWNING FIXES: ✅ Fix hundreds of rust-analyzer instances eating RAM ✅ Process pool with max 2 processes per server type ✅ Process reuse and reference counting ✅ LRU eviction when hitting process limits ✅ Automatic cleanup of idle processes after 5 minutes ✅ Proper process lifecycle management on shutdown MCP SERVER IMPROVEMENTS: ✅ Health monitoring with 30-second checks ✅ Automatic restart on failure (max 3 attempts) ✅ Graceful shutdown and resource cleanup ✅ Better error handling and logging ✅ Client lifecycle management PROCESS MONITORING TOOLS: ✅ Real-time process statistics ✅ Health check and alerting system ✅ CLI tools for monitoring and debugging ✅ Automatic detection of resource leaks BEFORE: Hundreds of rust-analyzer processes spawned per session AFTER: Maximum 2 processes per LSP server type, automatic cleanup IMPACT: - Prevents RAM exhaustion from excessive LSP processes - Eliminates MCP server startup/shutdown issues - Provides monitoring tools for process health - Ensures proper resource cleanup on exit Ready for testing and validation.
- Add file watcher for config changes with debouncing - Validate config on reload with proper error handling - Gracefully restart LSP, MCP, and formatter services - Support for all config file types (json, jsonc, global, custom) - Automatic detection of changed sections to minimize impact
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When adding a new agent using the config tool, it currently shows a version update toast instead of an agent addition confirmation. This PR updates the notification to show the correct message.