Skip to content

bug: Breaks AWS request signing. #1

@bulebuk

Description

@bulebuk

OpenCode version

1.2.0

Plugin path

~/.config/opencode/plugins/opencode-context-cache.mjs

Expected behavior

Successful use of AWS Bedrock for model access.

Actual behavior

Model connection fails:

The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been
'POST
/model/us.anthropic.claude-opus-4-6-v1/converse-stream
conversation_id:

Reproduction steps

  1. Configure vanilla opencode with Bedrock.
  2. Test a bedrock model.
  3. Install context cache plugin.
  4. Test bedrock model again.
  5. Above error.

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions