diff --git a/README.md b/README.md index 910dd18..5bc92b1 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,12 @@ key = "prefix+shift+o" type = "plugin_action" command = "annotate.last" description = "review the agent's last reply" + +[[keys.command]] +key = "prefix+ctrl+o" +type = "plugin_action" +command = "annotate.last-newest" +description = "review the agent's newest reply" ``` @@ -159,6 +165,7 @@ Full install. Works with Claude Code, Codex, pi, Copilot CLI, Droid, Oh My Pi, H |---|---| | `Ctrl+B O` | this folder, with a file tree | | `Ctrl+B Shift+O` | the agent's recent replies | +| `Ctrl+B Ctrl+O` | the agent's newest reply, with no picker | | Ctrl-click a `file://…md` link | that file | **Send** (or `E`) makes the review the agent's next message. `q` closes. diff --git a/docs/windows-full-acceptance.md b/docs/windows-full-acceptance.md index 67ea213..0f1ccae 100644 --- a/docs/windows-full-acceptance.md +++ b/docs/windows-full-acceptance.md @@ -33,14 +33,16 @@ requirements, not completed verification. Every box starts unchecked. | `open` | Annotate: open here | `workspace`, `pane` | | `open-link` | Annotate this file | `pane` | | `last` | Annotate: agent's last message | `pane` | + | `last-newest` | Annotate: agent's newest message | `pane` | - [ ] Require exactly three panes: `editor` (Annotate, popup, 88×24), `manager` (Annotations, popup, 100×30), and one `doc` (Annotate, overlay). The `doc` command must be exactly `["./bin/plannotator-tui.exe", "herdr", "pane"]`. No shell, PowerShell, command-string interpolation, or fallback launcher may sit between Herdr's pane process and the TUI. -- [ ] Keep `open` and `open-link` as direct argv ending in `herdr open`, and - `last` as direct argv ending in `herdr last`, all using +- [ ] Keep `open` and `open-link` as direct argv ending in `herdr open`, + `last` as direct argv ending in `herdr last`, and `last-newest` as direct argv + ending in `herdr last --newest`, all using `./bin/plannotator-tui.exe`. Preserve the `markdown-file` link handler's title, pattern, and `open-link` action. All actions, panes, the handler, and the build must be effective on Windows; no inherited Unix gate may disable them. @@ -131,7 +133,7 @@ does not establish that a real Herdr pane works. then an absolute path with spaces and Unicode. Assert each intended document renders. Verify delivery target variables supplied by the launcher survive unchanged. Exercise `open`, `open-link` (including a percent-encoded `file://` - path), and `last` with controlled context/transcript fixtures. Record fixture + path), `last`, and `last-newest` with controlled context/transcript fixtures. Record fixture evidence separately from real-agent integration. - [ ] Open Full with inert review-folder `.env` fixtures that would change a launcher process. Full must render the intended document without loading those diff --git a/herdr-plugin.toml b/herdr-plugin.toml index 48d2136..bf7d5aa 100644 --- a/herdr-plugin.toml +++ b/herdr-plugin.toml @@ -109,6 +109,14 @@ contexts = ["pane"] platforms = ["macos", "linux"] command = ["./bin/plannotator-tui.exe", "herdr", "last"] +[[actions]] +id = "last-newest" +title = "Annotate: agent's newest message" +description = "Review the focused agent's newest message in plannotator-tui, without choosing from a picker first." +contexts = ["pane"] +platforms = ["macos", "linux"] +command = ["./bin/plannotator-tui.exe", "herdr", "last", "--newest"] + # Ctrl-click on a file:// Markdown link. Anchored on the scheme so web links never match. [[link_handlers]] id = "markdown-file" diff --git a/scripts/smoke.sh b/scripts/smoke.sh index be2acb1..2c9908a 100755 --- a/scripts/smoke.sh +++ b/scripts/smoke.sh @@ -97,7 +97,7 @@ trap restore EXIT echo "== fresh install: full" install "$spec" -check "actions" "$(actions)" "capture,copy-archive,copy-context,last,manage,open,open-link" +check "actions" "$(actions)" "capture,copy-archive,copy-context,last,last-newest,manage,open,open-link" check "action programs" "$(programs)" "./bin/herdr-annotate.exe,./bin/plannotator-tui.exe" check "review binary matches pin" "$(tui_version)" "$(tui_pin)" check "native binary matches pin" "$(native_version)" "$(native_pin)" @@ -134,7 +134,7 @@ check "manager pane" "$(manager_renders)" "ok" echo "== swap: lite -> full" install "$spec" -check "actions" "$(actions)" "capture,copy-archive,copy-context,last,manage,open,open-link" +check "actions" "$(actions)" "capture,copy-archive,copy-context,last,last-newest,manage,open,open-link" check "review binary" "$(tui_version)" "$(tui_pin)" check "native binary" "$(native_version)" "$(native_pin)"