GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(server): resume deferred Claude scans in place each round · pingdotgg/t3code@5474f72

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/project
    • AgentSessionScanner.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/project/AgentSessionScanner.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/project/AgentSessionScanner.ts
+5-11Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,19 +1822,13 @@ export const make = Effect.gen(function* () {
18221822
});
18231823

18241824
// Scan one more slice per deferred transcript each round so large files share the remaining budget.
1825-
let pending = prefixes.flatMap((result, index) =>
1826-
result !== null && typeof result === "object" ? [index] : [],
1827-
);
1828-
while (pending.length > 0) {
1829-
const nextRound: Array<number> = [];
1830-
for (const index of pending) {
1831-
const result = prefixes[index];
1825+
for (let resumed = true; resumed;) {
1826+
resumed = false;
1827+
for (const [index, result] of prefixes.entries()) {
18321828
if (result === null || typeof result !== "object") continue;
1833-
const next = yield* result.resume;
1834-
prefixes[index] = next;
1835-
if (next !== null && typeof next === "object") nextRound.push(index);
1829+
prefixes[index] = yield* result.resume;
1830+
resumed = true;
18361831
}
1837-
pending = nextRound;
18381832
}
18391833

18401834
for (const [index, transcript] of transcripts.entries()) {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.