Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions .wrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ screenshot rung, both about mistaking an in-progress run for a finished one:
(`File exists (os error 17)`). Pass `--output "$TMPDIR/mutants-<topic>"` so a
run cannot collide with the working tree or with another run.

**A merged PR does not close its issue here.** PR bodies in this repo are
written in French, and GitHub only auto-closes on the English keywords
(`closes` / `fixes` / `resolves`). #239 merged with « Ferme #236 » in its body
and #236 stayed open — the fix shipped while the tracker still showed it as
outstanding. Write the machine-readable `Closes #NN` on its own line even in a
French body, and during a wrap that follows a merge, check
**A merged PR does not close its issue here.** GitHub auto-closes only on the
English keywords (`closes` / `fixes` / `resolves`). #239 merged with
« Ferme #236 » in its body and #236 stayed open — the fix shipped while the
tracker still showed it as outstanding. That incident is what made English-only
writing a rule in `AGENTS.md`, so a French body is no longer the way this
happens; what remains is a body that names the issue without the keyword. Write
`Closes #NN` on its own line, and during a wrap that follows a merge check
`gh issue view <NN> --json state` rather than assuming.

**A test-only temp path is shared state.** The private per-session directories
Expand Down Expand Up @@ -119,6 +120,22 @@ block list under **Configuration**, the mouse/gesture paragraph at the end of
still to come. Docs ride with their feature (see the bookkeeping rule below),
and this is the file that keeps escaping it.

**Grep the verb, not the issue number.** A *bugfix* drifts that prose as
readily as a feature does, and less visibly. #237 made `escape` leave every
prompt, while the README went on promising that `escape` *and* `enter` both
answer any prompt — half true before the fix, and half true after it for the
other half. What went stale was a **capability** claim, not a feature list, so
grepping for the issue number would have found nothing. Grep for what the
surface is said to be able to *do*.

**Singular follow-up sentences drift silently.** `README.md` and the *Still
open* paragraph in `AGENTS.md` both named #196 as **the** one remaining item.
Filing two more defects against the same surface made both sentences wrong
without touching a word of either — nothing greps as stale, because the text
never mentions what was just added. When a pass files an issue against a
surface, re-read that surface's "what remains" sentence in every file that has
one.

**The refuter earns its keep on `AGENTS.md` prose, not on the code.** A wrap
that ends by promoting a lesson writes durable rules from the freshest, most
compressed part of the session's context — which is exactly where a plausible
Expand Down
9 changes: 7 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,13 @@ mutation goes through an existing `Event`. The keyboard rung adds
(the inverse of `chord_of`), and `routing::KeyboardOwner` / `KeyVerdict` — the
overlay ladder and its outcome named once, since three readers consult them.

**Still open.** `F-mcp-agent-loop` (#196 — the composed prompt→wait→read in one
round trip), the last child of the #90 epic. With `screenshot` and the keyboard
**Still open.** One feature and two defects: `F-mcp-agent-loop` (#196 — below),
`enter` on the two renames (#246), and a doc editor that discards unsaved edits
when it closes (#248). The last two are described where they arose, further
down; neither blocks #196.

`F-mcp-agent-loop` (#196 — the composed prompt→wait→read in one
round trip) is the last child of the #90 epic. With `screenshot` and the keyboard
tools the capability is otherwise whole in three parts: drive the UI, see the
pixels, read the terminal — what lets an agent verify a gesture fix instead of
only proposing it. #196 *composes* the wait, which #236 had to fix first —
Expand Down
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,19 @@ stable `handle` that survives a Claude-side session re-key.
`press_keys` and `run_action` reach the app itself, not a terminal — typing
into a session stays `run_in_session`'s job. A chord goes in as a synthesised
key event down the real keyboard path, so an open prompt consumes it exactly as
it would for a human, and `escape` / `enter` can answer that prompt. Each press
reports what happened (`ran`, `inert`, `overlay`, `typed`, `unbound`), so
"nothing visible changed" is never confused with "it worked".
it would for a human. Each press reports what happened (`ran`, `inert`,
`overlay`, `typed`, `unbound`), so "nothing visible changed" is never confused
with "it worked".

A composed prompt→wait→read in one round trip ([#196]) is the remaining
follow-up.
`escape` leaves **every** prompt, which is what keeps an agent from parking the
app on one it cannot answer; a sidebar rename used to be the exception
([#237]). `enter` confirms the confirmation prompts, but commits neither
rename — those go through a widget callback no synthesised event reaches
([#246]).

Three follow-ups remain: a composed prompt→wait→read in one round trip
([#196]), `enter` on the renames ([#246]), and a doc editor that discards
unsaved edits when it closes ([#248]).

### The stdio server (manual)

Expand All @@ -239,6 +246,9 @@ Build the binary with `cargo build -p termherd-mcp` (it lands in `target/`).

[#90]: https://github.com/Termherd/termherd/issues/90
[#196]: https://github.com/Termherd/termherd/issues/196
[#237]: https://github.com/Termherd/termherd/issues/237
[#246]: https://github.com/Termherd/termherd/issues/246
[#248]: https://github.com/Termherd/termherd/issues/248

## Test

Expand Down
Loading