Repository navigation
feat(agent): add the native agent foundation - #100
Merged
fcoury merged 51 commits intoJul 13, 2026
Merged
Conversation
Contributor
|
@codex review |
Document the phased roadmap for Vim compatibility, ACP integration, resilient sessions, and typed plugin compatibility. Define measurable product contracts and architecture spikes before implementation begins.
fcoury-oai
force-pushed
the
feat/agent-native-foundation
branch
from
July 13, 2026 16:23
a5002b9 to
0d9a8e7
Compare
Use the process token SID when protecting Windows session snapshots and keep platform-specific tests aligned with supported filesystem behavior. Remove ACP cancellation and dispatcher timing races, and keep Codex project trust construction warning-free on every target.
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.
Why
Red needs a first-use agent workflow that is safe with unsaved work, usable in small terminal panes, and resilient across terminal disconnects. The previous plugin and terminal surfaces could lose prompt/output visibility, bypass reviewable edits, or diverge from the documented runtime and LSP contracts.
What changed
red --agent-check [--strict]gives actionable offline setup diagnostics.Space A/:Agent, lazy backend setup with a masked session-only API-key prompt, a wrapping Unicode-safe multiline composer and bounded history, streamed Markdown conversation panels, permissions, hunk review/conflict handling, attributed history, and selective revert. Narrow-pane scrolling now uses the actual rendered width so wrapped output remains reachable while streaming.How to Test
Build and run the focused safety/regression suites:
Expected: ACP callbacks/proposals, adapter failure paths, detach, LSP edits, Markdown reflow/scrolling, and multiline composer regressions pass without real credentials.
Check a fresh profile and the non-happy setup path:
Expected: every bundled plugin is active and self-check ends with
red self-check ok; strict agent-check clearly reports a missing credential/backend instead of silently starting or persisting a secret.In a disposable workspace with an authenticated backend, open an unsaved file, press
Space A, submit a multiline prompt that produces Markdown and an edit, then shrink the pane below 52 columns while output streams. Focus the conversation, scroll up/page/top/bottom, and resize again. Run:AgentReview, accept one hunk and reject another, then save.Expected: composer borders/cursor and all wrapped output remain visible and reachable, reading position is stable during streaming, disk is unchanged before acceptance/save, and rejected edits never enter the buffer.
On Linux/macOS, run
target/debug/red --detach=smoke <file>, start a turn, detach withCtrl-\\, reattach withtarget/debug/red --attach smoke, and finish withtarget/debug/red --stop smoke.Expected: the live session and unsaved state survive reconnect; resize, mouse, paste, and wide Unicode render correctly.
Final local validation passed formatting, strict all-target/all-feature Clippy, all 1,158 Rust tests, the 21 focused panel regressions, Markdown-link self-tests/checks, and
git diff --check.Detach is intentionally Linux/macOS-only, and custom ACP commands are not claimed reviewable; the documented Windows and adapter boundaries remain explicit.