[codex] Optimize VEGA startup and hot paths#99
Draft
unohee wants to merge 1 commit into
Draft
Conversation
Owner
Author
Local Code ReviewTool: Decision: Result:
This local review is attached separately from CI so the PR has both automated checks and an explicit pre-publish review record. |
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
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.
Summary
Implements INT-2343 Phase 1 quick wins from the performance roadmap:
fastmcp/mcpimports off the backend import path.readline()with buffered fallback.synchronous=NORMAL, remove duplicate message index creation, and addconversations(source, updated_at DESC).marked,xterm, andaddon-fitlocally for offline/self-contained chat UI loading.Operational cleanup
com.unohee.vega-backendand keepingcom.unohee.vega.serveras the only port 8100 backend./api/healthagainstvega.db.Local code review
Ran
openswarm review --path .before publishing.Decision:
APPROVEOpenSwarm found no blocking correctness or quality issues. It suggested removing stale sourcemap references from vendored xterm assets; this PR includes that cleanup.
Validation
source ~/dev/mlx_env/bin/activate && python -m pytest -q->965 passed, 3 skipped in 87.80ssource ~/dev/mlx_env/bin/activate && python -m pytest tests/test_session_store.py tests/test_local_file_crawl.py tests/test_streaming_coverage.py tests/test_tools_workspace.py -q->101 passed, 2 skippedcargo checkindesktop/-> passpython -X importtime -c 'import web.server'->0.635s, under the<0.7stargetfastmcp/mcp.clientidx_messages_convremoved,idx_msg_convretained,idx_conversations_source_updatedadded,PRAGMA synchronous=2 (NORMAL)EXPLAIN QUERY PLAN list_sessionsusesidx_conversations_source_updated/api/health:app=vega-agent,db=vega.db, MCP background load recovered tomcp_tools=194,total_tools=295