feat(cli): add Runtime Host-backed TUI sessions - #2308
Merged
Conversation
M4n5ter
force-pushed
the
feat/cli-runtime-host-tui
branch
from
August 6, 2026 12:25
5e65585 to
49bc4f2
Compare
M4n5ter
marked this pull request as ready for review
August 6, 2026 12:32
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.
English
Summary
Add the first Runtime Host-backed CLI adapter slice: a shared asynchronous Session facade and a TUI implementation that uses Host-owned Session state, execution, continuity, interactions, queues, and Runtime Resources.
This is part of #2010 Stage 4. The existing embedded CLI remains the default owner; the Host-backed candidate is selected explicitly with
MAKA_CLI_RUNTIME_OWNER=runtime-host. The two owners are never active for the same CLI process, and the Host path does not fall back to embedded state.What changed
MakaSessionDriverproduct boundary;User impact
The candidate TUI can attach to the same Runtime Host Session as another Client and continue observing and controlling it through the existing terminal experience. Existing CLI behavior remains unchanged unless the Runtime Host owner is explicitly selected.
Verification
npm --workspace maka-agent test— 494 passednpm --workspace @maka/desktop run build:maingit diff --check简体中文
概要
加入首个由 Runtime Host 支撑的 CLI adapter slice:一个共享的异步 Session facade,以及使用 Host-owned Session state、execution、continuity、Interaction、queue 和 Runtime Resource 的 TUI 实现。
这是 #2010 Stage 4 的一部分。现有 embedded CLI 继续作为默认 owner;只有显式设置
MAKA_CLI_RUNTIME_OWNER=runtime-host才会选择 Host-backed candidate。同一 CLI 进程不会同时激活两个 owner,Host 路径也不会回退到 embedded state。变更内容
MakaSessionDriver产品边界替换 TUI 对同步 Runtime-shaped API 的假设;用户影响
候选 TUI 可以连接到其他 Client 使用的同一个 Runtime Host Session,并通过现有终端体验继续观察和控制。除非显式选择 Runtime Host owner,否则现有 CLI 行为不变。
验证
npm --workspace maka-agent test— 494 项通过npm --workspace @maka/desktop run build:maingit diff --check