fix(agent-chat): add safe local runtime preflight#419
Merged
Conversation
- add phased local runtime preparation with cancellation and diagnostics - block unsupported or memory-unsafe model launches before chat opens - surface copyable repair guidance in the project picker Prevents crash-prone local model launches from falling through to first-prompt initialization.
Plugin Module Size GatePolicy: modules over 3 MB must be delivered as plugins; plugin modules over 5 MB must document cache management.
|
|
🚀 PR Quick Check Summary
|
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
This PR introduces changes to local model launch preflight in Brain project setup.
Goal: block unsupported or crash-prone local runtime launches before chat opens.
Core outcome:
Changes
Code
assistant_runtime_service.dartmodel_library_screen_test.dartmodel_library_screen.dartto run local runtime preflight before selecting a project runtimelitert_lm_service.dartwith explicit per-model warmup supportassistant_runtime_service_test.dartwith unsupported, cancelled, and compatibility-blocked preflight coverageLogic
API Changes (if any)
Database Changes (if any)
Observability / Logging
Performance Impact
Risks
Testing
Deployment Notes
Related Commits
Notes
Closes #310