Repository navigation
feat: continue project and global assistant sessions - #1
Merged
Merged
Conversation
- Offer Continue in another agent on the Assistant panel's session menus, greyed out with a short reason when a session can't be continued - Continue a project assistant session as a new assistant session in the same project, granting search to that project's assistant once a start succeeds - Continue the global assistant from a hand-off alone: Daintree asks before replacing the coordinating session, and nothing is indexed - Keep assistant hand-offs within Daintree's length and character rules - Repack the toolchain from Daintree develop and require Daintree 0.52.0; version 0.2.0
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.
Continue in another agent… now works on Daintree's assistants as well as worker panes, which is the acceptance test of daintreehq/daintree#18136. It uses the core pieces from daintreehq/daintree#18138-#18141 and daintreehq/daintree#18150, so it needs Daintree 0.52.0.
What changes
help.newSessionWithAgent, with the hand-off as its first turn. The old session stays open.consumer: "assistant"in the same project). The grant is held in memory while a start is in flight, so the session can search from its first turn. It's persisted only once a start succeeds, so a failed start never withdraws one that worked. Without the Assistant's access to plugin tools, the hand-off tells it to read the session file instead.help.replaceGlobalAssistantis asked with the clicked session'sterminalId. Daintree's own confirmation shows the hand-off and which agent stops, and only the coordinating session can be replaced (fix(actions): replace the global assistant only from its own hand-off daintree#18150).availability. When the session file isn't known yet, the agent isn't Codex or Claude Code, the session hasn't started, or it's a scratch workspace's assistant, the item stays visible and greyed out with a short reason.develop(4430b2add0), since npm still serves 0.1.0.engines.daintreeis>=0.52.0, and the version is 0.2.0.Releasing
Don't tag
v0.2.0until Daintree 0.52.0 is out: on 0.51.0 the manifest'sassistantlocation andavailabilityfields don't exist. After that release, repacktoolchain/from the tag astoolchain/README.mdsays.Testing
npm run check: typecheck, 98 tests (up from 73), manifest validation, all passing.npm run packagebuilds the.dntr, anddist/index.mjsloads withactivate.lanes-fullwith Retry, and two overlapping starts where the failure comes after a success