Skip to content

HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnesses. Run Codex, Claude Code, Hermes, PI, DSH, and more through one API, with sessions, streaming, files, cancellation, and failure handling. Implements the Unified Harness Protocol (UHP), an open standard. Your keys, your infrastructure.

aider: the nudge fires on a typographic apostrophe, a stated need and a stops-short paragraph (#316)

github-actions[bot]af19ea7382a8
diff --git a/runner/aider_driver.py b/runner/aider_driver.py
index a340fe24..1d221307 100644
--- a/runner/aider_driver.py
+++ b/runner/aider_driver.py
@@ -318,17 +318,22 @@ def _run_shell_commands_reporting(coder, gate: _Gate, reflect: bool = True):
# A reply that announces work instead of doing it: "I'll create…", "Let me…", "Sure, I will…".
# Anchored at the start, after an optional acknowledgement, so an answer that happens to contain
-# the words ("The file I'll need is…") is not one.
+# the words ("The file I'll need is…") is not one. The apostrophe is either kind: gpt-5.4 writes
+# "I’ll open the page in the browser" with the typographic one, and a match on the straight one
+# alone let that turn end with the plan and nothing done (hr-test 0.25.13, 2026-09-28).
_ANNOUNCES = re.compile(
r"^\s*(?:(?:ok(?:ay)?|sure|certainly|got it|understood|alright|right)[,.!:]?\s*)?"
- r"(?:i(?:'ll| will| am going to|'m going to| can go ahead)|let me|first,? i(?:'ll| will)|"
- r"here(?:'s| is) (?:the|my) plan)\b", re.I)
+ r"(?:i(?:['’]ll| will| am going to|['’]m going to| can go ahead| (?:still |also )?need to)|let me|"
+ r"first,? i(?:['’]ll| will)|here(?:['’]s| is) (?:the|my) plan)\b", re.I)
+# A reply that stops short and says so in a paragraph of its own: "To complete the task, I still
+# need to click the link" after the first browser output (gpt-5.4, hr-test 0.25.13, 2026-09-28).
+_STOPS_SHORT = re.compile(r"(?:^|\n)\s*to (?:complete|finish) (?:the|this) task,?\s*i (?:still |also )?need to\b", re.I)
NUDGE = ("Nothing was run or edited. If the task needs files or commands, produce them now in "
"this reply; otherwise give your final answer.")
def _announces_without_acting(text: str) -> bool:
- return bool(_ANNOUNCES.match(text or ""))
+ return bool(_ANNOUNCES.match(text or "") or _STOPS_SHORT.search(text or ""))
def _run_turn(coder, prompt: str, gate: "_Gate | None" = None) -> None:
diff --git a/runner/tests/test_aider_driver.py b/runner/tests/test_aider_driver.py
index 5ec9b653..e3263148 100644
--- a/runner/tests/test_aider_driver.py
+++ b/runner/tests/test_aider_driver.py
@@ -337,6 +337,12 @@ def test_a_reply_that_announces_work_and_does_none_is_nudged_once():
the person types "go ahead". The nudge is that, once, only for a reply that reads as an
announcement; a plain answer, a reply that acted, and a second announcement get none."""
a = aider_driver._announces_without_acting
+ # the typographic apostrophe gpt-5.4 writes, a need stated instead of met, and a paragraph
+ # that says the task is not finished (three aider browser turns on hr-test 0.25.13, 2026-09-28)
+ assert a("I’ll open the page in the browser, click its only link, then report the destination URL.")
+ assert a("I need to use the browser for this, not edit any files.")
+ assert a("The browser output shows example.com loaded.\n\nTo complete the task, I still need to click the link.")
+ assert not a("Done. The page I’ll leave as it is; the file you need to edit is notes.csv.")
assert a("I'll create a one-page PowerPoint deck about SFO and save it in the workspace.")
assert a("Sure, I will build the deck now.") and a("Let me start by reading the skill.")
assert a("Okay. I'm going to write the outline first.") and a("Here's the plan:\n1. read")