-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Scope git checkout effects and update Effect/Node dependency set #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,11 @@ import { | |
| normalizeAttachmentRelativePath, | ||
| resolveAttachmentRelativePath, | ||
| } from "./attachmentPaths"; | ||
| import { createAttachmentId, resolveAttachmentPath, resolveAttachmentPathById } from "./attachmentStore.ts"; | ||
| import { | ||
| createAttachmentId, | ||
| resolveAttachmentPath, | ||
| resolveAttachmentPathById, | ||
| } from "./attachmentStore.ts"; | ||
| import { parseBase64DataUrl } from "./imageMime.ts"; | ||
|
|
||
| /** | ||
|
|
@@ -685,7 +689,7 @@ export const createServer = Effect.fn(function* (): Effect.fn.Return< | |
|
|
||
| case WS_METHODS.gitCheckout: { | ||
| const body = stripRequestTag(request.body); | ||
| return yield* git.checkoutBranch(body); | ||
| return yield* Effect.scoped(git.checkoutBranch(body)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Scoped checkout immediately interrupts background upstream refreshHigh Severity Wrapping Additional Locations (1) |
||
| } | ||
|
|
||
| case WS_METHODS.gitInit: { | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔴 Critical
Layers/CodexAdapter.ts:492yield* toRequestError(...)yields the error object directly, but the rest of this file usesEffect.fail(error)to fail Effects. Consider wrapping withEffect.fail()for consistency and to avoid a potentialTypeErrorif the error isn't iterable.🚀 Reply "fix it for me" or copy this AI Prompt for your agent: