Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/__tests__/loop.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ describe("Agent Loop", () => {
expect(enforcementTurn).toBeUndefined();
});

it("discover_agents turns are retained in context (not classified as idle)", async () => {
it("discover_agents turns are retained in context (not classified as idle)", { timeout: 180_000 }, async () => {
// A turn with only discover_agents should NOT trigger maintenance loop detection
// because discover_agents is no longer in IDLE_ONLY_TOOLS
function discoverResponse(uid: string): ReturnType<typeof toolCallResponse> {
Expand Down
4 changes: 2 additions & 2 deletions src/registry/erc8004.ts
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ export async function getRegisteredAgentsByEvents(
// Paginate backward in ≤10K-block chunks (newest-first).
// Base public RPC enforces a 10,000-block limit on eth_getLogs.
const MAX_BLOCK_RANGE = 10_000n;
const MAX_CONSECUTIVE_FAILURES = 2;
const PER_CHUNK_TIMEOUT_MS = 3_000;
const MAX_CONSECUTIVE_FAILURES = 5;
const PER_CHUNK_TIMEOUT_MS = 8_000;
const allLogs: { args: { tokenId?: bigint; to?: string; from?: string } }[] = [];
let scanTo = currentBlock;
let consecutiveFailures = 0;
Expand Down
Loading