Repository navigation
Conversation
The shared config schema declares recallExcludeUris (env OPENVIKING_RECALL_EXCLUDE_URIS) for every harness, and the shared recall core forwards it to the context search as exclude_uris. The claude-code, codex, dsh (volcengine#5312), pi (volcengine#5368) and opencode (volcengine#6850) plugins all pass it; the openclaw plugin declares the option in its vendored shared/recall-core.mjs but never accepts it in config.ts, never exposes it in the client SearchContextOptions, and never sends it from buildAutoRecallContext. A configured exclusion is silently ignored, so generated directory files (viking://user/<space>/skills, viking://user/<space>/resources, viking://agent/skills) keep matching like ordinary content and consume the per-turn recall budget with boilerplate. Wire it through the same layers as the other harnesses: parse recallExcludeUris from workspace config (string or list, deduped, default []), accept excludeUris on OpenVikingClient.searchContext and merge it into the request body via the shared buildContextSearchBody (which applies the 200-entry cap), and pass the parsed list from buildAutoRecallContext. Document the option in both READMEs. Tests: config normalization (array/comma+newline string/dedupe/ default), client body forwarding and omission, and an end-to-end buildAutoRecallContext assertion that the configured list reaches the context search.
This was referenced Nov 1, 2026
This branch has not been deployed
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.
Problem
recallExcludeUris(envOPENVIKING_RECALL_EXCLUDE_URIS) is declared in the shared config schema for every harness, and the shared recall core forwards it to the context search asexclude_uris(with the 200-entry cap). The claude-code and codex plugins (#5436), dsh (#5312), pi (#5368) and opencode (#6850) all pass it — the openclaw plugin does not.openclaw even vendors the shared core at
examples/openclaw-plugin/shared/recall-core.mjs, whosebuildContextSearchBodyalready acceptsoptions.excludeUris, but nothing reaches it:memoryOpenVikingConfigSchemarejects the key as unknown,SearchContextOptionshas noexcludeUrisfield, andbuildAutoRecallContextbuilds itssearchContextoptions without it. A configured exclusion is silently ignored, so generated directory files (viking://user/<space>/skills,viking://user/<space>/resources,viking://agent/skills) keep matching like ordinary content and consume the per-turn recall budget with boilerplate.Fix
Wire the option through the same layers as the other harnesses:
config.ts: acceptrecallExcludeUris(string or list), normalize to a dedupedstring[](default[]), allow the key in the schema, expose it in the config spec.client.ts: addexcludeUris?: string[]toSearchContextOptionsand pass it tobuildContextSearchBody, which mergesbody.exclude_uris(cap included).auto-recall.ts: pass the parsed list frombuildAutoRecallContext.recallTargetTypes.No shared-core changes: the vendored copy already implements the contract.
Tests
tests/ut/config.test.ts: string / array / newline forms, dedupe, default[].tests/ut/client.test.ts:exclude_urislands on the request body; omitted when unset.tests/ut/build-memory-lines.test.ts: end-to-end — configuredrecallExcludeUrisreaches the context search call.tsc --noEmitclean; full vitest suite green (44 files, 829 tests).Notes
auto-recall.ts/config.tswith independent quota changes; if it merges first this PR rebases cleanly (hunks are adjacent, semantics disjoint).