Conversation
kvnloo
requested review from
jpr5,
marthakelly,
mme,
ranst91 and
tylerslaton
as code owners
September 23, 2026 23:44
Contributor
|
Important Review skippedIgnore keyword(s) in the title. ⛔ Ignored keywords (4)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch has not been deployed
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 changed
The reskinnable-demo's harness console now anchors to the first
taskcall in the most recent user-turn segment that contains a delegation, rather than the firsttaskin the entire thread.That preserves the original nested-delegation rule — only the parent run gets one console — while fixing repeated delegated runs in the same conversation. A later run now surfaces progress beside the turn that started it instead of updating a console far back in history.
The selection rule lives in a pure helper so restored-thread behavior is testable without the live event stream.
Verification
Added regressions for:
taskcalls.The selected anchor remains the first parent delegation of the latest delegated turn.
No local repository test run was available in this execution environment; CI is the executable verification.
UX invariant
A stable anchor is useful, but “stable for the entire thread” is too stable once the same workflow can run twice. This keeps progress spatially coupled to the user's current request without relying on transient event timing.
Integration limits
Only the reskinnable-demo's harness-console anchor selection changes. The live event fold, persisted-event seed, tool execution, and AG-UI protocol are unchanged.
AI-use note: I used an AI assistant to trace the console anchoring path across restored messages and live subagent events, isolate the selector, draft the regression, and review the final diff before opening this PR.