feat(native): run Claude Code, Codex, and OpenCode in xterm terminals - #5557
Open
tlgimenes wants to merge 18 commits into
Open
feat(native): run Claude Code, Codex, and OpenCode in xterm terminals#5557tlgimenes wants to merge 18 commits into
tlgimenes wants to merge 18 commits into
Conversation
Contributor
|
This PR is large and would use a significant portion of your monthly review quota. Comment |
tlgimenes
force-pushed
the
feat/native-terminal-agents
branch
from
August 3, 2026 02:37
286d2bc to
62cc545
Compare
Contributor
Author
|
@cubic-dev-ai review this |
Contributor
@tlgimenes I can't start this review because your workspace has reached its free monthly review limit. cubic has reviewed 42,059 of the 40,000 allowed lines of code this month. Reviews resume on 1 September 2026 (in 29 days). Paid plans include much higher monthly review limits. Upgrade now to resume reviews. To help optimise your usage, you can tune cubic to get the most out of your usage limits:
|
tlgimenes
force-pushed
the
feat/native-terminal-agents
branch
from
August 3, 2026 04:15
62cc545 to
be2a639
Compare
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.
Summary
Replace Studio Native's structured AI SDK chat path with real interactive Claude Code, Codex, and OpenCode processes running in PTYs rendered by xterm.js. Hosted web remains on the existing structured Decopilot chat flow.
What changed
cmsMCP, lifecycle hooks, exact provider-session checkpoints, and restart-safe resume/recovery.--sessionresume, provider-owned model selection, and provider-owned titles.Hosted/native boundary
/_sandbox/dispatchcontract remains intact; the native PTY backend does not implement that retired native route.Validation
bun run test— 5,689 passed across 617 files.cargo test --workspace,cargo clippy --workspace --all-targets -- -D warnings,bun run check,bun run lint,bun run knip,bun run fmt:check, andcargo fmt --all -- --check.Review history
This PR now contains the former #5562 diff. All 23 review threads on that PR were answered and resolved before consolidation; the closed PR is retained for traceability.
Migration notes
Native SQLite advances from schema 10 to 12:
rejected_provider_session_id, clears legacy null-checkpoint barriers, and preserves confirmed provider checkpoints.Upgrades from schema 10 run both migrations. There is no hosted Postgres migration or hosted chat-contract expansion.
OpenCode local database caveat
OpenCode 1.18.10 works with a fresh isolated state, but an existing local database previously migrated from pre-1.18 OpenCode may contain an incomplete upstream migration. Studio does not modify that user-owned database: its bounded readiness probe marks OpenCode as Try anyway and fails closed instead of opening a broken blank terminal.
Architecture details and the validation record are in
apps/native/docs/terminal-agents-plan.md.