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(core): encapsulate physical attempt execution by kitlangton · Pull Request #45294 · anomalyco/opencode

refactor(core): encapsulate physical attempt execution #45294

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.

Sign up for GitHub

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

Merged
kitlangton merged 5 commits into v2 from step-execution
Aug 26, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

refactor(core): encapsulate physical attempt execution #45294

Changes from 1 commit
Commits
Show all changes
5 commits
Select commit Hold shift + click to select a range
8e049bc
refactor(core): encapsulate physical attempt execution
kitlangton Aug 26, 2026
572b66c
refactor(core): simplify session runner outcomes
kitlangton Aug 26, 2026
1d3c646
Merge branch 'v2' into step-execution
kitlangton Aug 26, 2026
fde82db
fix(tui): preserve multi-click selection during auto-copy
kitlangton Aug 26, 2026
128868c
docs(core): clarify attempt settlement comments
kitlangton Aug 26, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
docs(core): clarify attempt settlement comments
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@kitlangton
kitlangton committed Aug 26, 2026
commit 128868c8b024cfa360822088e8224ca650469bd9

There are no files selected for viewing

4 changes: 2 additions & 2 deletions 4 packages/core/src/session/runner/step.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const make = Effect.gen(function* () {
// Provider and tool fibers retain per-source order without a shared writer queue.
// A local execution starts only after its Tool.Called publication completes.
let overflowFailure: ProviderErrorEvent | undefined
// Read to the end, not just the finish event, so the next request can reuse this response.
const providerStream = llm.stream(input.prepared.request, input.prepared.options).pipe(
Stream.runForEach((event) =>
Effect.gen(function* () {
Expand Down Expand Up @@ -121,8 +122,7 @@ export const make = Effect.gen(function* () {
Effect.ensuring(publisher.flush()),
)

// Consume through natural EOF: the provider's completion hook commits transport checkpoints.
// Only streaming, tool joins, and overflow compaction are interruptible during closeout.
// Keep the final tool and Step events uninterruptible, even when the work itself is cancelled.
return yield* Effect.uninterruptibleMask((restore) =>
Effect.gen(function* () {
const stream = yield* restore(providerStream).pipe(Effect.exit)
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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.
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.