Repository navigation
fix(session): missing ancestor session fails closed instead of dying - #640
Merged
Merged
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (6 files)
Previous Review Summary (commit aa90b64)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit aa90b64)Status: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by free · Input: 77.3K · Output: 1.6K · Cached: 165.9K |
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.
Issue for this PR
Refs #636
Type of change
What does this PR do?
WorkFlow.ownerOfwalked parent sessions withsessions.getand a missing ancestor surfaced as a defect (Effect.orDie) insideToolRegistry.tools. It now resolves throughownerOrNone: a missing ancestor means the workflow root is unknown, soroutestaysuncertain(inspection-only, nothing persisted),clarifydoes not raise a question, and the task tool refuses to dispatch a child with a clear error. A parent cycle is still a defect.How did you verify your code works?
New regression tests in
test/session/work-flow.test.tsandtest/tool/registry.test.ts. Withsrcreverted both new tests fail; with the fix they pass.test/tool/task.test.ts92 pass. Typecheck is left to CI (local tsc not runnable).Screenshots / recordings
N/A
Checklist