Repository navigation
Draft: Session.open with layer-native EventLog composition - #61
Merged
Merged
Conversation
|
HumanLayer Agent seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
9 tasks
K-Mistele
reviewed
Oct 9, 2026
| } | ||
| }).pipe(Effect.orDie) | ||
| }).pipe(Effect.provide([DurableObjectEventLog.layer, Keepalive.layer, SessionExpiry.layer, Workspace.layer])), | ||
| }).pipe(Effect.provide([Keepalive.layer, SessionExpiry.layer, Workspace.layer])), |
Contributor
There was a problem hiding this comment.
event log? we should be using the DO event log shouldn't web - where did it go @humanlayer-channels-app?
Author
|
Yes—we still use the Durable Object’s SQLite event log. It moved from the outer
This keeps SQLite acquisition out of Alchemy’s planning phase and ensures the session and RPCs share one backend. It does not fall back to an in-memory log. |
K-Mistele
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the API agreed in #60:
Session.open({ agent })initializes an empty log or adopts/resumes an existing session, followed bysession.send(...).startSession/resumeSessionand the event-log descriptor APIs as a documented breaking change; migrated launchers, examples, and tests.Layer.orDieacquisition policy. Host-built backends stay alive in the host/session scope and are not rebuilt by Fold.Verification
bun run typecheckpassed.bun run lintpassed (oxlint + typed lint).Review notes
Intended as a draft for review. One supplied backend is one session and should have at most one active handle; memoization intentionally shares that service with the session's host consumers. SQLite integration is typechecked and API tests use the layer-native session API; no deployed Cloudflare smoke test was run.
Closes #60