fix(transport): system-message guard for ollama-cloud (#29871) - #30236
Closed
zombi3butt wants to merge 7 commits into
Closed
fix(transport): system-message guard for ollama-cloud (#29871)#30236zombi3butt wants to merge 7 commits into
zombi3butt wants to merge 7 commits into
Conversation
…f GGUF metadata (issue NousResearch#29802)
…me dict (issue NousResearch#29872) When resolving named custom providers (custom:<name>), the returned runtime dict previously collapsed provider to bare 'custom', losing the specific sub-provider identity. This caused TUI display and credential pool lookups to show only 'custom' instead of 'custom:bobapi-deepseek' etc. Changes: - _try_resolve_from_custom_pool: preserve sub-provider name in returned provider field as 'custom:<name>' - _resolve_named_custom_runtime: non-pool return path uses 'custom:<name>' for the provider field - Bare 'custom' with explicit base_url remains unchanged Updated tests to reflect new expected provider values.
…and improving error visibility (issue NousResearch#29726)
fix: route cron job scripts through remote terminal backend (issue NousResearch#29849)
…9871) When a provider's prepare_messages() hooks silently strip the role= "system" message (known with some Ollama Cloud variants), _build_kwargs_from_profile detects this via a cross-check between input params and sanitized output, and re-injects from original input so SOUL.md persona content is never lost mid-flight. Fixes NousResearch#29871
Collaborator
|
Resubmission of closed #29935, both fixing #29871. Note: this PR bundles several unrelated changes beyond the ollama-cloud system-message guard — |
Contributor
|
Thanks for the defensive investigation. This is an automated hermes-sweeper review; current
The member note about the unrelated cron, MCP, runtime-provider, skills, and metadata changes was also considered. No cherry-pick is needed for the stated transport fix. |
This was referenced Jul 28, 2026
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.
When provider hooks silently strip the role=system message from outgoing API payloads, _build_kwargs_from_profile detects this and re-injects from original input so SOUL.md persona content is never lost.
Fix: defensive cross-check in _build_kwargs_from_profile that compares input params vs output messages, re-injecting system role when stripped.
Changes:
Testing: 73 tests pass, no regressions. Fixes #29871