Repository navigation
V0-09: Add Assistance Policy and local Ollama discovery - #29
Merged
Merged
Conversation
- Add assistance_policy and selected_model to thinking_workspaces. - Default every new Workspace to Manual assistance. - Add local Ollama /api/tags discovery with typed failure states. - Add UI to switch between Manual and Local AI, refresh/search/select models. - Show distinct states for unavailable, timeout, malformed, empty, and missing model. - Persist policy and selected model across restart. - No Note content sent; no chat/generate; no cloud or custom host in this slice.
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.
Implements #10.
What changed
assistance_policyandselected_modelcolumns tothinking_workspacesvia migration0006.ManualAssistance Policy.AssistancePolicyenum (manual/local_ai/cloud_ai) to the Rust workspace model and TypeScript client.src-tauri/src/ollama.rs) with:http://localhost:11434and native/api/tagsdiscovery.unavailable,timeout,malformed_response,empty_list.set_assistance_policy,select_model,discover_local_models.AssistanceSection+useLocalDiscoveryhook) to:Out of scope (per #10)
Verification
npm run checkpasses (tsc, eslint, vitest 97, cargo test 32, tauri smoke).npm run buildproduced the macOS bundle:src-tauri/target/release/bundle/macos/Nodepad.appCloses #10.