fix(sub-harness): harden session turns - #71
Open
LukasParke wants to merge 1 commit into
Open
Conversation
Port fork/port/openrouter-fixes commit 0fd1b9e onto current main, including failed-turn handling, idle cancellation, reasoning retention, and deduplicated session startup. Signed-off-by: Luke Parke <5702154+LukasParke@users.noreply.github.com>
|
@LukasParke is attempting to deploy a commit to the Matt Apperson's projects Team on Vercel. A member of the Team first needs to authorize it. |
Collaborator
Author
|
Agent: The code CI, DCO, and structural gate passed. Remaining red checks are external configuration: |
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.
What
0disables)Why
External coding-agent sessions can wedge, report a failed turn as a normal result, lose reasoning from the conversation record, or race duplicate starts on the same reuse key. Those failure modes make orchestration unreliable and can leak stale vendor sessions.
This semantically ports
fork/port/openrouter-fixescommit0fd1b9efonto current main after #68. It preserves the current sub-harness package boundary: core imports only the contract from@noetic-tools/types.Test plan
bun test— 2,060 pass, 6 integration/benchmark skipsbun run lintbun run check:exportssentrux check .sentrux gate .Behavior changes
finishReason: 'error'now raisesstep_failedafter recording returned items and usage.settings.extra.idleTimeoutMsconfigures the turn watchdog; non-positive values disable it.