Skip to content

fix(amazon-bedrock): inject cache points for application inference profile ARNs - #69953

Merged
vincentkoc merged 2 commits into
openclaw:mainfrom
anirudhmarc:fix/bedrock-app-inference-profile-prompt-caching
Apr 22, 2026
Merged

vincentkoc merged 2 commits into
openclaw:mainfrom
anirudhmarc:fix/bedrock-app-inference-profile-prompt-caching

Conversation

@anirudhmarc

Copy link
Copy Markdown
Contributor

Summary

Fixes #19279
Upstream: earendil-works/pi#2925

pi-ai's internal supportsPromptCaching checks model.id for specific Claude model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for application inference profile ARNs that don't contain the model name. This causes prompt caching to silently break for Bedrock users with application inference profiles.

Changes

extensions/amazon-bedrock/register.sync.runtime.ts

  • Added piAiWouldInjectCachePoints() — mirrors pi-ai's detection logic to know when the upstream library handles caching on its own
  • Added needsCachePointInjection() — identifies the gap: models that OpenClaw's isAnthropicBedrockModel() recognizes as Anthropic but pi-ai won't
  • Added injectBedrockCachePoints() — patches the Converse API payload via onPayload to add cachePoint blocks to the system prompt and last user message, matching the same format pi-ai uses natively
  • Modified wrapStreamFn to use streamWithPayloadPatch for these models

extensions/amazon-bedrock/index.test.ts

  • Added 7 test cases covering cache point injection for application inference profile ARNs

Safety

  • Checks for existing cache points to avoid double-injection
  • Respects cacheRetention: "none"
  • Defaults to "short" retention (matching pi-ai's default)
  • Becomes a no-op once upstream pi-mono#2925 is fixed (the piAiWouldInjectCachePoints check will match, so needsCachePointInjection returns false)

@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from 6a09a14 to 6f605ce Compare April 22, 2026 02:45

@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: 6a09a14f57

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@greptile-apps

greptile-apps Bot commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes prompt caching for Bedrock application inference profile ARNs by injecting cachePoint blocks via onPayload when pi-ai's model-name pattern matching would miss the opaque ARN. The implementation adds a fast heuristic path (ARN recognized by isAnthropicBedrockModel) and a slow API-resolution path (GetInferenceProfile), with guards against double-injection and a cacheRetention: "none" bypass.

Confidence Score: 5/5

Safe to merge — only P2 findings remain, and prior P1 concerns from the thread have been addressed with a clarifying comment.

Both findings are P2 quality/maintenance concerns (duplicated logic and error-caching behavior). Correctness is protected by the hasCachePoint double-injection guard, cacheRetention: none is respected, and the 7 new test cases cover the key scenarios.

No files require special attention — the implementation is self-contained in register.sync.runtime.ts.

Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/amazon-bedrock/register.sync.runtime.ts
Line: 146-161

Comment:
**Duplicated caching model patterns risk silent drift**

`resolvedModelSupportsCaching` (lines 146–161) contains identical pattern-matching logic to `piAiWouldInjectCachePoints` (lines 74–92). They're used on different inputs (resolved model ARN vs profile ARN), but because they're separate, an update to one (e.g., adding `claude-3-5-sonnet`) won't automatically apply to the other. This means the slow API-resolution path and the heuristic fast path could silently make different caching decisions for the same underlying model.

Consider extracting the shared patterns into a single private helper (`matchesCacheableClaude(id: string): boolean`) and having both functions delegate to it.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/amazon-bedrock/register.sync.runtime.ts
Line: 193-198

Comment:
**Transient API errors are permanently cached**

When `GetInferenceProfile` fails, the catch block stores the heuristic result (`isAnthropicBedrockModel(modelId)`) in `appProfileCacheEligibleCache` with `appProfileCacheEligibleCache.set(modelId, fallback)`. For a truly opaque non-Anthropic profile ARN, `isAnthropicBedrockModel` returns `false`, so this negative result is cached for the entire session — a transient network blip on the first call silently disables cache injection for that ARN until the process restarts.

Consider skipping the cache write on error (so the next request retries), or at minimum logging a warning so the failure isn't invisible.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (3): Last reviewed commit: "fix(amazon-bedrock): inject cache points..." | Re-trigger Greptile

@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from 6f605ce to ed20293 Compare April 22, 2026 03:04

@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: ed2029308a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@anirudhmarc
anirudhmarc marked this pull request as draft April 22, 2026 03:24
@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from ed20293 to fd84704 Compare April 22, 2026 03:27
@wirjo

wirjo commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

LGTM

@anirudhmarc

Copy link
Copy Markdown
Contributor Author

Addressed the review feedback — needsCachePointInjection is now gated to application inference profile ARNs only (arn:aws:bedrock:...:application-inference-profile/...). Regular Claude model IDs and system-defined inference profiles are left entirely to pi-ai's native cache handling. Added a test confirming older Claude models outside pi-ai's cache list (e.g. Claude 3 Opus) don't get injected either.

@anirudhmarc
anirudhmarc marked this pull request as ready for review April 22, 2026 03:29
@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch 2 times, most recently from ac1746d to e0cff7b Compare April 22, 2026 15:18

@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: e0cff7b17a

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from e0cff7b to eb17301 Compare April 22, 2026 15:27
@anirudhmarc
anirudhmarc marked this pull request as draft April 22, 2026 15:28
@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from eb17301 to 3f85f86 Compare April 22, 2026 15:32

@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: eb173011ff

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from 3f85f86 to 1904f71 Compare April 22, 2026 15:41
@anirudhmarc
anirudhmarc marked this pull request as ready for review April 22, 2026 15:46

@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: 1904f71d9e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from 1904f71 to 0f49706 Compare April 22, 2026 15:52
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: L and removed size: M labels Apr 22, 2026
@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from 0f49706 to cda7be8 Compare April 22, 2026 15:54
@anirudhmarc

Copy link
Copy Markdown
Contributor Author

The parity preflight failure (approval-turn-tool-followthrough) is unrelated to this PR — the same scenario is also failing on main (last two completed Parity gate runs on main both show failure). Our changes only touch the amazon-bedrock extension and cache retention semantics.

@anirudhmarc
anirudhmarc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from cda7be8 to 16194d4 Compare April 22, 2026 16:04

@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: 16194d4bfc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@vincentkoc vincentkoc self-assigned this Apr 22, 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: b786f1478b

ℹ️ 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 on lines +395 to +397
onPayload: async (payload: unknown, payloadModel: unknown) => {
const eligible = await resolveAppProfileCacheEligible(modelId, region);
if (eligible && payload && typeof payload === "object") {

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 Skip profile lookup when cacheRetention is none

When an opaque application inference profile is used with cacheRetention: "none", this async onPayload path still calls resolveAppProfileCacheEligible(...) on every request before deciding whether to inject cache points. Because injection is disabled anyway for none, these control-plane lookups are unnecessary and can add avoidable latency (and repeated failed calls when GetInferenceProfile is throttled/unauthorized, since catch-path failures are intentionally not cached). Short-circuiting before the lookup when retention is none would preserve the new behavior without the extra request cost.

Useful? React with 👍 / 👎.

Your Name and others added 2 commits April 22, 2026 12:06
…ofile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925
@vincentkoc
vincentkoc force-pushed the fix/bedrock-app-inference-profile-prompt-caching branch from b786f14 to ba85b03 Compare April 22, 2026 19:13
@vincentkoc
vincentkoc merged commit 24266af into openclaw:main Apr 22, 2026
77 of 79 checks passed
medikoo pushed a commit to medikoo/openclaw that referenced this pull request Apr 24, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
ogt-redknie pushed a commit to ogt-redknie/OPENX that referenced this pull request May 2, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
zhonghe0615 pushed a commit to zhonghe0615/openclaw that referenced this pull request May 7, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
globalcaos pushed a commit to globalcaos/tinkerclaw that referenced this pull request May 13, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
vixco pushed a commit to vixco/openclaw that referenced this pull request Aug 16, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Heetisk pushed a commit to Heetisk/openclaw that referenced this pull request Sep 28, 2026
…ofile ARNs (openclaw#69953)

* fix(amazon-bedrock): inject cache points for application inference profile ARNs

pi-ai's internal supportsPromptCaching checks model.id for specific Claude
model name patterns (e.g. "-4-", "claude-3-7-sonnet"), which fails for
application inference profile ARNs that don't contain the model name.
This causes prompt caching to silently break for Bedrock users with
application inference profiles.

Work around this by detecting when pi-ai would miss cache point injection
(via piAiWouldInjectCachePoints mirror) and patching the Converse API
payload via onPayload to add cachePoint blocks to the system prompt and
last user message — matching the same format pi-ai uses natively.

The fix is safe:
- Checks for existing cache points to avoid double-injection
- Respects cacheRetention: "none"
- Defaults to "short" retention (matching pi-ai default)
- Becomes a no-op once upstream pi-mono#2925 is fixed

Fixes openclaw#19279
Upstream: earendil-works/pi#2925

* fix(amazon-bedrock): tighten app-profile cache injection

---------

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable prompt caching for non-Anthropic providers using anthropic-messages API

3 participants