Skip to content

Add local llama reasoning and harden checkpoint recovery - #43

Merged
SiliconState merged 8 commits into
mainfrom
local-llama-reasoning-content
Aug 30, 2026
Merged

SiliconState merged 8 commits into
mainfrom
local-llama-reasoning-content

Conversation

@SiliconState

Copy link
Copy Markdown
Owner

Summary

  • add GLM 5.3 Flash metadata, effort mappings, and the Qwen3.8 local alias
  • add bounded llama.cpp reasoning_content streaming, current-turn replay, strict local-route detection, and active context accounting
  • harden checkpoint mode recovery, explicit manifest quarantine repair, bounded doctor reporting, and repository-top-level write scope

Safety and compatibility

  • cloud Chat Completions do not receive or ingest local-only reasoning fields
  • local reasoning is capped at 4 MiB and omitted from plain console/final JSON
  • checkpoint symlinks, hard links, foreign ownership, and group/world writes remain fail-closed
  • invalid manifests are quarantined byte-for-byte; hidden refs remain until explicit prune

Verification

  • cargo fmt --all -- --check
  • cargo clippy -p dext --all-targets --all-features --locked --no-deps -- -D warnings
  • cargo audit --deny warnings
  • cargo deny check licenses
  • cargo test -p ratatui-core --lib --locked
  • cargo build --release --locked
  • cargo test --release --locked (986 tests plus 4 Linux PTY smoke tests)
  • cargo install --path . --force --locked

…effort

The OpenAiChatCompletions branch clamped High|XHigh|Max to "high" via the
legacy model-name mapping and never consulted catalog model_specs effort
levels, so servers whose templates reject unadvertised levels (e.g. a
llama.cpp GGUF accepting only xhigh/medium/low) returned HTTP 500 on every
request. Resolve reasoning_effort like the AnthropicMessages branch:
declared per-model levels first, legacy catalog effort levels for
legacy-source specs, then the model-name clamp as fallback.
@SiliconState
SiliconState merged commit f413c02 into main Aug 30, 2026
3 checks passed
@SiliconState
SiliconState deleted the local-llama-reasoning-content branch August 30, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant