Skip to content

Settle lost hosted agent streams - #491

Merged
max-sixty merged 3 commits into
mainfrom
codex/settle-lost-website-turns
Sep 9, 2026
Merged

max-sixty merged 3 commits into
mainfrom
codex/settle-lost-website-turns

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Once the website accepts a reader message, a failure on the App Server connection that follows the turn currently clears transient activity and exits. The durable pickup remains, so the thread can stay unanswered indefinitely.

Route that failure through the existing terminal settlement path. It closes the matching Leaf turn, logs the stream error, and posts the ordinary generation-failure reply only for still-pending input. Successful turns retain the completed assistant-message behavior from #485.

Validation: uv run pytest tests (966 passed), plus changed-file pre-commit checks.

This was written by Codex on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rewrap in worker/README.md dropped gives each accepted input the turn from the settlement sentence, so it now reads "the container closes that exact Leaf turn and left unanswered its final assistant message" — the clause naming what happens to each accepted input is gone, and the paragraph no longer states the contract the rest of this change extends. Inline suggestion restores it and rewraps the paragraph.

Comment thread worker/README.md Resolved
@max-sixty
max-sixty merged commit 81b4310 into main Sep 9, 2026
10 checks passed
@max-sixty
max-sixty deleted the codex/settle-lost-website-turns branch September 9, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants