@aragon-agent/cli 0.6.75 → 0.6.76

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
@@ -94,7 +94,13 @@ were written.
94
94
  in tool calls with no results, which the provider would reject, so a retry could only fail).
95
95
  A pending team-wake countdown keeps the timer slot (it redoes the same turn and delivers a real signal),
96
96
  and a recovery that already holds it makes a later wake answer `busy`.
97
- `retry.resumeRun: false` (or `/retry off`, or `retry.maxRetries: 0`) restores the old behaviour exactly.
97
+ `retry.resumeRun: false` (or `/retry off`) restores the old behaviour exactly.
98
+ `retry.maxRetries: 0` no longer does, and that is the point of this entry: the two used to be one
99
+ switch, so a project `.env` carrying `ARAGON_RETRY_MAX=0` left a session with neither a request
100
+ ladder nor a recovery, and a single TLS reset ended the run for good. `0` now says only "do not
101
+ re-send this request". The recovery keeps its own kill switches - `retry.resumeRun: false`,
102
+ `retry.maxRunResumes: 0`, `retry.maxRunResumesPerPrompt: 0` - and `/retry off` /
103
+ `retry.enabled: false` still turns off both layers at once.
98
104
  `aragon -p` and the one-shot `aragon exec` path get **one** recovery, 15 s grace, and exit 1 when it does
99
105
  not end in an answer; text already streamed to stdout before the stall is not retracted (the retry line on
100
106
  stderr says so), as with the ladder's own `stream_restart`.
package/README.md CHANGED
@@ -3877,7 +3877,7 @@ env / `.env` → CLI flags**.
3877
3877
  `ARAGON_TOOL_IMAGES` (`0` stops `read_file` from showing pictures to the model; see
3878
3878
  [Looking at images](#looking-at-images-read_file)),
3879
3879
  `ARAGON_RETRY` (`0` disables API retry), `ARAGON_RETRY_MAX` (retry count; `0`
3880
- also disables),
3880
+ installs no ladder at all and leaves run-level recovery alone),
3881
3881
  `ARAGON_UPDATE` (`0` / `off` disables auto-update, `notify` reports without
3882
3882
  installing), `ARAGON_UPDATE_REGISTRY` (registry base URL for the update check),
3883
3883
  `ARAGON_SKILLS` (`0` disables), `ARAGON_SKILLS_PATH`,
@@ -3936,7 +3936,7 @@ env / `.env` → CLI flags**.
3936
3936
  | `todo.followThrough` | `"notify"` | What happens when a run ends with steps left. `notify` says so and stops; `auto` continues the plan after a 3-second grace window, bounded by two structural limits (one fruitless attempt, 25 continuations per plan) that are deliberately **not** settings; `off` is silent. An unrecognized value falls back to `notify`. |
3937
3937
  | `todo.acceptance` | `true` | Plan acceptance criteria with every list, and show them (`ACCEPT` / `VERIFY` in the rail, the card's second block, `Accept 2/5` on the status line). `false` plans steps only: no criteria, no verify phase, and every surface is byte-identical to a build without the feature. `/todo acceptance off` changes it for the running session too. |
3938
3938
  | `retry.enabled` | `true` | Retry a failed provider call at all. Unlike `team.enabled` / `todo.enabled` this decides nothing at construction — the policy lives on the provider registry, so `/retry on` / `/retry off` takes effect **in the running session**, subagents included. |
3939
- | `retry.maxRetries` | `10` | Retries **after** the first attempt, clamped to `[0, 20]`. `0` is the kill switch and is a real value here, not a typo for the default. The 20 is a hard ceiling enforced twice — on the config value and again inside the engine — so hand-editing this file cannot raise it. |
3939
+ | `retry.maxRetries` | `10` | Retries **after** the first attempt, clamped to `[0, 20]`. `0` is a real value here, not a typo for the default: it installs no ladder at all, so one failure is final for that request (`retry.resumeRun` is a separate switch and is unaffected). The 20 is a hard ceiling enforced twice — on the config value and again inside the engine — so hand-editing this file cannot raise it. |
3940
3940
  | `retry.initialDelayMs` | `1000` | The first wait, clamped to `[100, 30000]`. |
3941
3941
  | `retry.maxDelayMs` | `30000` | Ceiling on one wait, clamped to `[1000, 120000]` and raised to `initialDelayMs` if the two conflict. Kept below the engine's 60 s idle window on purpose, so the mechanism does not depend on the watchdog pause being correct — it merely benefits from it. |
3942
3942
  | `retry.multiplier` | `2` | Growth factor, clamped to `[1, 5]`. The one **float** key in this section: `2.5` is a legitimate factor and is stored as typed. |
@@ -3944,7 +3944,7 @@ env / `.env` → CLI flags**.
3944
3944
  | `retry.respectRetryAfter` | `true` | Honour `Retry-After` (and the provider rate-limit reset headers) as a **floor**, never a replacement — a `Retry-After: 1` on the ninth retry does not undo eight retries of backoff. A stated wait above 60 s is surfaced immediately instead of waited out. |
3945
3945
  | `retry.maxElapsedMs` | `240000` | Wall-clock budget from the first failure, clamped to `[10000, 1800000]`. Under the legacy regime (`team.overseer: false`) with `team.subagentTimeoutMs` positive, keep this below it: an equal budget means a subagent is killed at the same instant its ladder ends, and the user is then told "subagent timed out" for what was a provider outage. |
3946
3946
  | `retry.onPartialStream` | `true` | Allow a restart after content has already streamed to the transcript. The view is rewound and the discarded tool cards removed; engine history is provably clean at that point, because it is only written on a completed turn. `false` refuses the whole path. |
3947
- | `retry.resumeRun` | `true` | Re-run a run the **engine** interrupted - the idle watchdog fired (`[Agent] idle watchdog fired`) or the retry ladder gave up on a transport failure - instead of leaving it dead. Host-side: it redoes a **run** (`controller.continue()`, no message added) where the ladder above retries a **request**, so it never reaches the engine's `RetryPolicy`. Needs no todo plan and ignores `todo.followThrough`. Waits 15 s, then 45 s, then 120 s (cancel with `Esc`), announces the stall and its stage, and is switched off by `retry.enabled: false` / `retry.maxRetries: 0` as well. A rate limit, a rejected key, a context overflow, a run you stopped with `Esc` and a stall that began while a tool was running (unpaired tool calls in the history) are never recovered. `aragon -p` / `aragon exec` get one recovery, 15 s grace. |
3947
+ | `retry.resumeRun` | `true` | Re-run a run the **engine** interrupted - the idle watchdog fired (`[Agent] idle watchdog fired`) or the retry ladder gave up on a transport failure - instead of leaving it dead. Host-side: it redoes a **run** (`controller.continue()`, no message added) where the ladder above retries a **request**, so it never reaches the engine's `RetryPolicy`. Needs no todo plan and ignores `todo.followThrough`. Waits 15 s, then 45 s, then 120 s (cancel with `Esc`), announces the stall and its stage, and is switched off by `retry.enabled: false` or `retry.resumeRun: false` (or by either count below reaching `0`) - `retry.maxRetries: 0` turns off the request ladder above and deliberately leaves this alone, because at `0` the ladder is not installed at all and this is then the only recovery a session has. A rate limit, a rejected key, a context overflow, a run you stopped with `Esc` and a stall that began while a tool was running (unpaired tool calls in the history) are never recovered. `aragon -p` / `aragon exec` get one recovery, 15 s grace. |
3948
3948
  | `retry.maxRunResumes` | `3` | Back-to-back recoveries before control goes back to you, clamped to `[0, 10]`. Cleared by any run that ends without an error. `0` disables recovery and is a real value here, not a typo for the default. |
3949
3949
  | `retry.maxRunResumesPerPrompt` | `10` | Recoveries per prompt, clamped to `[0, 50]`, however well the runs in between went. Cleared **only** by you typing, so a link that dies every other turn still reaches it. `0` disables recovery. |
3950
3950
  | `retry.reconnect` | `"auto"` | The shape of the reconnect ladder. `auto` = the full three tiers in the app and two tiers under `aragon -p` / `aragon exec`; `full` and `bounded` pin it either way; `off` keeps the fast tier and refuses to escalate. `/retry reconnect <mode>` changes it for the running session. |
package/dist/app/App.js CHANGED
@@ -864,11 +864,17 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
864
864
  * its countdown is running, that wake starts a turn which redoes the interrupted
865
865
  * work anyway (and delivers a real signal while doing it); arming here would cancel
866
866
  * the wake (`cancelFollowThrough` -> `teamWakeRef.cancel()`) and spend an
867
- * allowance to do the same thing worse. So this yields, silently, WITHOUT charging.
867
+ * allowance to do the same thing worse. So this yields, WITHOUT charging, and says
868
+ * so only in the log.
868
869
  */
869
870
  const armRunResume = (graceMs, notice) => {
870
871
  if (teamWakeRef.current?.isCounting() === true) {
871
- getLogger().debug('agent', 'run_resume_yield', { reason: 'team_wake_counting' });
872
+ // `warn`, NOT `debug` (`network-error-stuck-task` R-1): the shipped log level is
873
+ // `info` (DEFAULT_LOG_CONFIG), so a debug line here is invisible in exactly the
874
+ // log someone reads after a session froze - and this is a recovery that did NOT
875
+ // happen. The wake redoes the same turn, so nothing is lost; if the wake then
876
+ // fails too, this line is the only evidence of which recovery gave way.
877
+ getLogger().warn('agent', 'run_resume_yield', { reason: 'team_wake_counting' });
872
878
  return;
873
879
  }
874
880
  dispatch({ type: 'notice', level: 'info', text: notice });
@@ -896,7 +902,13 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
896
902
  || controller.isCompactionBusy?.() || controller.isRunning()
897
903
  || interactionPhase.current !== 'idle'
898
904
  || controller.areModelSettingsBlocked?.() === true) {
899
- getLogger().debug('agent', 'run_resume_skipped', { reason: 'host_busy' });
905
+ // ANNOUNCED, THEN DROPPED: the notice promising "retrying automatically" is
906
+ // already in the transcript, so `warn` is the floor here, not `debug`
907
+ // (`network-error-stuck-task` R-1). Not every cause leaves the run dead - a
908
+ // compaction that finishes while a message is queued drains it through
909
+ // `drainCompactionQueue` -> `continue()`, which is why this prints no notice -
910
+ // but none of them is worth hiding at the default `info` log level.
911
+ getLogger().warn('agent', 'run_resume_skipped', { reason: 'host_busy' });
900
912
  return;
901
913
  }
902
914
  const preflight = controller.preflight();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon-agent/cli",
3
- "version": "0.6.75",
3
+ "version": "0.6.76",
4
4
  "description": "AragonAgent CLI — a Claude-Code / Codex-style interactive terminal UI (TUI) on top of the @aragon-agent/core engine. Installable and runnable via npm / npx.",
5
5
  "license": "MIT",
6
6
  "author": "AragonAgent contributors",
@@ -58,8 +58,8 @@
58
58
  "prepublishOnly": "npm run build"
59
59
  },
60
60
  "dependencies": {
61
- "@aragon-agent/core": "^0.2.87",
62
- "@aragon-agent/tui": "0.0.28",
61
+ "@aragon-agent/core": "^0.2.88",
62
+ "@aragon-agent/tui": "0.0.29",
63
63
  "commander": "^12.1.0",
64
64
  "dotenv": "^16.6.1",
65
65
  "env-paths": "^3.0.0",