Repository navigation
Releases
0.52.1
[0.52.1] - 2026-11-26
Resource duplication (Endpoints, Cantrips, Lorebooks, Maps) and backend housekeeping release: lets users one-click duplicate endpoints (preserving the real stored API key and curated per-model parameters) as well as cantrips, lorebooks (with entries), and maps (with stages and resources), scopes user_data_prefixes in the single-run Cantrip Tester, fixes no-op history_control accounting, validates regex_pattern on verification-rule snapshot restore, and removes dormant forward_llm_chain() parameters.
Added
- One-click Duplicate for Endpoints, Cantrips, Lorebooks, and Maps:
- Server-side
POST /api/endpoints/{id}/duplicate,POST /api/cantrips/{id}/duplicate,POST /api/lorebooks/{id}/duplicate, andPOST /api/maps/{id}/duplicateendpoints (HTTP 201, strictly owner-scoped per Rule 23 — foreign IDs return 404 even for public items). - Endpoint duplication copies the real stored
api_key, provider/routing/tag settings,parameters_json, and deep-copies all curatedEndpointModelrows (including per-model parameters) so users can spin up per-use-case endpoint variants without re-pasting keys. - Lorebook duplication deep-copies all
LorebookEntryrows; Map duplication deep-copies allMapStageandMapStageResourcerows; Cantrip, Lorebook, and Map copies start withis_active=Falseandis_public=Falseso duplicates never double-fire before editing. - Added Duplicate buttons in the Endpoints, Cantrips, Lorebooks, and Maps pages (
frontend/src/pages/*.svelte) that duplicate and open the new copy immediately for editing.
- Server-side
Fixed
- Single-run Cantrip Tester now honors
user_data_prefixes(app/routers/cantrips.py):POST /api/cantrips/{id}/testandPOST /api/cantrips/testnow applyselect_user_data_seedusing the cantrip'suser_data_prefixes(or explicit request prefixes) over explicituser_dataor the user's persistedUserData, matching live-pipeline scoping. - No-op
history_controlops no longer inflateops_applied(app/services/cantrip.py):apply_history_ops()only incrementsops_appliedwhen an operation actually removes/mutates messages, avoiding spurious"1 op(s) applied (0 dropped)"debug entries. - Snapshot restore validates
verification_ruleregex_pattern(app/services/snapshots.py):guard_content()now enforces the 1024-character cap andre.compile()check on bothrestore-as-newandrestore-in-placefor verification-rule snapshots (HTTP 422 on invalid stored patterns).
Changed
- Removed dormant
forward_llm_chain()kwargs (app/services/upstream.py): deleted unusedextra_layers_fn,default_params, andbase_messagesparameters and their dead branches.
0.52.0
[0.52.0] - 2026-11-25
Request strip rules (feature-request N1): user-configurable regex rules that repair conversation matching when a client platform appends per-request notes to message text — JanitorAI's banned-words SYSTEM NOTE being the confirmed case (three requests from one chat each resolved as a brand-new chat, fragmenting chat_data, memories and summaries every turn). Ships with a one-click JanitorAI example rule; empty configuration changes nothing.
Added
- Request strip rules (Settings → Conversation Matching): a list of
{pattern, scope}regexes under a newrequest_strip_patternsuser setting (migration 075). Scope hash normalizes conversation identity only — the same compiled set runs insidecompute_hashforresolve_conversation, bothrecord_post_hashcall sites, and thenote_request_shaperegenerate fingerprint, so a client-appended note that vanishes from the resent history no longer breaks matching on either side. Scope forward also strips matches from the outbound request body (implies hash) — a new Request Strip pipeline stage before budgeting, injections, cantrips and forwarding, with a rule-16 debug capture (request_strip). The forwarded request is untouched by hash-scope rules: JanitorAI's note exists so the model avoids the banned words, and removing it would defeat the feature. Rules mirror the response strip pattern machinery (max 20, 256 chars each, must compile, 422 on bad input); empty/absent rules leave the hash byte-identical to pre-0.52.0. - JanitorAI example rule: an Add JanitorAI Example button in the new Settings card fills in
\n?SYSTEM NOTE: Do not include the following words/phrases in your output under any circumstances:.*(hash scope), captured verbatim from a 2026-11-25 user sample (gitv-n1-samples). The same sample drives the test suite: the three-request scenario (Post 1 → Post 2 → byte-identical regenerate) now resolves to a single chat id, and without rules the three-ids failure is asserted as the vacuity check. - Forward strip helper (
app/services/request_strip.py):strip_forward_messagesstrips string content and per-text-part content lists without mutating the input (the pre-injection hash anchor stays raw by construction),compile_request_strip_rulesgroups hash/forward with forward implying hash, andnormalize_for_hashreuses the response-side strip behavior so both scopes clean up identically. - Upgrade path: a 0.51.0-era database gains the column via migration 075 (dialect-aware; MySQL TEXT nullable per the 060 precedent) and existing rows read as no rules.
- Guide section "Conversation Matching (Request Strip Rules)" under Settings, linked from the new card's help link (
#conversation-matching).
0.51.0
[0.51.0] - 2026-11-24
Phase D2 sandbox, pack security, and frontend hygiene release: retires the dead pre-0.47.0 Deno template path, unifies map pack critical scan-gating with direct map imports, tightens frontend TypeScript interfaces, adds in_chat_system to the Lorebook Position dropdown, and adds cross-feature regression tests.
Changed
- Retired dead pre-0.47.0 Deno template path. Removed
app/services/deno_template.mjsand the unused legacy cold-runner helpers (_TEMPLATE_PATH,_build_runner_script,_run_deno_sync,_execute_deno,_execute_deno_interactive,_run_deno_interactive) fromapp/services/deno_runner.py, eliminating the duplicate Passenger stderr-pump copy now that all cantrips run through thedeno_worker.mjspool. - Map pack installs now enforce
gate_scan_findings(behavior change).POST /api/packs/installpreviously bypassedgate_scan_findingsforresource_type == "map", allowing embedded cantrips or lorebooks with critical safety findings to install withoutoverride_scan=True. Map pack installs now reject critical findings with HTTP 422 (unlessoverride_scan=True), matchingPOST /api/maps/import.
Added
in_chat_systemoption in Lorebooks Position dropdown (frontend/src/pages/Lorebooks.svelte) so all four backend-supportedINJECTION_POSITIONS(system_start,before_last_message,in_chat_system,user_tail) are selectable in the UI.- Large
summarization_block_sizeUI hint (frontend/src/pages/Settings.svelte): displays a non-blocking note whensummarization_block_size > 20explaining that compaction waits until at least that many older messages accumulate past the Keep Recent window. - Strict frontend TypeScript interfaces (
frontend/src/api.ts): removed[key: string]: anyfromMapStageandUserSettingsand added explicitMapStageResourceandPipelineOrderPlantypes. - Cross-feature regression tests (
tests/test_phase51_d2_cleanup.py) covering map-pack critical scan-gating parity, lorebook + cantripuser_tailcoexistence in both orders,context.history.droprelative tohistory_windowinside a Map stage, and dead-template removal.
0.50.0
[0.50.0] - 2026-11-24
Phase D1 routing, reasoning parameter, response observability, and caching polish release: fixes custom role_tag routing and failover isolation (N10), adds an "object" (JSON) LLM parameter type for chat_template_kwargs and nested provider options (N11), captures OpenRouter/nano-GPT reasoning and empty-content/Navigator-skip diagnostics in Debug (N12), adds a per-cantrip card_edits_standing toggle for Cache-Friendly Mode (N13), and fixes uncompilable stored regex verification reporting.
Fixed
- Custom
role_tagendpoints now match Passenger and Map-stage tags and isolate failover chains (N10).resolve_endpoints_by_tagand_build_failover_chaininapp/services/routing.pypreviously comparedEndpoint.role_tagonly, ignoringEndpoint.custom_tagwhenrole_tag == "custom". Both now match oncustom_tag(strictly user-scoped per Rule 23), keeping different custom tags on separate failover chains, andpassenger.py/map_pipeline.pynow emit apassenger_tag_fallback/map_stage_tag_fallbackDebug capture when a requested tag matches no enabled endpoint and falls back to the default chain. - OpenRouter / nano-GPT
reasoningfield extraction and empty-content Debug diagnostics (N12).upstream.pyandresponse_pipeline.pynow readreasoningalongsidereasoning_contentandthinking(both streaming and non-streaming). When a status 200 response yields emptycontent,_save_debug_exchangenow recordsempty_content_diagnostics(finish_reason,choice_keys,message_keys, and a truncatedraw_snippet) onllm_response, andfinalize_responseemits anavigator_cantrips_skippedDebug capture explaining why response-side cantrips did not run. - Uncompilable stored
regex_patternrules with no judge endpoint now reporterrored=True. Inapp/services/verification.py,check_responsenow tracks rules whoseregex_patternraisedre.errorduring pre-check so the no-candidates fallback records an error note instead of reporting a clean pass.
Added
"object"(JSON) LLM parameter type (N11).PARAM_TYPESinapp/services/llm_params.pyandParameterEditor.sveltenow support"object", validated as a JSON object at save time (422 on invalid JSON or non-object values) and applied as a nested dict inapply_to_body/ LiteLLMextra_body— enabling vLLM/Featherlesschat_template_kwargs(e.g.{"thinking": true}for DeepSeek V4,{"enable_thinking": false}for GLM 5.x) and nested Anthropicthinkingconfigs.- Per-cantrip
card_edits_standingtoggle for Cache-Friendly Mode (N13). Cantrips now exposecard_edits_standing(defaultfalse) in the Cantrips UI, API, export/import, and Assistant tools. Whencache_friendly_modeis enabled, a standing cantrip's appends topersonality,scenario, orexample_dialogsstay inmessages[0](the cached system prompt) while dynamic cantrips' appends still redirect touser_tail— accurately in both default and manual pipeline ordering regardless of cantrip order.
Schema
074_cantrip_card_edits_standing: addscard_edits_standing BOOLEAN NOT NULL DEFAULT FALSEtocantrips.
0.49.1
[0.49.1] - 2026-11-24
Completes the user-isolation policy (no user data crosses user boundaries; content packs are the only cross-user channel) across every endpoint-id field, closing one live leak found by the sweep.
Security
- The summarization endpoint was a live cross-user leak.
summarization_endpoint_idwas stored without an ownership check and resolved without a user filter, so a user who knew another user's endpoint id could send their summarizer calls — and, because the lexicon endpoint chain lists the summarizer id as a candidate and resolved candidate ids with no user filter at all, their<LEXICON:name>side calls too — using that endpoint's stored API key. The write now owner-checks (404 on a foreign id), and both reads (the summarizer config and the lexicon chain) are scoped to the requesting user. Ids stored before this release resolve to nothing; nothing is deleted. - Api-key pins, map-stage endpoint pins, and scenario-rule endpoints no longer accept another user's endpoint id (404 on save). Their runtime resolution was already user-scoped, so nothing leaked at runtime — but foreign ids were storable. Map packs are unaffected: imported endpoint ids dangle by design and the scoped stage resolver ignores them.
- All checks share one helper (
assert_owned_endpoint_idinapp/routers/_helpers.py), which the 0.49.0 verification-judge checks now use too. The policy is codified as project rule 23 with matching test standards.
0.49.0
[0.49.0] - 2026-11-24
Adds global and per-user IANA timezone settings for server logs, audit logs, Debug, Compare, and Metrics, and catches the AI Assistant Pane up to full 0.44.0–0.49.0 feature parity (Phase C).
Added
- Global & per-user log/output timezone (
AdminSettings.log_timezone,UserSettings.timezone).- Admins can set a global IANA timezone (e.g.
America/New_York,UTC, or blank for server/browser local) directly in Admin → Server Logs (orPUT /api/admin/settings). Changes apply live viaTimezoneFormatteracross root file and console log handlers without restarting, and format Admin → Audit Logs timestamps. - Users can override their display timezone in Debug or Settings → Proxy Configuration (or
PUT /api/settings), inheriting the admin's global timezone automatically when left blank (effective_timezone = timezone || global_timezone || local). Applied across Debug, Compare, and Metrics via sharedformatTimestamp(). - Validated server-side via Python stdlib
zoneinfo.ZoneInfo(returning 422 on invalid IANA names).
- Admins can set a global IANA timezone (e.g.
- AI Assistant Pane parity with
0.44.0–0.49.0(Phase C).- Tool schemas and docs in
app/services/assistant/registry.pyanddocs/*.mdnow expose and documentregex_pattern,final_verification_enabled,history_window,reserved_tokens,user_data_prefixes,user_tail,context.history,summarization_block_size,cache_friendly_mode,auto_cache_control,cached_tokens,cache_analysis, Gemini 4thinking_level, andtimezone/log_timezone. admin_reads.py(install_health) now reportsdeno_pool_*settings + livedeno_pool.status()andlog_timezone.selfcheck.py(lint_configuration&probe_judge) validatesregex_patterncompilation, stops falsely flagging missing judge endpoints when active rules are regex-only, and surfaces a non-failing informational prompt-caching tip whencache_friendly_modeis off with dynamic lorebooks/memories.
- Tool schemas and docs in
Security
- Verification judge endpoints must belong to the user naming them. A rule's Verification Endpoint Override and the global Verification Endpoint are owner-checked on save (a foreign id is rejected with 404
Endpoint not found, the same behavior as the driver's default-endpoint field), and both runtime lookups are scoped to the requesting user. Previously, a user who knew another user's endpoint id could point a judge at it, and the judge call was sent out with that endpoint's stored API key. Ids stored before this release simply stop resolving at runtime; nothing is deleted or rewritten.
Schema
073_timezone_settings: addslog_timezone VARCHAR(64) NOT NULL DEFAULT ''toadmin_settingsandtimezone VARCHAR(64) NOT NULL DEFAULT ''touser_settings.
Dependencies
- Added
tzdata==2026.6(official IANA timezone database forzoneinfoon Windows and minimal containers); regeneratedrequirements/main.txt,requirements/dev.txt, andrequirements/docker.txtwith--universal --generate-hashes --python-version 3.12 --upgrade.pip-auditreports 0 known vulnerabilities.
0.48.1
[0.48.1] - 2026-11-23
Phase B token-saving verification and summarization hardening: enables zero-LLM regex-only verification without a Navigator judge endpoint, hardens incremental summarization against degraded or empty-delta passes, and adds config-time validation for Gemini thinking_level.
Fixed
- Regex-only verification rules now run without a Navigator judge endpoint.
load_verification_config,is_verification_enabled,run_verification_loop,check_response, and Map final-output verification previously skipped verification whenever no global judge endpoint was configured — even when active rules had deterministicregex_patternpre-checks. Active regex rules now run and pass/reject cleanly with zero LLM token cost when no judge endpoint is configured (LLM-only rules without a judge endpoint still record an error note as before). - What that changes for existing setups. A regex rule that was being skipped now runs for real: a match rejects the reply and resubmits the Driver request as usual. No judge tokens are spent, but that resubmission costs Driver tokens, and — as with any active verification — streaming responses are buffered until the check completes. Rules with a Verification Endpoint Override now also run when no global verification endpoint is set; they were skipped before, so each such rule now makes real judge calls on the endpoint it names. To keep a rule dormant, deactivate it or send
<VERIFY:off>. - Incremental summarization no longer drops newly-aged messages on degraded or empty-delta passes. When an incremental summarizer call degrades (times out or errors) or encounters an empty-text delta,
maybe_summarize()now compresses only the already-covered prefix (existing.message_count) underexisting.summary— keeping newly-aged delta messages verbatim in the prompt and never promoting the storedboundary_hash/message_count. - Config-time validation for
thinking_level.ParameterDefinapp/services/llm_params.pynow validates non-blankthinking_levelvalues againstminimal,low,medium,high,xhigh,disable, andnone(case-insensitive) at save time (422) rather than letting typos reach the provider as a 400.
0.48.0
Automatic prompt caching and cache diagnostics release (Phase A): adds Cache-Friendly Injection Mode (moving dynamic memories, non-constant lorebooks, and appended cantrip card deltas to user_tail), automatic Anthropic / OpenRouter cache_control breakpoint stamping, a Debug Prefix-Diff ("Cache Buster") detector, and unified Lorebook total_budget enforcement on Map stages and manual Pre-Forward Order slots.
Added
- Cache-Friendly Injection Mode (
UserSettings.cache_friendly_mode, opt-in, default off). Configurable under Settings → Prompt Caching. When enabled:- Dynamic Memory tail injection: persistent
[MEMORY]blocks are sorted deterministically by key and appended to the newestrole == "user"message (user_tail) via shared multimodal-safeappend_user_tail()instead of mutatingmessages[0]. - Non-constant lorebook redirection: non-constant
before_last_messageandin_chat_systemlorebook entries are automatically redirected touser_tailwhileis_constantandsystem_startentries stay pinned at the top of the prompt. - Legacy cantrip delta redirection: appended deltas on
context.character.personality,scenario, andexample_dialogs(when the mutated value starts with its seeded base value) are routed touser_tailinstead of rewritingmessages[0]; full replacements still apply normally.
- Dynamic Memory tail injection: persistent
- Automatic Anthropic / OpenRouter
cache_controlbreakpoints (UserSettings.auto_cache_control, opt-in, default off). Configurable under Settings → Prompt Caching. When enabled and forwarding to Anthropic, OpenRouter, or Claude models, stamps up to 2cache_control: {"type": "ephemeral"}breakpoints (lastsystemmessage + second-to-last non-system message) per failover candidate without mutating_gitv_messages_for_hashor non-Claude endpoints, emitting acache_controlDebug timeline entry. - Debug Prefix-Diff / "Cache Buster" detector (
app/services/cache_diagnostics.py).GET /api/debug/{exchange_id}now computescache_analysisagainst the immediately preceding debug exchange in the same chat: shared prefix token count & stability percentage, first diverging message index/role, culprit pipeline stage attribution, and a plain-English summary surfaced in a Prompt Cache Analysis banner on the Debug page. - Lorebook
total_budgetenforcement on Map stages and manual Pre-Forward Order slots._inject_stage_lorebooks(app/services/map_pipeline.py) and_inject_book_now(app/services/pipeline_order.py) now enforce each lorebook's allocated budget cap (lorebook_budget_chars), matching the default global pass.
Schema
072_user_settings_prompt_caching: addscache_friendly_mode BOOLEAN NOT NULL DEFAULT FALSEandauto_cache_control BOOLEAN NOT NULL DEFAULT FALSEtouser_settings.
0.47.1
Adds an auto-selected Approve all option to the update confirmation flow so multi-version updates run unattended through the entire batch and only stop on an actual error (or when the admin explicitly unchecks batch approval to review each version individually).
Added
- Batch "Approve all" option for multi-version updates. Clicking Update Now in Admin → Update now opens a confirmation modal with "Approve all updates in this batch automatically (only stop on error)" checked by default (
auto_approve: true). When checked, multi-release chains proceed through every hop unattended and halt only on actual errors (failed,stalled,version_mismatch,expired). When unchecked (auto_approve: false), the chain pauses after each installed hop inawaiting_approvaluntil the admin clicks Approve Next Step or Approve All & Continue (POST /api/admin/update/executeandPOST /api/admin/update/chain/resumeaccept optional{ "auto_approve": bool }, defaulting totruefor backward compatibility).
Note: GitInTheVan can only control its own prompts. Operating-system dialogs — Windows UAC, SmartScreen, or firewall prompts — can still appear while the update scripts run and are outside the app's control. If an update appears paused and GitV's own Approval Needed card is not showing, look for an OS dialog behind the window.
0.47.0
Adds a warm single-use Deno worker pool with dynamic burst scaling (configurable live from the Admin panel) plus cantrip hot-path DB and context batching, cutting chained cantrip latency dramatically while preserving full per-cantrip process isolation.
Added
- Warm single-use Deno worker pool (
app/services/deno_worker.mjs,app/services/deno_runner.py). Replaces per-cantripdeno_template.mjsbase64 substitution and temp.mjsfile writes with a static single-use worker booted ahead of time under the exact same 8--deny-*sandbox flags. Each warm worker blocks onstdinfor one newline-delimited JSON job frame, executes the cantrip (supporting both plain and Passenger interactive modes), writes JSON tostdout, and exits immediately — zero cross-cantrip state, zero temp files, zero base64 overhead, and zero per-cantrip antivirus scans. - Dynamic burst scaling & Admin UI controls. Admins can configure
deno_pool_min_idle(default1, range0–16),deno_pool_max_idle(default4, range0–32), anddeno_pool_idle_ttl_seconds(default60, range10–600) live in Admin → Caps & Limits → Cantrip Sandbox Pool (orPUT /api/admin/settings) without restarting, and inspect livedeno_pool_status(idle_count,total_warm_hits,total_cold_spawns). Setting both min and max to0disables pre-warming.app/main.pylifespan starts baseline warm-up on boot and cleanly terminates/reaps all idle workers on shutdown. - Pre-emptive warm-up and cantrip hot-path batching.
process_cantrips,process_cantrips_post_driver, andrun_pre_forward_orderednow triggerdeno_pool.ensure_warm(len(cantrips))as soon as active cantrips are resolved (overlapping warm-up with DB loads), batch-load and batch-saveCantripDatain one query/commit per pass, passbefore=diffs inpipeline_order.pyto skip no-opchat_data/user_datawrites, and skip redundantbuild_context()rebuilds when intervening steps did not mutatemessages.
Schema
071_admin_deno_pool_settings: addsdeno_pool_min_idle INTEGER NOT NULL DEFAULT 1,deno_pool_max_idle INTEGER NOT NULL DEFAULT 4, anddeno_pool_idle_ttl_seconds INTEGER NOT NULL DEFAULT 60toadmin_settings.