Added
max_tokensper provider: Configurable max output tokens on each provider entry. Sent with every completion request for gateways that require an explicit limit.- Deterministic link resolution: Wikilinks in change plans are case-corrected before the preview modal. Unresolved links surface as warnings in the modal and console.
- Deterministic lint: Instant structural lint (broken links, missing frontmatter, orphans, dead index links, duplicate filenames, stale sources) runs before the AI lint call.
- Source provenance: Generated wiki pages include
sourcesYAML frontmatter with raw file path, content hash, and ingest date for traceability. - Enhanced preview modal: Update operations show a colored line-diff (
+/-). Link resolution stats and unresolved-link warnings are displayed in the hero section. - Rollback/undo: New
Undo last ContextOS changecommand reverts the most recently applied change set. History is persisted in.contextos/history/(last 20 entries).
Changed
- Connection test: Now sends a real completion ("ping"), verifies non-empty content, and returns structured diagnostics (status, finish_reason, content preview) instead of a simple pass/fail.
- Git execution: Replaced
child_process.execwithspawn(argument arrays, no shell interpolation) for safer handling of remote URLs and commit messages.
Fixed
- Better error messages on truncation (includes content length) and missing content (includes
finish_reason).