From 7bc3804e1b3e71e692a69716d0087682ff02c7ac Mon Sep 17 00:00:00 2001 From: ualtinok <94532+ualtinok@users.noreply.github.com> Date: Sat, 24 Oct 2026 15:24:43 +0200 Subject: [PATCH] release: v2.2.7 --- .cortexkit/release-notes/2.2.7.md | 11 +++++++++++ CHANGELOG.md | 8 ++++---- bun.lock | 10 +++++----- packages/core/package.json | 2 +- packages/opencode/package.json | 4 ++-- packages/pi/package.json | 4 ++-- 6 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 .cortexkit/release-notes/2.2.7.md diff --git a/.cortexkit/release-notes/2.2.7.md b/.cortexkit/release-notes/2.2.7.md new file mode 100644 index 00000000..fb2e93b8 --- /dev/null +++ b/.cortexkit/release-notes/2.2.7.md @@ -0,0 +1,11 @@ +## What's fixed + +- **OpenCode 2 menu sign-in works.** Finishing an OAuth sign-in from `/claude` → Accounts failed with "Action failed" for everyone on OpenCode 2. It now stores the account. The Accounts menu explains how to connect OpenCode when the pool has no main account yet. Thanks to @colinmollenhour for the fix. (#464, #466) +- **A failed relay fallback is no longer sent twice.** When a relay request fell back to a direct send and that direct send failed after going out, the plugin could send the same request again. It now sends the direct fallback at most once, and OpenCode or Pi retries as usual. +- **Vault setup grants the approved name.** When the vault operator approved an installation under a different name than the default (for example, a second OpenCode installation), setup still granted the default name, so that installation never got access to the vault's accounts. Setup and the printed `ck auth grant` command now use the approved name. (#471) + +## Changed + +- **Sticky-balanced sessions wait for any short reset.** On OpenCode 1 and Pi, a session now waits on its account when whichever quota window blocks it resets within 15 minutes, including the 7-day and model limits, instead of moving and rebuilding its prompt cache. Before, only the 5-hour window held. OpenCode 2 doesn't hold yet. + +To upgrade, quit OpenCode and Pi and run `npx @cortexkit/opencode-anthropic-auth setup`, or change the version in your OpenCode config. diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e8b7ed4..669c765f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,12 @@ 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.2.7 -- In sticky-balanced mode on OpenCode 1 and Pi, a session now waits on its account when whichever quota window blocks it resets within 15 minutes, including 7-day and model limits, instead of moving and rebuilding its cache. OpenCode 2 does not hold yet. - -- Addresses #471 (vault grant principal) - OpenCode 2: finishing an OAuth sign-in from `/claude` → Accounts no longer fails with "Action failed"; the Accounts menu explains how to connect OpenCode when no main account exists. Thanks to @colinmollenhour. Addresses #464. +- When a relay request fell back to a direct send and that direct send failed after going out, the plugin could send the same request a second time. The direct fallback now runs at most once per request, and its failure goes to OpenCode or Pi, which retry as usual. +- Vault setup now grants read access to the name the vault approved for this installation, not always the default name, and the printed `ck auth grant` command uses that name too. Addresses #471. +- In sticky-balanced mode on OpenCode 1 and Pi, a session now waits on its account when whichever quota window blocks it resets within 15 minutes, including 7-day and model limits, instead of moving and rebuilding its cache. OpenCode 2 does not hold yet. ## 2.2.6 diff --git a/bun.lock b/bun.lock index b82dd054..1f8e4530 100644 --- a/bun.lock +++ b/bun.lock @@ -25,7 +25,7 @@ }, "packages/core": { "name": "@cortexkit/anthropic-auth-core", - "version": "2.2.6", + "version": "2.2.7", "dependencies": { "@cortexkit/claustrum-client": "0.12.0", "@cortexkit/private-files": "0.2.1", @@ -46,13 +46,13 @@ }, "packages/opencode": { "name": "@cortexkit/opencode-anthropic-auth", - "version": "2.2.6", + "version": "2.2.7", "bin": { "opencode-anthropic-auth": "dist/cli.js", }, "dependencies": { "@clack/prompts": "^1.6.0", - "@cortexkit/anthropic-auth-core": "2.2.6", + "@cortexkit/anthropic-auth-core": "2.2.7", "@cortexkit/claustrum-client": "0.12.0", "@cortexkit/private-files": "0.2.1", "@cortexkit/subc-client": "^0.22.0", @@ -76,9 +76,9 @@ }, "packages/pi": { "name": "@cortexkit/pi-anthropic-auth", - "version": "2.2.6", + "version": "2.2.7", "dependencies": { - "@cortexkit/anthropic-auth-core": "2.2.6", + "@cortexkit/anthropic-auth-core": "2.2.7", }, "peerDependencies": { "@earendil-works/pi-ai": ">=0.86.1 <2", diff --git a/packages/core/package.json b/packages/core/package.json index 6a877293..828a5b29 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@cortexkit/anthropic-auth-core", - "version": "2.2.6", + "version": "2.2.7", "type": "module", "repository": { "type": "git", diff --git a/packages/opencode/package.json b/packages/opencode/package.json index aec01b6e..fb4f5b11 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -1,6 +1,6 @@ { "name": "@cortexkit/opencode-anthropic-auth", - "version": "2.2.6", + "version": "2.2.7", "type": "module", "repository": { "type": "git", @@ -77,7 +77,7 @@ }, "dependencies": { "@clack/prompts": "^1.6.0", - "@cortexkit/anthropic-auth-core": "2.2.6", + "@cortexkit/anthropic-auth-core": "2.2.7", "@cortexkit/claustrum-client": "0.12.0", "@cortexkit/private-files": "0.2.1", "@cortexkit/subc-client": "^0.22.0", diff --git a/packages/pi/package.json b/packages/pi/package.json index e5b7ca04..6a69f08d 100644 --- a/packages/pi/package.json +++ b/packages/pi/package.json @@ -1,6 +1,6 @@ { "name": "@cortexkit/pi-anthropic-auth", - "version": "2.2.6", + "version": "2.2.7", "type": "module", "repository": { "type": "git", @@ -36,7 +36,7 @@ "prepublishOnly": "bun run build" }, "dependencies": { - "@cortexkit/anthropic-auth-core": "2.2.6" + "@cortexkit/anthropic-auth-core": "2.2.7" }, "peerDependencies": { "@earendil-works/pi-ai": ">=0.86.1 <2",