Live-first runtime with tool system and stability pass#2
Merged
gabrimatic merged 4 commits intomasterfrom Mar 14, 2026
Merged
Conversation
- Replace spaCy/CLIP-based ComplexityScorer with a lightweight, dependency-free pattern-matching router; remove words.py and all ML/NLP dependencies - Add runtime/ layer (LiveSession, PreflightManager, ScreenObserver, SpeechController, StatusPresenter) for always-on live architecture - Add session_state.py (QualityMode, InteractionStyle) to carry per-session context through message handling and model selection - Rewrite main.py as a single live entry point; remove manual/voice mode menu - Extend message_handler with interaction-style system prompts and quality-mode model overrides - Add tests/ suite covering complexity scorer, session state, image history, and all mode runtimes - Update setup.sh with preflight checks, update docs and lock file
- Implemented ToolRegistry for managing tool registration and execution. - Added ScreenshotTool for capturing screenshots and reporting active applications. - Created SystemInfoTool to report battery, disk, and memory status on macOS. - Developed TimeTool to return the current date and time. - Introduced WeatherTool to fetch current weather conditions using wttr.in. - Added utility functions for ANSI color constants in terminal UI. - Implemented comprehensive tests for browser, filesystem, and tool functionalities. - Enhanced voice input module with tests for VAD and transcription processes.
- Added `_install_chromium` function to handle automatic installation of Playwright's Chromium binary if not found. - Refactored `_launch_browser` to utilize the new installation function and retry launching the browser after installation. - Updated error handling to provide clearer messages for installation failures. style: Add DIM_ITALIC constant for italicized dim text in theme - Introduced `DIM_ITALIC` escape sequence in `theme.py` for consistent styling. test: Enhance PreflightResult tests for new wh_bin attribute - Updated tests in `test_runtime.py` to assert the presence of `wh_bin` in various scenarios. - Adjusted assertions related to microphone availability to reflect changes in PreflightResult structure. test: Add tests for voice command functionality - Created tests for `/voice on|off` commands in `test_runtime.py` to ensure proper enabling and disabling of voice features. - Verified that the correct state is maintained when toggling voice commands. test: Ensure CLI transcription uses resolved wh binary path - Added test in `test_voice_input.py` to confirm that the correct `wh_bin` path is used during CLI transcription. chore: Introduce startup.py for provider and model selection - Created `startup.py` to manage the selection of AI providers and models when the backend is not configured or reachable. - Implemented functions for setting up Ollama and LM Studio, including model fetching and environment configuration.
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
Key changes
src/runtime/— New session orchestrator, preflight checks, voice input, speech controller, status presenter, first-run setupsrc/tools/— 14 tools with registry pattern, sandboxed filesystem, headless browser, 30s per-tool timeoutsrc/clients/— Tool call history persistence viahistoryparameter, text-format tool call recovery, 50-char buffer detectionsrc/chat/— Deterministic complexity scorer with word-boundary regex, non-blocking screenshot capturesrc/utils/— Settings validation, isatty() theme support, zombie-free sound player, turn-aware message historyTest plan