Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .cortexkit/release-notes/2.1.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## What's fixed

- **Requests no longer fail on a busy settings file.** Under heavy load a request could fail with `Timed out acquiring native-relay lock for …/anthropic-auth-vault-settings.json`. Every request read the relay settings under the same lock their writer uses, and a lock that couldn't be taken in time failed the request. Requests now read the relay settings without a lock. A relay change stamps the settings and the relay token together, and a request that reads a mismatched pair during a change refuses locally instead of sending the token anywhere.
- **Session pins never hold up a request.** Choosing the account for a session waited up to five seconds for the session-pin file and could fail without it. The account is now chosen from the saved pins without a lock, and the pin is saved in the background. Resetting a session still reaches the file.

Checked on OpenCode 1, OpenCode 2 and Pi: a request with a valid login takes no lock before it is sent. Locks that protect credential refreshes are unchanged.

To upgrade, quit OpenCode and run `npx @cortexkit/opencode-anthropic-auth@2.1.2 setup`, or change the version in your OpenCode config.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This repo is a CortexKit-maintained Anthropic auth monorepo for OpenCode and Pi. The OpenCode package is a fork of the original `@ex-machina/opencode-anthropic-auth` plugin, so older entries below the initial CortexKit release are inherited from upstream package history.

## Unreleased
## 2.1.2

- Requests no longer wait on relay or session-pin bookkeeping locks; relay settings and tokens are checked together before sending.

Expand Down
10 changes: 5 additions & 5 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cortexkit/anthropic-auth-core",
"version": "2.1.1",
"version": "2.1.2",
"type": "module",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cortexkit/opencode-anthropic-auth",
"version": "2.1.1",
"version": "2.1.2",
"type": "module",
"repository": {
"type": "git",
Expand Down Expand Up @@ -77,7 +77,7 @@
},
"dependencies": {
"@clack/prompts": "^1.6.0",
"@cortexkit/anthropic-auth-core": "2.1.1",
"@cortexkit/anthropic-auth-core": "2.1.2",
"@cortexkit/claustrum-client": "0.12.0",
"@cortexkit/private-files": "0.2.1",
"@cortexkit/subc-client": "^0.22.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/pi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cortexkit/pi-anthropic-auth",
"version": "2.1.1",
"version": "2.1.2",
"type": "module",
"repository": {
"type": "git",
Expand Down Expand Up @@ -36,7 +36,7 @@
"prepublishOnly": "bun run build"
},
"dependencies": {
"@cortexkit/anthropic-auth-core": "2.1.1"
"@cortexkit/anthropic-auth-core": "2.1.2"
},
"peerDependencies": {
"@earendil-works/pi-ai": ">=0.86.1 <2",
Expand Down
Loading