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
11 changes: 11 additions & 0 deletions .cortexkit/release-notes/2.2.7.md
Original file line number Diff line number Diff line change
@@ -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.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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.2.6",
"version": "2.2.7",
"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.2.6",
"version": "2.2.7",
"type": "module",
"repository": {
"type": "git",
Expand Down Expand Up @@ -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",
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.2.6",
"version": "2.2.7",
"type": "module",
"repository": {
"type": "git",
Expand Down Expand Up @@ -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",
Expand Down
Loading