M11 (cut, per S8): diff and file blocks from the phone, plus Rerun on failed builds #8

Closed
opened 2026-10-02 00:16:05 +00:00 by jhgaylor · 2 comments
Owner

Depends on: #6

M7 (fs methods) is done. S8 may reshape or drop this milestone.

From PLAN.md, section "M11".


Read-only views for checking an agent's work from anywhere, especially the
phone.

  • File block.
    • Config: { host, path }, read through M7's fs methods.
    • Syntax highlighting and line numbers.
    • It follows fs.watch live, which matters while an agent edits.
    • capture --text returns the file.
  • Diff block. It takes any of three sources:
    • { host, repo, rev_a, rev_b }, computed by the host's daemon;
    • a working-tree diff;
    • the edit diffs from an M6b agent block's tool-call cards (ACP tool calls
      carry diff content). "Open diff" on a tool call opens one.
    • Unified on the phone, split on the desktop. It is read-only, with "open
      file" per hunk.
  • Done when:
    • from the phone, open the diff of what an agent just changed in a VM tab,
      tap a hunk, and land in a live file block showing that line;
    • both keep updating while the agent keeps editing.
**Depends on:** #6 M7 (`fs` methods) is done. S8 may reshape or drop this milestone. _From PLAN.md, section "M11"._ --- Read-only views for checking an agent's work from anywhere, especially the phone. - **File block.** - Config: `{ host, path }`, read through M7's `fs` methods. - Syntax highlighting and line numbers. - It follows `fs.watch` live, which matters while an agent edits. - `capture --text` returns the file. - **Diff block.** It takes any of three sources: - `{ host, repo, rev_a, rev_b }`, computed by the host's daemon; - a working-tree diff; - the edit diffs from an M6b agent block's tool-call cards (ACP tool calls carry diff content). "Open diff" on a tool call opens one. - Unified on the phone, split on the desktop. It is read-only, with "open file" per hunk. - **Done when:** - from the phone, open the diff of what an agent just changed in a VM tab, tap a hunk, and land in a live file block showing that line; - both keep updating while the agent keeps editing.
Author
Owner

Rescoped by S8 (#6, 27a48a1). The new Done when is in PLAN.md's M11 section (a cut: diff block plus file block, phone first, live only while drawn, viewers read-only, local and VM; plus Rerun on M24's Failed). Cut from this issue: split view, agent tool-call diffs as a source, and editing or reverting hunks. Starting now on track B of #55.

Rescoped by S8 (#6, 27a48a1). The new Done when is in PLAN.md's M11 section (a cut: diff block plus file block, phone first, live only while drawn, viewers read-only, local and VM; plus Rerun on M24's *Failed*). Cut from this issue: split view, agent tool-call diffs as a source, and editing or reverting hunks. Starting now on track B of #55.
jhgaylor changed title from M11: file and diff blocks to M11 (cut, per S8): diff and file blocks from the phone, plus Rerun on failed builds 2026-10-02 14:42:31 +00:00
Author
Owner

Done: merged as 153e435 (Merge M11 (cut)). PLAN.md: "#### M11 (cut)".

  • Diff block {repo, rev_a?, rev_b?}: the working tree or a revision range, run with git locally or on a VM through Provider::run (locks, external diff and textconv off). It lists files with +/− counts and expands hunks, with caps for big and binary files.
  • File block {path, line?}: read through M7's fs, with a marked line that follows edits.
  • Both stay live only while some client draws them, and viewers see the pushed state but can't call methods.
  • Ways in: Changes on the pane and tab menus, the phone sheet and swarm tiles; illogical diff and illogical view; MCP show_changes and show_file; Open file on agent tool-call locations.
  • Rerun: M24's Failed reason gets a rerun action (phone, swarm, push, TUI, illogical rerun).
    Tests: review.rs, unit tests, and web/e2e/changes.spec.ts on a Pixel 7 profile, including the wisp VM flow (7/7). CI green on the branch (730, 731), and just check passed after merging main.
    Not covered: a real phone and a real push notification (Needs Jake), M4a peers' and resident sandboxes' repos, more than 200 untracked files.
Done: merged as 153e435 (Merge M11 (cut)). PLAN.md: "#### M11 (cut)". - Diff block {repo, rev_a?, rev_b?}: the working tree or a revision range, run with git locally or on a VM through Provider::run (locks, external diff and textconv off). It lists files with +/− counts and expands hunks, with caps for big and binary files. - File block {path, line?}: read through M7's fs, with a marked line that follows edits. - Both stay live only while some client draws them, and viewers see the pushed state but can't call methods. - Ways in: *Changes* on the pane and tab menus, the phone sheet and swarm tiles; `illogical diff` and `illogical view`; MCP show_changes and show_file; *Open file* on agent tool-call locations. - Rerun: M24's Failed reason gets a rerun action (phone, swarm, push, TUI, `illogical rerun`). Tests: review.rs, unit tests, and web/e2e/changes.spec.ts on a Pixel 7 profile, including the wisp VM flow (7/7). CI green on the branch (730, 731), and just check passed after merging main. Not covered: a real phone and a real push notification (Needs Jake), M4a peers' and resident sandboxes' repos, more than 200 untracked files.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
#6 S8: block exploration
jhgaylor/illogical
Reference
jhgaylor/illogical#8
No description provided.