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 — chore(lint): enforce raceFirstWithSleepToTimeout · pingdotgg/t3code@be206c5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/orchestration-v2/Adapters
    • ClaudeTaskOutputTail.ts
  • tsconfig.base.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/orchestration-v2/Adapters/ClaudeTaskOutputTail.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/Adapters/ClaudeTaskOutputTail.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ export const tailClaudeTaskOutput = Effect.fn("ClaudeTaskOutputTail.tail")(funct
5656
readonly onChunk: (chunk: string) => Effect.Effect<void>;
5757
}) {
5858
const fileSystem = yield* FileSystem.FileSystem;
59-
const pause = Effect.raceFirst(
60-
Effect.sleep(CLAUDE_TASK_OUTPUT_POLL_MS).pipe(Effect.as(false)),
61-
Deferred.await(input.stop).pipe(Effect.as(true)),
59+
const pause = Deferred.await(input.stop).pipe(
60+
Effect.as(true),
61+
Effect.timeoutOrElse({
62+
duration: CLAUDE_TASK_OUTPUT_POLL_MS,
63+
orElse: () => Effect.succeed(false),
64+
}),
6265
);
6366
let file = Option.none<string>();
6467
for (let attempt = 0; Option.isNone(file); attempt += 1) {
Collapse file

‎tsconfig.base.json‎

Copy file name to clipboardExpand all lines: tsconfig.base.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"namespaceImportPackages": ["@effect/platform-node", "effect"],
2525
"effectFn": ["span", "inferred-span", "suggested-span"],
2626
"diagnosticSeverity": {
27+
"raceFirstWithSleepToTimeout": "error",
2728
"redundantMapError": "error",
2829
"optionMatchToFromOption": "error",
2930
"catchToIgnore": "error",

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.