Repository navigation
feat(harness): attach, jobs, worktree, plugin-dir, bash-edit-diff - #66
Conversation
Wire remaining must-gap TUI/CLI harness: live session attach, /jobs picker (numbered > / · rows), isolated git worktrees, contained --plugin-dir load, and opt-in Execute file diffs. Leave COR-8 permission-prompt UI locked and unchanged. Co-authored-by: Mathis <154886644+echobt@users.noreply.github.com>
Co-authored-by: Mathis <154886644+echobt@users.noreply.github.com>
Recaptured the lock v2 `jobs` scene from the live MockTerminal pipeline at both sizes. 120×40 re-renders byte-identical to the committed PNG, so only the new 40×12 capture lands here as Alexa-gate proof that the numbered `>` / `·` picker (not `●`/`○` radios) is what the chrome paints. `LOCK_V2_NARROW_IDS` stays the signed 36-board set — `jobs` was added only for the temporary narrow render and reverted. permission-prompt* bytes are untouched (COR-8 / #53 stays PASS). Co-authored-by: Mathis <154886644+echobt@users.noreply.github.com>
|
Recaptured runtime lock PNGs for Two notes from the recapture, both verifiable from the pipeline: the 120×40 |
Greptile SummaryThis update completes the CLI and TUI session-management work: live attachment follows remote output, job controls stop running tasks and show details, worktree reuse is constrained to the active repository, plugin directories reach the executable runtime, and edit-diff snapshots cover large workspaces. Confidence Score: 5/5Safe to merge. No new issues remain, and all earlier threads are resolved with current-code fixes. Files Needing Attention: None. Reviews (5): Last reviewed commit: "fix(harness): address greptile attach, j..." | Re-trigger Greptile |
Keep each grown .rs file at or under 1000 lines, extract session harness application, and add attach/jobs/worktree/plugin-dir tests. Jobs picker chrome stays numbered > / ·. Permission-prompt UI is untouched. Co-authored-by: Mathis <154886644+echobt@users.noreply.github.com>
Keep new test modules under 1000 lines, regenerate cli.commands.json, and extract run_local input building so complexity is not a regression vs main. Co-authored-by: Mathis <154886644+echobt@users.noreply.github.com>
Follow remote attach output while idle, reject bare approve/deny, require existing --worktree dirs to be linked worktrees, discover all bash-edit files and cap displayed diffs, start the executable plugin runtime for --plugin-dir, and abort /jobs x plus open on Enter. Co-authored-by: Mathis <154886644+echobt@users.noreply.github.com>
|
Greptile (@greptileai) please re-review. Remaining Greptile threads from this pass were addressed in 6e23b11 (attach live-follow, worktree membership, bash-edit discovery vs display cap, executable --plugin-dir runtime, /jobs abort+open). Draft stays draft. |
# Conflicts: # src/cortex-tui/src/lib.rs # src/cortex-tui/src/lock_v2.rs Co-authored-by: Mathis <echobt@users.noreply.github.com>
Summary
Cortex Code CLI/TUI harness (not a fourth app). Must-gap work excluding COR-8 / #53. Permission-prompt UI is untouched (no global ●/○ radios, no permissions-picker replacing the locked numbered
>/·prompt).permission-prompt*files were not modified. No audit markdown.cortex attach <session-id>follows a live Code session; empty line /--print-only/ non-TTY detaches without stopping the session.cortex run --attach <URL>still fails closed (No local session was started.)./jobsnumbered picker from live subagents;cortex jobs list|logs|stop|attach. Lock v2jobsscene uses the same numbered picker (not radios).--worktree [DIR]isolates the session cwd into a git worktree (--worktreewith no path uses destauto→ default.cortex-worktrees/<id>).--plugin-dir(repeatable) loads a contained folder-of-plugins or a single plugin; symlink children are skipped.--bash-edit-diff/CORTEX_BASH_EDIT_DIFFappends Execute/Bash file diffs (redacts.env/keys).Linear: COR-365, COR-361, COR-396, COR-439, COR-426.
Test plan
cargo fmt --all -- --check(fmt applied)./scripts/clippy.sh -p cortex-engine -p cortex-tui -p cortex-clicargo test -p cortex-engine --lib -- plugin_dir worktree session_attach bash_editcargo test -p cortex-tui --lib -- jobs tasks lock_v2 lock_boards_21_30_product_copycargo test -p cortex-cli --lib -- harness_flags attach jobs+--test cli_schemacargo test --workspace/cargo auditin CIAttestation (required)
I attest that:
jobsuses numbered rows. Permission-prompt files not modified..envfiles.Risk
New CLI flags and Code session attach/approvals HTTP. Exec/sandbox policy unchanged.
Stay draft. Branch protection needs a non-author review; this PR will not be marked ready or merged here. No audit markdown.
Greptile (@greptileai)