T24c: Agent, changes

- FileChangeCard: a proposed change to one file, its path and counts,
  Reject and Accept in a slot that keeps presses off the header; opened,
  the diff through a headless git::DiffViewer with its folds opening
- MultiFileDiffReview: every file at once, the total counts, how many are
  reviewed, Reject all and Accept all; verdicts as collab::Decision
- git::DiffViewer gains headless, leaving the file's header to its owner
- CommandExecutionCard is terminal::CommandBlock
- gallery: three proposed files and a command's block
This commit is contained in:
ZacharyZhang-NY committed 2026-09-26 08:37:45 -04:00
1 parent 882280cb25
commit 62397cbba1
9 files changed
+591 -26

No files matched your search

+10 -1
View File
@@ -1,3 +1,4 @@
mod changes;
mod progress;
mod tools;
@@ -10,7 +11,7 @@ pub const PAGE: Page = Page {
number: 24,
slug: "agent",
title: "Agent",
summary: "An assistant at work: the tools it calls, what it asks before it acts, and how far it has come.",
summary: "An assistant at work: the tools it calls, what it asks before it acts, how far it has come and what it would change.",
render,
script: SCRIPT,
};
@@ -31,6 +32,13 @@ const SCRIPT: &[Step] = &[
Step::Click("agent-advance"),
Step::Wait(300),
Step::Shot("plan"),
Step::DownAt("agent-changes", 30.0, 51.0),
Step::UpAt("agent-changes", 30.0, 51.0),
Step::Wait(300),
Step::Shot("changes"),
Step::DownAt("agent-changes", 30.0, 51.0),
Step::UpAt("agent-changes", 30.0, 51.0),
Step::Wait(200),
];
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
@@ -39,5 +47,6 @@ fn render(window: &mut Window, cx: &mut App) -> AnyElement {
.child(tools::approval(window, cx))
.child(progress::steps(window, cx))
.child(progress::agents(window, cx))
.child(changes::changes_section(window, cx))
.into_any_element()
}