Compare commits
2 Commits
3627cb19c6
...
0a7c24da4e
| Author | SHA1 | Date | |
|---|---|---|---|
|
0a7c24da4e
|
|||
|
27096b17be
|
41
flake.lock
generated
41
flake.lock
generated
@@ -404,21 +404,19 @@
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"rust-overlay": "rust-overlay",
|
||||
"systems": "systems_3",
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1775663139,
|
||||
"narHash": "sha256-mFmUbE2OLNl0YA1RACprVObeBjK8Qv9aV/V6fmn3mUU=",
|
||||
"owner": "titaniumtown",
|
||||
"lastModified": 1775686143,
|
||||
"narHash": "sha256-i1hPhsXzqxDm3AozQaBWjjEyeY0WjEetLxJQTKO3cmM=",
|
||||
"owner": "numtide",
|
||||
"repo": "llm-agents.nix",
|
||||
"rev": "a507240bd404b28dbfc7e8d98bdf6c265e2ad51a",
|
||||
"rev": "64bb5ca22da91a804fe559dbc04a7b3fe6711555",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "titaniumtown",
|
||||
"ref": "pr/omp-build-from-source",
|
||||
"owner": "numtide",
|
||||
"repo": "llm-agents.nix",
|
||||
"type": "github"
|
||||
}
|
||||
@@ -662,32 +660,11 @@
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"noctalia": "noctalia",
|
||||
"rust-overlay": "rust-overlay_2",
|
||||
"rust-overlay": "rust-overlay",
|
||||
"zen-browser": "zen-browser"
|
||||
}
|
||||
},
|
||||
"rust-overlay": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"llm-agents",
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1775617983,
|
||||
"narHash": "sha256-2NWGA/I4j/qlx6qbg86QvJiK1/GyH9gnf0hFiARWVwE=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "d98b91b1feae7ef07fa2ccb3aa3f83f11abfae54",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"rust-overlay_2": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
@@ -790,11 +767,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1775125835,
|
||||
"narHash": "sha256-2qYcPgzFhnQWchHo0SlqLHrXpux5i6ay6UHA+v2iH4U=",
|
||||
"lastModified": 1775636079,
|
||||
"narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "75925962939880974e3ab417879daffcba36c4a3",
|
||||
"rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
};
|
||||
|
||||
llm-agents = {
|
||||
url = "github:titaniumtown/llm-agents.nix/pr/omp-build-from-source";
|
||||
url = "github:numtide/llm-agents.nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
commit 31d537735d3c5e25a2b620d63ebbfea4cf84f57e
|
||||
commit 02b80dd74e2f962fffc9b0076bb7966eea4e45ff
|
||||
Author: Simon Gardling <titaniumtown@proton.me>
|
||||
Date: Wed Apr 8 13:05:09 2026 -0400
|
||||
|
||||
@@ -20,10 +20,10 @@ index 3f50b7bd4..248dacbff 100644
|
||||
|
||||
### Fixed
|
||||
diff --git a/packages/ai/src/auth-storage.ts b/packages/ai/src/auth-storage.ts
|
||||
index 9fdb4473b..fac936dad 100644
|
||||
index 9fdb4473b..fc81a6f3b 100644
|
||||
--- a/packages/ai/src/auth-storage.ts
|
||||
+++ b/packages/ai/src/auth-storage.ts
|
||||
@@ -1865,7 +1865,30 @@ export class AuthStorage {
|
||||
@@ -1865,7 +1865,35 @@ export class AuthStorage {
|
||||
});
|
||||
|
||||
if (isDefinitiveFailure) {
|
||||
@@ -44,6 +44,11 @@ index 9fdb4473b..fac936dad 100644
|
||||
+ ) {
|
||||
+ // DB has a newer refresh token — another instance refreshed.
|
||||
+ // Update in-memory state and retry with the fresh credential.
|
||||
+ logger.warn("Concurrent refresh detected, syncing from DB and retrying", {
|
||||
+ provider,
|
||||
+ index: selection.index,
|
||||
+ rowId: entry.id,
|
||||
+ });
|
||||
+ const updated = [...entries];
|
||||
+ updated[selection.index] = { id: entry.id, credential: dbEntry.credential };
|
||||
+ this.#setStoredCredentials(provider, updated);
|
||||
|
||||
Reference in New Issue
Block a user