feat(conversations): select local execution runtime - #948
Closed
Neonforge98 wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
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.
Problem
A member starting a local continuation can currently use only the native Agent runtime, even when a managed External CLI is installed. Durable Work Item redelivery also carries a prepared runner id but the frontend does not fence recovery to that exact local Session.
Solution
Separate assigned Agent identity from the local execution runtime in the shared setup dialog. Conversation runners may choose Native Agent or an installed managed External CLI that supports GUI/headless execution; pure TUI clients are excluded. Both choices still use the same SessionService create/send/wait/push path, persistent continuation record, cursor, overlay, and cleanup logic. Persist the CLI platform with the continuation and require a redelivered prepared run to recover the exact same runner and compatible Agent fingerprint. Work Item assigned Agents are locked in the dialog. Team Chat remains ordinary human chat.
Potential risks
External CLI execution depends on the existing managed GUI transport and local CLI authentication; a removed CLI causes remembered setup to be cleared and re-prompted through the existing fallback. If the exact prepared local Session or its continuation record is missing, the durable run stays retryable instead of silently switching runner identity. Replay-copy forks remain native-only and reject a programmatic CLI selection.
Validation
Stacked on #947.