Skip to content

fix(agents): prompt cache invalidated when code mode catalog changes mid-session - #170234

Closed
imadal1n wants to merge 1 commit into
openclaw:mainfrom
imadal1n:fix/code-mode-catalog-prompt-cache
Closed

imadal1n wants to merge 1 commit into
openclaw:mainfrom
imadal1n:fix/code-mode-catalog-prompt-cache

Conversation

@imadal1n

@imadal1n imadal1n commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Closes #170233
Related: #170050, #169091

What Problem This Solves

Fixes: long Code Mode sessions lose their reusable prompt prefix whenever the
tool catalog drifts between runs of one session (late MCP connects, plugin
loads, client tool shadows), so every later turn pays full input cost again
instead of reusing the cached prefix.

User Impact

User impact: long-running agents on providers with prompt caching keep their
cached prefix across mid-session catalog changes, restoring cache hit rates
for the rest of the session; tool discovery and execution behavior are
unchanged.

Why This Change Was Made

The exec tool description embeds the tool catalog index, and
applyCodeModeCatalog rewrote it on every catalog change via
catalogRef.onChange. The tools array precedes system and messages in
provider prompts, so any description change invalidates the cached prefix for
the whole session; on long sessions this showed up as a full cache rewrite of
a 170k-950k token prompt on every catalog change.

This change stamps the catalog into the description on the first catalog
application of a session (keyed by sessionKey, which the tool-surface plan
already threads through the bridge) and makes onChange a no-op afterwards.
Runtime discovery is unchanged: catalog.search/API.list expose new tools
at runtime, and a new session gets the current catalog. Runs without a
session key keep the previous per-run behavior, so headless and
schema-projection surfaces are untouched.

Alternative considered: keying the stamp by catalogRef identity instead of
adding a sessionKey param. Rejected because the same session can rebuild its
tool surface (and catalog ref) across runs — exactly the paths where late
connects land — so ref-keying would still rewrite the prefix per rebuild.
Moving the catalog index out of the tools array entirely (discovery-only via
catalog.search) was also considered and rejected as a larger behavioral
change: the index is what lets the model plan around available tools, and a
moving system-prompt block invalidates the cache the same way.

Related: #170050 stabilized message-tool and replay prefix content; #169091
removed execution-allowlist dependence from this same description. This PR
covers the remaining rewrite trigger: catalog drift between runs of one
session.

Evidence

Focused tests (synthetic, provider-free), repo's own runner:

  • src/agents/code-mode.catalog-description-stamp.test.ts (new, 3 tests):
    exec description byte-identical across two runs of one session when the
    catalog grows; catalog.search still finds and calls the mid-session tool
    at runtime while the description stays stamped; a new session gets a fresh
    description with the current catalog.
  • Touched-area suites, all passed:
    • code-mode.test.ts, code-mode.bridge.lifecycle.test.ts,
      node-plugin-tools.test.ts, code-mode-retention.test.ts — 49 tests.
    • embedded-agent-runner/run/attempt-client-tools.test.ts — 15 tests.
    • 26-file code-mode/bash-tools/tool-surface sweep (incl.
      embedded-agent-runner.prompt-cache.test.ts, tool-surface-bridge.test.ts,
      tool-surface-plan*.test.ts) — 4 shards passed (290 tests).
  • oxfmt --check clean on the 9 touched files; oxlint clean;
    pnpm tsgo:core (core typecheck) clean.

Existing suites that asserted the old rewrite-on-drift contract
(code-mode client-shadow, bridge-lifecycle client tool, description
retention restriction, embedded runner observer/registry) now assert the
stamped contract with equivalent rigor, including that the live catalog still
narrows/grows while descriptions stay pinned.

Release-note context: keep Code Mode tool declarations stable across
mid-session catalog changes so long sessions keep their prompt-cache prefix.

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T01:20:30.304577Z 48386d8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M labels Oct 12, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9acde3ef6e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/code-mode.ts Outdated
if (!params.sessionKey) {
return undefined;
}
const existing = codeModeCatalogDescriptionStamps.get(params.sessionKey);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Rotate the stamp when a session lifecycle rolls over

Because this lookup is keyed only by sessionKey, /new, /reset, and idle/daily rollover for the same conversation all reuse the old value. initSessionStateAttemptLocked creates a new lifecycle at src/auto-reply/reply/session.ts:568-577 and :653-654, but keeps the same key (and usually the same durable session id), so the first prompt of the fresh transcript still advertises the prior tools and Code Mode configuration until the Gateway process restarts. Include the lifecycle revision in this identity or delete the stamp on rollover so next-session refresh actually occurs.

AGENTS.md reference: AGENTS.md:L21-L21

Useful? React with 👍 / 👎.

Comment thread src/agents/code-mode.ts Outdated
// the whole prompt cache. The first catalog application of a session stamps
// the description; later catalog changes keep runtime discovery through
// catalog.search/API.list without rewriting the model-visible text.
const codeModeCatalogDescriptionStamps = new Map<string, CodeModeCatalogDescriptionStamp>();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Bound the process-wide catalog-stamp cache

In a long-lived Gateway that encounters many conversation or subagent session keys, each entry retains the entire exec description (an up-to-8 KB catalog index plus static guidance) forever. A repo-wide search shows the only clear path is resetCodeModeCatalogDescriptionStamps, called from test support; catalog disposal and session cleanup never remove a key, so normal session churn grows the heap without bound. Add lifecycle-owned eviction or a bounded retention policy.

AGENTS.md reference: AGENTS.md:L19-L19

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR replaces catalog-dependent Code Mode tool descriptions with fixed guidance directing models to runtime discovery.

Example: A session's catalog grows from stable_alpha to stable_alpha plus stable_beta.

  • Before: The exec description changes to advertise stable_beta.
  • After: The description stays identical, and catalog.search discovers stable_beta at runtime.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Required behavior proof is unavailable, the prior correctness findings remain, and the remaining product direction is unsettled.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Performance · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Catalog changes can invalidate reusable prompt prefixes and increase provider input costs in long Code Mode sessions.
Reason: The central fix already exists on main; this branch additionally removes owner-built signature guidance and changes capability hints without an approval for that distinct direction.

Merge readiness

⛔ Blocked before merge - 5 items remain

Current main solves the central cache-instability problem, but the same author's paired issue remains open, preventing automatic closure; the PR's additional discovery-only direction needs an owner decision.

Priority: P2
Reviewed head: 48386d8b82265934d4aadcc291936d6000bcad03
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should the paired work be closed as superseded, or should this PR pursue a distinct discovery-only tool presentation?
  • Recommendation: Resolve the pair as superseded: Recognize the main-only repair, resolve the paired report, and close this alternative PR without requesting further contributor work.
  • Why: The merged repair already addresses the reported defect while retaining signatures deliberately added to reduce discovery turns; no owner approval establishes value for removing those signatures, and the paired-item guard prevents automatic closure.

Before merge

  • Add real behavior proof - The supplied evidence exercises Code Mode through synthetic in-process tests; the commit claims a shipped-Gateway trace, but the full body and available discussion provide no viewable trace or artifact for the revised descriptions, so provide redacted logs or terminal evidence and remove IPs, API keys, phone numbers, and non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Describe API.list results as files rather than callables (P2) - The new shell guidance offers API.list and then instructs the model to call its returned callable, but API.list returns { files: [...] }. Following that route produces a non-function call instead of shell execution. Direct callable invocation to catalog.search, or explain the list/read/global-name sequence. This prior finding remains unfixed.
  • Complete the cutover from quick-index guidance (P2) - This change removes the quick index, but docs/tools/code-mode.md:108–110 still promises a bounded native-tool index, quickstart.md:157 teaches its arrow syntax, and CODE_MODE_SHELL_SOURCE_ERROR directs models to tools omitted from that retired index. Update these consumers to runtime handle metadata, describe(), and API discovery so recovery guidance matches the available surface. This prior finding remains unfixed.
  • Separate Swarm prompt hints from guest availability in the docs (P3) - The description now includes Swarm hints whenever configuration enables Swarm, including missing-spawn and MCP-lookalike catalogs. However, quickstart.md:300–303 still says hints appear only when native sessions_spawn is present and permitted. Document the config-conditioned hints separately from actual guest availability so operators do not interpret hint presence as proof of capability. This prior finding remains unfixed.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Describe API.list results as files rather than callables — src/agents/code-mode.ts:63-64
  • [P2] Complete the cutover from quick-index guidance — docs/tools/code-mode.md:77-83
  • [P3] Separate Swarm prompt hints from guest availability in the docs — src/agents/code-mode.ts:76-78

Tests

  • Low-value test src/agents/embedded-agent-runner/run/attempt-client-tools.test.ts: After removing observer invocation, the cleanup test assigns description strings and immediately asserts those same strings, providing no independent behavior proof; remove those self-confirming assertions.
  • Missing end-to-end proof: Supply a redacted Gateway/provider-request trace across catalog growth and client shadowing, showing stable controls and successful discovery of current contracts; the revised tests also lack a demonstrated base-failing/head-passing run.
Agent review details

How this fits together

Code Mode compacts enabled tools behind exec and wait controls; models discover callable contracts, and guest execution dispatches through the current policy-filtered catalog.

flowchart TD
  A[Enabled tools] --> B[Current tool catalog]
  B --> C[Runtime discovery]
  D[Fixed control descriptions] --> E[Provider request]
  E --> F[Guest execution]
  C --> F
  F --> B
Loading

Technical review

Best possible solution:

Retain current main's stable controls and current catalog guidance, then resolve the paired report and this alternative PR together.

Do we have a high-confidence way to reproduce the issue?

Current-main source removes the catalog-description rewrite and its regression asserts identical serialized control schemas across different catalogs; no target code was executed during this review.

Is this the best way to solve the issue?

Current main solves the reported problem while preserving current signatures; removing those signatures requires a separate product justification rather than another cache fix.

Full review comments:

  • [P2] Describe API.list results as files rather than callables — src/agents/code-mode.ts:63-64
    The new shell guidance offers API.list and then instructs the model to call its returned callable, but API.list returns { files: [...] }. Following that route produces a non-function call instead of shell execution. Direct callable invocation to catalog.search, or explain the list/read/global-name sequence. This prior finding remains unfixed.
    Confidence: 1
  • [P2] Complete the cutover from quick-index guidance — docs/tools/code-mode.md:77-83
    This change removes the quick index, but docs/tools/code-mode.md:108–110 still promises a bounded native-tool index, quickstart.md:157 teaches its arrow syntax, and CODE_MODE_SHELL_SOURCE_ERROR directs models to tools omitted from that retired index. Update these consumers to runtime handle metadata, describe(), and API discovery so recovery guidance matches the available surface. This prior finding remains unfixed.
    Confidence: 1
  • [P3] Separate Swarm prompt hints from guest availability in the docs — src/agents/code-mode.ts:76-78
    The description now includes Swarm hints whenever configuration enables Swarm, including missing-spawn and MCP-lookalike catalogs. However, quickstart.md:300–303 still says hints appear only when native sessions_spawn is present and permitted. Document the config-conditioned hints separately from actual guest availability so operators do not interpret hint presence as proof of capability. This prior finding remains unfixed.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4e8011872afe; fix evidence: commit 0de636660ab3, main fix timestamp 2026-10-12T22:31:04Z.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -132, Tests +245, Docs +9. Total +122 across 20 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 36 168 -132
Tests 12 395 150 +245
Docs 6 45 36 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 476 354 +122

Root-cause cluster

Relationship: superseded
Canonical: #170282
Summary: The merged canonical repair addresses the same catalog-driven control-description instability while preserving catalog guidance.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded prompt-cache and tool-discovery change; the central defect is already repaired on main, without evidence of an urgent runtime outage.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-12T21:13:26.526Z sha 9acde3ef6ead284ad0e51ba8598c24412db1a4de :: needs real behavior proof before merge. :: [P1] Preserve callable ownership when freezing the prompt index | [P2] Rotate the description stamp with the session lifecycle | [P2] Retire stamps when their owning sessions end
  • reviewed 2026-10-13T02:07:04.092Z sha 48386d8 :: needs real behavior proof before merge. :: [P2] Describe API.list results as files rather than callables | [P2] Complete the cutover from quick-index guidance | [P3] Separate Swarm prompt hints from guest availability in the docs
  • reviewed 2026-10-13T02:16:27.905Z sha 48386d8 :: needs real behavior proof before merge. :: [P2] Describe API.list results as files rather than callables | [P2] Complete the cutover from quick-index guidance | [P3] Separate Swarm prompt hints from guest availability in the docs

Reviewed October 13, 2026, 12:41 AM ET / 04:41 UTC (Revision 4).

Fixes: long sessions lose their reusable prompt prefix whenever the tool
catalog drifts between runs of one session. The Code Mode exec description
embedded the tool catalog index (callable names, input/output hints, MCP
server lists), and applyCodeModeCatalog rewrote it on every catalog change
via catalogRef.onChange. The tools array precedes system and messages in
provider prompts, so any description change invalidates the cached prefix
for the whole session; on long-running agents this showed up as a full
cache rewrite of a 170k-950k token prompt on every catalog change (late
MCP connects, plugin loads, client tool shadows).

Make the exec description stable, catalog-independent discovery guidance
per review: it never embeds catalog-dependent names, schemas, or the
catalog index, so the provider-visible tools array stays byte-identical
as the catalog drifts, across /new and /reset, and across sessions.
Current tool contracts (names, schemas, owners) are obtained at execution
time through catalog.search, handle describe(), and the API.list/API.read
declaration files, so a mid-session name collision can never leave a
stale owner contract advertised in the prompt.

Swarm guidance is config-conditioned and hedged by run permissions;
skills, nodes, and MCP guidance is hedged by availability, keeping the
text stable without advertising contracts a run cannot resolve.
Execution restrictions remain bridge-enforced and no longer touch the
prompt; shell guidance points at discovery instead of a frozen callable
name, so a client shadow can strand no stale name behind the shell
global.

Removes the session description stamp, its process-wide map, and
resetCodeModeCatalogDescriptionStamps entirely, retiring that approach's
lifecycle, retention, and callable-ownership defects.

Tests: new code-mode.catalog-description-stability.test.ts (byte-identity
across growth/shrink/owner change/reset, post-collision discovery and
execution to the current owner, first-turn collision);
code-mode.catalog-index.test.ts rewritten to byte-stability across
catalog overflow/reorder plus runtime discovery signatures; collision,
observer, registry-copy, retention, swarm, skill-authority, integrated,
host-contract, and node-plugin suites updated to the stable contract.

Proof: redacted shipped-gateway trace (real gateway process, loopback
mock provider) showing the provider-visible tools array byte-identical
across turns, a mid-session /new, and a fresh session, with guest
discovery returning current contracts each turn.
@imadal1n
imadal1n force-pushed the fix/code-mode-catalog-prompt-cache branch from 9acde3e to 48386d8 Compare October 13, 2026 01:13
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L and removed size: M labels Oct 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48386d8b82

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/code-mode.ts
// `catalog.search` / `API.list`, so the prompt never advertises a contract
// that a mid-session collision may already have moved to another owner.
const CODE_MODE_SHELL_DISCOVERY_GUIDANCE =
" For heavier computation, discover the shell tool with `catalog.search` or `API.list` and call the returned callable; its name and schema come from discovery, not from this prompt.";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop treating API.list results as callables

When a model chooses the newly advertised API.list route for shell discovery, API.list returns { files: [...] } file descriptors in createCodeModeControllerSource (lines 343–357), not a callable, so the next instruction to “call the returned callable” leads to a non-function call. Only catalog.search returns callable handles; direct this sentence to search, or explain the list/read/global-name sequence.

Useful? React with 👍 / 👎.

Comment thread docs/tools/code-mode.md
Comment on lines +78 to +79
session: it never embeds callable names, input/output hints, or the catalog
index, so catalog drift (late MCP connects, plugin loads, client shadows,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the remaining quick-index instructions

After this removes the catalog index, the same page still says providers receive a bounded native-tool index at lines 108–110, while docs/tools/code-mode/quickstart.md:157 and CODE_MODE_SHELL_SOURCE_ERROR still teach quick-index/-> ? syntax that can no longer appear. This leaves both public docs and model-visible recovery instructions pointing at a retired contract; update the remaining references to runtime handle metadata, describe(), and API discovery as part of the cutover.

AGENTS.md reference: AGENTS.md:L52-L52

Useful? React with 👍 / 👎.

Comment thread src/agents/code-mode.ts
Comment on lines +76 to 77
const swarmGuidance = resolveSwarmConfig(ctx.runtimeConfig ?? ctx.config, ctx.agentId).enabled
? " Swarm globals `agents.run`, `phase`, and `log` support orchestration when this run permits spawning; read `agents.d.ts` for types and orchestration idioms."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the documented Swarm prompt condition

When Swarm is configured on but sessions_spawn is absent, an MCP lookalike, or execution-denied, this code now includes the hedged Swarm guidance (the new cases in code-mode-swarm.test.ts:588-613 explicitly expect that), but docs/tools/code-mode/quickstart.md:300-303 still says the prompt hints appear only when the native tool is present and permitted. Operators inspecting the payload can therefore mistake hint presence for capability availability; document the new config-conditioned hint separately from actual guest installation.

AGENTS.md reference: AGENTS.md:L52-L52

Useful? React with 👍 / 👎.

@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. and removed P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Oct 13, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 13, 2026
@imadal1n

Copy link
Copy Markdown
Contributor Author

Closing as superseded: main fixed the Code Mode catalog-description churn in 0de6366, which keeps the control descriptions stable while preserving the bounded signatures. Thanks to the reviewers for the detailed findings.

@imadal1n imadal1n closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Code Mode exec tool description rewrite invalidates the whole prompt cache on every catalog change

1 participant