Commit Graph

537 Commits

Author SHA1 Message Date
ed 45104af1ee fix(rag): Final RAG stability and status fixes
- Corrected GeminiEmbeddingProvider model name to gemini-embedding-001.
- Prevented _fetch_models from overwriting active i_status (sending/done/error).
- Updated 	est_rag_engine.py to correctly patch the lazy-loaded chromadb getter.
- Adjusted RAG simulation tests to account for the new initializing... status and automatic initial indexing.
- Fixed typo in 	est_z_negative_flows.py.
2026-05-14 23:38:23 -04:00
ed c769a0ed18 fix(phase3): Resolve remaining test failures and stabilize GUI
- Fixed
ullcontext NameError in gui_2.py.
- Corrected TestMMAApprovalIndicators to call real rendering methods on mock app.
- Updated 	est_history_manager.py to provide required context_files argument to UISnapshot.
- Stabilized 	est_z_negative_flows.py with robust polling for terminal response status and corrected field names.
- Cleaned up debug logging in 
ag_engine.py and pp_controller.py.
2026-05-14 23:13:17 -04:00
ed 2d76381796 fix(rag): Resolve RAG test failures and race conditions
- Fixed circular import in chromadb by using lazy imports in 
ag_engine.py.
- Moved RAG engine initialization to background threads in AppController to avoid blocking UI.
- Added _rag_engine_lock to prevent race conditions during engine re-initialization.
- Updated Gemini embedding model to gemini-embedding-001 (available) from 	ext-embedding-004 (not found).
- Fixed _rebuild_rag_index to use fresh 
ag_engine instance from self in every iteration.
- Optimized 	est_rag_phase4_final_verify.py and 	est_rag_phase4_stress.py to wait for RAG sync before continuing.
- Added dummy embedding fallback in LocalEmbeddingProvider if sentence-transformers fails to load.
2026-05-14 22:23:48 -04:00
ed 54aa1ce4a5 fix indents on end_combos for Tier Model Usage collapsing header in _render_mma_usage_section 2026-05-14 21:45:45 -04:00
ed 940ab2ea2c add chroma db to app controller 2026-05-14 21:21:28 -04:00
ed 08125ac63a move rag status indictor to usage analytics window/panel 2026-05-14 21:21:15 -04:00
ed f2c265ec69 finally fixed leaking discussion collapsing header (_render_theme_panel had entropied code from agent changes) 2026-05-14 21:11:37 -04:00
ed 3976559a2f fixes to main menu ribbon 2026-05-14 20:35:02 -04:00
ed 0863559e59 fix(gui): Fix imgui.begin_child unbalanced EndChild() calls
In ImGui, EndChild() MUST be called even if BeginChild() returns False (meaning the child is clipped). Using if imgui.begin_child(...): caused EndChild() to be skipped, unbalancing the stack and causing sloppy.py to crash when certain UI panels were off-screen or collapsed.
2026-05-14 20:19:44 -04:00
ed c8545dfbea test(gui): Fix test_gui_window_controls_minimize_maximize_close unpacking error
Added missing mock for imscope.menu to prevent the test from entering the menu loops which expect valid imgui menu_item tuple return values.
2026-05-14 20:09:28 -04:00
ed c8e6a9585d test(gui): Fix test_discussion_tabs_rendered mock assertion
The test was incorrectly asserting against mock_imgui.begin_tab_item instead of the newly refactored mock_imscope.tab_item context manager pattern.
2026-05-14 20:08:14 -04:00
ed ef91c64a65 minor cleanup aggregae.py 2026-05-14 00:23:02 -04:00
ed 292b021174 remove ai_server.py (no longer needed) 2026-05-14 00:22:38 -04:00
ed b5e512f483 feat(sdm): inject structural dependency mapping tags across codebase
Adds [C: caller] tags to functions/methods and [M: mutation] / [U: usage] tags to class variables based on cross-module call analysis.
2026-05-13 22:35:52 -04:00
ed 5bb3a9026f fix(models): restore original module docstring 2026-05-13 22:31:34 -04:00
ed 737b9f31e6 docs: reorganize file_cache.py with region tags and update tooling guidelines 2026-05-13 22:30:42 -04:00
ed 0741b5e69f refactor(models): reorganize src/models.py with region blocks and updated tool lists
- Group imports: __future__, stdlib, third-party, local
- Add #region: blocks for Constants, Config Utilities, History Utilities, Pydantic Models, MMA Core, State & Config, Tool Models, UI/Editor, Persona, Workspace, MCP Config
- Update AGENT_TOOL_NAMES with all 46 tools from MCP server
- Update DEFAULT_TOOL_CATEGORIES with 9 categories: General, Surgical, Python, C/C++, Web, Runtime, Analysis, Beads
- Condense module docstring to essentials
- Preserve all [C: ...] caller annotations
2026-05-13 22:30:13 -04:00
ed b9e4050175 feat(mcp): finalize Python structural tools with security checks and indentation normalization 2026-05-13 22:03:37 -04:00
ed 8b2572757c feat(mcp-client): Integrate new Python structural tools 2026-05-13 21:44:35 -04:00
ed 242ea051ad pushing latest gui_2.py, adjustment to regions in app controller. 2026-05-13 21:29:04 -04:00
ed fa4388bbe0 feat(app-controller): modularize handlers and enforce 1-space indentation 2026-05-13 21:26:29 -04:00
ed 34b1349c4f WIP: cleaning up ai_client.py 2026-05-13 19:06:33 -04:00
ed 7318d32f6b refactor(ai_client): Move ProviderError to module level 2026-05-13 18:20:27 -04:00
ed 51be7d7405 feat(mcp): Extract return type hints and ImGui scopes in code outline 2026-05-13 17:22:34 -04:00
ed 8cbd232db0 style(gui): Apply strict vertical compaction and add type hints 2026-05-13 16:51:19 -04:00
ed 8d0599a9cb refactor(gui): Reorganize App.__init__ and extract methods 2026-05-13 16:37:52 -04:00
ed b2fdca0c3d remove(ai_client): delete unused stub and proxy files
Deleted:
- src/ai_client_stub.py
- src/ai_client_proxy.py

Fixed test imports to use ai_client instead of ai_client_stub.
2026-05-13 16:03:54 -04:00
ed 0f15ecbbf3 fix(app_controller): async RAG engine init to avoid blocking startup
RAG engine initialization (including chromadb import and index loading)
now happens in a background thread, allowing the GUI to show immediately.
The app was blocking for 5+ seconds during init_state() because RAG was
enabled in config. Now RAG loads asynchronously.
2026-05-13 15:54:59 -04:00
ed 7ba94d4a42 fix(app_controller): lazy load rag_engine to avoid blocking startup
Before this change, app_controller imported rag_engine at module level which
pulled in chromadb (~0.45s). Now rag_engine is only imported when RAG is
actually enabled and needed. This improves startup time significantly.
2026-05-13 15:28:41 -04:00
ed 12f16e9a11 fix(ai_client_proxy): add _pending_lock threading.Lock
And fix test_discussion_takes_gui.py patches to use ai_client_stub
2026-05-13 11:24:58 -04:00
ed 169fe52092 fix(ai_client_stub): add module-level import for GeminiCliAdapter
The class was only accessible inside function scopes, causing
AttributeError when app_controller tried to instantiate it
at module level via ai_client.GeminiCliAdapter().
2026-05-13 10:53:23 -04:00
ed d67df948e5 progress ai forgot to push 2026-05-13 09:33:23 -04:00
ed 82120060ba organize imports in mcp client. 2026-05-13 09:03:27 -04:00
ed ae2227fdd4 feat(ai-server): Add ai_server subprocess with google.genai lazy loading 2026-05-13 09:00:10 -04:00
ed 4c5e719be4 feat(ai-server): Add AIProxyClient queue communication layer 2026-05-13 08:58:58 -04:00
ed 93c5320fa0 organize app controller imports 2026-05-13 08:20:32 -04:00
ed 16428efc6f More compaction/cleanup to gui 2026-05-13 08:03:13 -04:00
ed bf84058ca8 possibly finished reognizating gui_2.py... 2026-05-13 07:27:41 -04:00
ed f52eff6499 more organization of gui_2.py 2026-05-13 07:01:36 -04:00
ed c4b3c428f5 WIP: Trying to organize the gui_2.py heavily 2026-05-13 06:43:26 -04:00
ed 8e9725792f adjustments to rag engine 2026-05-13 06:32:26 -04:00
ed 1a529ed750 fix defer 2026-05-13 05:55:46 -04:00
ed 9266add6a1 Managing thirdparty package: defer. 2026-05-13 05:09:23 -04:00
ed 8d6c91d306 set the dumb filter to be off by default. 2026-05-12 21:06:53 -04:00
ed c0d106255b refactor(gui): Modularize _render_context_composition_panel into sub-methods 2026-05-12 20:33:38 -04:00
ed 12465fd04c refactor(theme): Introduce semantic theme layer and clean NERV cruft from gui_2.py 2026-05-12 20:24:47 -04:00
ed b53fc19f99 fix(gui): Un-nest _render_response_panel to fix AttributeError 2026-05-12 20:03:33 -04:00
ed 765cbad3af refactor(gui): Use imscope context managers in _render_discussion_entry_read_mode 2026-05-12 19:55:27 -04:00
ed 325970eb38 refactor(gui): Fix scoping issues and restore missing _render_discussion_tab 2026-05-12 19:52:50 -04:00
ed ff1a9d77f7 gemini 3.1 fails 2026-05-12 19:50:46 -04:00