Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
merge(main): preserve review behavior with latest disclosure changes
new-Beginner0428704aad00
diff --cc apps/desktop/src/features/chat/transcript/TurnChangesCard.tsxindex 398433453,655410192..bab52c7be--- a/apps/desktop/src/features/chat/transcript/TurnChangesCard.tsx+++ b/apps/desktop/src/features/chat/transcript/TurnChangesCard.tsx@@@ -1,8 -1,8 +1,9 @@@- import { memo, useMemo } from "react";+ import { memo, useId, useMemo } from "react";import { useTranslation } from "react-i18next";import type { ReviewChangeStatus, UiMessage } from "@pi-desktop/shared";- import { cx } from "../../../components/ui";+ import { IconChevronDown, IconChevronRight } from "../../../components/icons";+ import { Button, cx } from "../../../components/ui";+import { reviewFilePathLabel } from "../../../lib/review-history";import { requestReviewFocus } from "../../../lib/review-focus-request";import {summarizeTurnChanges,@@@ -85,48 -103,50 +104,50 @@@ export const TurnChangesCard = memo(fun><Counts additions={summary.additions} deletions={summary.deletions} /></span>- </div>- <ul className={cx("turn-changes-body", dense && "is-dense")}>- {visible.map((file) => {- const label = rowLabel(file);- return (- <li key={file.path}>- <button- type="button"- className="turn-changes-row"- data-status={file.status}- data-rolled-back={file.rolledBack || undefined}- aria-label={label}- title={label}- onClick={() => openReview(file.snapshotIds, true)}- >- <span className="turn-changes-mark" aria-hidden>- {STATUS_MARKS[file.status]}- </span>- <span className="turn-changes-path" data-outside-path={reviewFilePathLabel(file.path) !== file.path || undefined}>{reviewFilePathLabel(file.path)}</span>- <Counts additions={file.additions} deletions={file.deletions} />- </button>+ </Button>+ <div ref={disclosure.bodyRef} id={bodyId} hidden={!disclosure.open} {...disclosure.bodyEvents}>+ <ul className={cx("turn-changes-body", dense && "is-dense")}>+ {visible.map((file) => {+ const label = rowLabel(file);+ return (+ <li key={file.path}>+ <button+ type="button"+ className="turn-changes-row"+ data-status={file.status}+ data-rolled-back={file.rolledBack || undefined}+ aria-label={label}+ title={label}+ onClick={() => openReview(file.snapshotIds, true)}+ >+ <span className="turn-changes-mark" aria-hidden>+ {STATUS_MARKS[file.status]}+ </span>- <span className="turn-changes-path">{file.path}</span>++ <span className="turn-changes-path" data-outside-path={reviewFilePathLabel(file.path) !== file.path || undefined}>{reviewFilePathLabel(file.path)}</span>+ <Counts additions={file.additions} deletions={file.deletions} />+ </button>+ </li>+ );+ })}+ {hidden > 0 ? (+ <li className="turn-changes-more">+ <span aria-hidden>···</span>+ {t("chat.turnChangesMore", { count: hidden })}</li>- );- })}+ ) : null}+ </ul>{hidden > 0 ? (- <li className="turn-changes-more">- <span aria-hidden>···</span>- {t("chat.turnChangesMore", { count: hidden })}- </li>+ <div className="turn-changes-foot">+ <button+ type="button"+ className="turn-changes-view-all"+ onClick={() => openReview(files.flatMap((file) => file.snapshotIds), false)}+ >+ {t("chat.turnChangesViewAll", { count: files.length })}+ </button>+ </div>) : null}- </ul>- {hidden > 0 ? (- <div className="turn-changes-foot">- <button- type="button"- className="turn-changes-view-all"- onClick={() => openReview(files.flatMap((file) => file.snapshotIds), false)}- >- {t("chat.turnChangesViewAll", { count: files.length })}- </button>- </div>- ) : null}+ </div></section>);});diff --cc crates/host-core/src/rpc/mod.rsindex b2aec4b9a,865bcf5cb..acf10e5e7--- a/crates/host-core/src/rpc/mod.rs+++ b/crates/host-core/src/rpc/mod.rs@@@ -3,8 -3,8 +3,9 @@@ mod file_batchesmod gen_ui;mod plugin_reviews_rpc;mod remote_tools;+mod review_actions_rpc;mod scheduled_rpc;+ mod scheduled_settings;mod scheduled_tools;mod todos;mod window_corner_rpc;