Skip to content

fix: x402 fetch falls back to local signer config#22

Merged
PancheI merged 2 commits intomainfrom
fix/x402-fetch-read-local-signer-config
Mar 27, 2026
Merged

fix: x402 fetch falls back to local signer config#22
PancheI merged 2 commits intomainfrom
fix/x402-fetch-read-local-signer-config

Conversation

@PancheI
Copy link
Copy Markdown
Contributor

@PancheI PancheI commented Mar 27, 2026

Summary

  • agenta sub x402 fetch required AGENTA_API_SECRET env var even when the secret was already saved in ~/.agenta/signers/ from agenta sub create
  • SignerManager.getConfig() now checks env vars first (MCP/CI), then falls back to local signer config (CLI)
  • Matches how every other sub command already works

Test plan

  • All existing tests pass (29 passed)
  • agenta sub x402 fetch <url> works without env vars (reads from ~/.agenta/signers/)
  • MCP tools still work with env vars set in MCP host config

PancheI added 2 commits March 27, 2026 18:14
SignerManager only read from env vars (AGENTA_API_SECRET, AGENTA_API_KEY),
which meant `agenta sub x402 fetch` failed unless env vars were set —
even though the secret was already saved in ~/.agenta/signers/.

Now: env vars take priority (for MCP/CI), local signer config is the
fallback (for CLI users). Matches how every other sub command works.
@PancheI PancheI merged commit 1c3b97c into main Mar 27, 2026
1 check passed
@PancheI PancheI deleted the fix/x402-fetch-read-local-signer-config branch March 27, 2026 19:50
@github-actions github-actions bot mentioned this pull request Mar 27, 2026
PancheI pushed a commit that referenced this pull request Mar 27, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @agentaos/chains@1.1.1

### Patch Changes

-   Updated dependencies \[]:
    -   @agentaos/core@1.1.1

## @agentaos/engine@1.1.1

### Patch Changes

-   Updated dependencies \[]:
    -   @agentaos/core@1.1.1
    -   @agentaos/crypto@1.1.1

## @agentaos/sdk@1.1.1

### Patch Changes

-   Updated dependencies \[]:
    -   @agentaos/core@1.1.1
    -   @agentaos/engine@1.1.1

## agentaos@1.1.1

### Patch Changes

- [#22](#22)
[`1c3b97c`](1c3b97c)
Thanks [@PancheI](https://github.com/PancheI)! - x402 fetch falls back
to local signer config

- `agenta sub x402 fetch` no longer requires `AGENTA_API_SECRET` env var
when the secret is already saved locally from `agenta sub create`
- `SignerManager` checks env vars first (MCP/CI), then falls back to
`~/.agenta/signers/` config (CLI)

-   Updated dependencies \[]:
    -   @agentaos/core@1.1.1
    -   @agentaos/engine@1.1.1
    -   @agentaos/sdk@1.1.1

## @agentaos/core@1.1.1



## @agentaos/crypto@1.1.1

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant