Repository navigation
feat(harness): stream aikit events through loop - #20
Merged
Merged
Conversation
Publishing an event assigns the aggregate's next sequence, runs its projectors, and writes the row in one transaction, so a projection that rejects an event rolls it back along with its side effects. Session.prompt records a prompt in session_input durably and idempotently; promoting it appends the user entry in the same commit. The inbox and the entry tree both take their positions from the log, so they share one sequence space.
Not durable store and not relevant here
Add an Effect-native LLM stream boundary with cancellation and terminal draining. Project terminal responses into durable session history while keeping deltas live. Verify real OpenAI thinking persistence, interruption, and recovery flows.
sanchitrk
marked this pull request as ready for review
August 16, 2026 13:41
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a19e52fabb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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
gpt-5.5configurationImpact
Provider requests now stop when their owning Effect is interrupted, while the terminal stream tail still commits partial output. Finalized thinking is persisted with the assistant message; streaming deltas remain non-durable. Provider-only turns no longer require sandbox services.
Validation
vp run typecheckvp check --no-fmt— 0 errors; existing diagnostics remain warningsvp test test/runner.llm.live.test.ts --reporter verbose— 2 passed with real OpenAIgpt-5.5requestsvp test test/runner.cycle.live.test.ts --reporter verbose— full input, loop, interruption, durable projection, and recovery cycle passedThe full formatting check still reports existing Harness formatting issues outside the files changed by the final implementation pass.