Fix ToolNotFoundError: memory_find when ChromaDB is unavailable#65
Draft
Fix ToolNotFoundError: memory_find when ChromaDB is unavailable#65
Conversation
… based on memory tool availability Agent-Logs-Url: https://github.com/wonrax/website/sessions/6771b191-f49c-43f0-9267-4ed66ebc8baa Co-authored-by: wonrax <28887874+wonrax@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix ToolNotFoundError in memory_find execution
Fix ToolNotFoundError: memory_find when ChromaDB is unavailable
Apr 14, 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.
The system prompt unconditionally instructed the LLM to call
memory_findas its mandatory first action, but memory tools are only registered with the agent whenshared_vectordb_clientisSome. When ChromaDB is not configured or fails to connect, the LLM still attempts the call, producingToolNotFoundError: memory_findon every message.Changes
constants.rs: AddedSYSTEM_PROMPT_NO_MEMORY— a variant of the system prompt with the mandatory memory retrieval step, memory tool notes, and memory rules removed. Addedbuild_system_prompt(has_memory_tools: bool) -> &'static strto select between the two. Also fixed a pre-existing typo (aggreable→agreeable).agent.rs: Replaced static.preamble(SYSTEM_PROMPT)with.preamble(build_system_prompt(shared_vectordb_client.is_some())), aligning the agent's instructions with its actual registered toolset.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.pyke.io/home/REDACTED/work/website/website/target/debug/build/ort-sys-777fcbc04738e5d0/build-script-main /home/REDACTED/work/website/website/target/debug/build/ort-sys-777fcbc04738e5d0/build-script-main /home/REDACTED/work/website/website/target/debug/deps/librustc_hash-d607bcef25eb77-I /home/REDACTED/work/website/website/target/debug/deps/libregex-901dd4b1c30edd8b.rl/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/include /home/REDACTED/work/website/website/target/debug/deps/libregex_automata-81b7502384-I /home/REDACTED/work/website/website/target/debug/deps/libregex_syntax-b4a05c81c718/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/aws-lc/include 9.1/generated-include /home/REDACTED/work/website/website/target/debug/deps/libeither-63f923717c242b89.r/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/aws-lc/third_party/s2n-bignum/include 9.1/include /home/REDACTED/work/website/website/target/debug/deps/liblibloading-faa6c5bf817954/home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/aws-lc/third_party/s2n-bignum/s2n-bignum-imported/include 9.1/aws-lc/include /home/REDACTED/work/website/website/target/debug/deps/liblibc-5a1706567bedcee1.rlib 9.1/aws-lc/third_party/s2n-bignum/include 9.1/�� 9.1/aws-lc/third_party/s2n-bignum/s2n-bignum-imported/include 9.1/aws-lc/third_party/s2n-bignum/s2n-bignum-imported/include 9.1/aws-lc/third_party/jitterentropy/jitterentropy-library f/aws-lc-sys-0.3cc uild/syn-cfb0e64-m64 f/aws-lc-sys-0.3/home/REDACTED/work/website/website/target/debug/build/libxml-de86e7b8bf16e3bb/rus-g /out/ebcd52e9457b6221-x509.o(dns block)/home/REDACTED/work/website/website/target/debug/build/ort-sys-1af73e47a7997777/build-script-main /home/REDACTED/work/website/website/target/debug/build/ort-sys-1af73e47a7997777/build-script-main -std=c11 -I /home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.3--64 hVCy/list /home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.3/home/REDACTED/work/website/website/target/debug/build/aws-lc-sys-4da5b4205aeecb8a/out/27a075eab3d35364-pem_pkey.o -I /home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/aws-lc/include e0e40e564.derive_builder_macro.65935b84f9407ab8-cgu.0.rcgu.o /home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/�� e0e40e564.9lvd27ii7256cnzv6hasv8m68.rcgu.o /home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.39.1/aws-lc/third_party/s2n-bignum/s2n-bignum-imported/include 9.1/�� d9e1a8bda17.rlib rlib 775a.rlib lib(dns block)/tmp/codeql-scratch-a9c55f7acc8420df/dbs/rust/working/target/debug/build/ort-sys-1af73e47a7997777/build-script-main /tmp/codeql-scratch-a9c55f7acc8420df/dbs/rust/working/target/debug/build/ort-sys-1af73e47a7997777/build-script-main -I /home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.3--gdwarf-4 -I /home/REDACTED/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aws-lc-sys-0.3-o s-a30eea7215112681/out/libonig.a s-a30eea7215112681/out/a445302c6d3dcb51-iso8859_10.o s-a30eea7215112681/out/a445302c6d3dcb51-iso8859_11.o s-a30eea7215112681/out/a445302c6d3dcb51-iso8859_13.o s-a30eea7215112681/out/a445302c6d3dcb51-iso8859_14.o s-a30eea7215112681/out/a445302c6d3dcb51-iso8859_15.o s-a30eea7215112681/out/a445302c6d3dcb51-iso8859_16.o s-a30eea7215112681/out/a445302c6d3dcb51-euc_tw.o s-a30eea7215112681/out/a445302c6d3dcb51-euc_kr.o s-a30eea7215112681/out/a445302c6d3dcb51-big5.o s-a30eea7215112681/out/a445302c6d3dcb51-gb18030.o s-a30eea7215112681/out/a445302c6d3dcb51-koi8_r.o s-a30eea7215112681/out/a445302c6d3dcb51-cp1251.o s-a30eea7215112681/out/a445302c6d3dcb51-euc_jp_prop.o s-a30eea7215112681/out/a445302c6d3dcb51-sjis_prop.o(dns block)If you need me to access, download, or install something from one of these locations, you can either: