@scotthuang/agent-knock-knock 0.2.42 → 0.2.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.43 - 2026-07-19
4
+
5
+ ### Added
6
+
7
+ - Make terminal bridge inactivity timeouts activity-aware, retain a separate 12-hour hard lifetime, and add `AKK renew` plus matching OpenClaw skill and tool support for explicitly extending long-running tasks.
8
+ - Persist timeout deadlines and activity evidence so renewals and stalls remain auditable without sending any input to the coding agent.
9
+
10
+ ### Fixed
11
+
12
+ - Bind Codex terminal callbacks to a matching rollout `task_complete` turn and request hash so final-answer prose cannot be mistaken for a working marker or a result from another task.
13
+ - Atomically supersede older bridge tasks when a tmux pane is reused, while preserving the previous callback path if replacement delivery fails and serializing concurrent sends.
14
+ - Preserve terminal-screen completion fallback for wrapped or scrolled prompts by comparing the completed screen with a pre-send fingerprint.
15
+
3
16
  ## 0.2.42 - 2026-07-13
4
17
 
5
18
  ### Fixed
package/README.md CHANGED
@@ -139,6 +139,7 @@ akk status <conversation-id>
139
139
  akk describe <conversation-id>
140
140
  akk send <conversation-id>: continue with the smaller implementation
141
141
  akk cancel <conversation-id>
142
+ akk renew <conversation-id> --minutes 180
142
143
  akk recover <conversation-id>
143
144
  akk close <conversation-id>
144
145
  AKK terminal takeover Codex <native-session-id>
@@ -156,6 +157,7 @@ Surfaces that support OpenClaw native commands can use the same workflow through
156
157
  /akk status <conversation-id>
157
158
  /akk send <conversation-id> <message>
158
159
  /akk cancel <conversation-id>
160
+ /akk renew <conversation-id> [minutes]
159
161
  /akk close <conversation-id> [reason]
160
162
  ```
161
163
 
@@ -167,7 +169,9 @@ Optional default-agent config:
167
169
  entries: {
168
170
  "agent-knock-knock": {
169
171
  config: {
170
- defaultAgent: "codex" // "codex", "claude", or "cursor"
172
+ defaultAgent: "codex", // "codex", "claude", or "cursor"
173
+ agentTimeoutMinutes: 60, // terminal inactivity timeout
174
+ agentHardTimeoutMinutes: 720 // terminal task lifetime ceiling
171
175
  }
172
176
  }
173
177
  }
@@ -224,6 +228,8 @@ AKK list
224
228
  - `terminal_controlled`: local sessions running in a controllable terminal provider. The current provider is tmux. These entries include terminal metadata, command capabilities, and concise approval state when a visible approval prompt is detected.
225
229
  - `terminal_controlled` entries can be addressed directly by their `id` from `AKK list` for `AKK send <id>`, `AKK status <id>`, `AKK cancel <id>`, and `AKK approve <id>`. They do not need an AKK state file before terminal control.
226
230
  - Background sends to terminal-controlled Codex sessions use terminal bridge mode: AKK types only the user-facing task text into the tmux pane, monitors Codex rollout/terminal state, and delivers the OpenClaw callback itself when it observes completion.
231
+ - Terminal bridge timeout is activity-aware. Visible Codex work, active background terminals, rollout updates, and meaningful terminal changes extend the inactivity deadline. A separate hard lifetime still stops permanently running monitors.
232
+ - If a live terminal task is marked `stalled`, `AKK renew <conversation-id> --minutes <minutes>` restarts monitoring without sending text or keys to Codex. Renewal preserves the original callback destination and task hard deadline.
227
233
  - `AKK status <terminal-controlled-id>` is the unified way to inspect current terminal output. AKK captures the terminal pane internally and returns `terminal_screen`; there is no separate public screen-capture command.
228
234
  - `AKK describe <id>` summarizes what a listed session is about. AKK-managed sessions use saved conversation history; native and terminal-controlled Codex sessions use exact Codex rollout history when a session id is available, fall back to cwd-matched rollout history when needed, and otherwise report only visible terminal/process context with lower confidence.
229
235
 
@@ -336,7 +342,8 @@ Runtime logs are diagnostic-only and are safe to use for local troubleshooting.
336
342
  - Default agent: configured with `defaultAgent`; fallback is `codex`
337
343
  - OpenClaw session: inherited from the current OpenClaw session; fallback is `agent:main:main`
338
344
  - Delegated ACPX session: generated per new task, unless `session`, `codexSession`, `claudeSession`, or `cursorSession` is configured
339
- - Agent callback timeout: `60` minutes before a waiting task or terminal bridge monitor is marked `stalled`
345
+ - Agent callback/terminal inactivity timeout: `60` minutes before an inactive waiting task is marked `stalled`
346
+ - Terminal bridge hard lifetime: `720` minutes for a still-running monitor with no approval or completion result, even if other activity continues
340
347
  - Idle timeout: `10080` minutes before an idle task is lazily closed
341
348
  - Soft response limit: `50` rounds
342
349
  - Hard response limit: `100` rounds