@aragon-agent/cli 0.6.73 → 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. |
@@ -338,7 +338,18 @@ export function reloadModelSettings(controller) {
338
338
  resolved.colorLevel = live.colorLevel;
339
339
  if (live.unicode !== undefined)
340
340
  resolved.unicode = live.unicode;
341
- resolved.reducedMotion ||= !live.color;
341
+ // THE SAME PRIORITY AS `load.ts` (tui-footer-spinner-frozen-reduced-motion A'):
342
+ // the inference this replay exists for - `loadConfig` cannot see the startup
343
+ // `--no-color`, so `live.color` has to supply it - must still not overrule a
344
+ // value the FILE states. Unconditional `||=` meant one reload froze every
345
+ // animation again in a monochrome session even though the file said `false`.
346
+ //
347
+ // `disk.parsed` IS THE FILE; `disk.config` is not. The latter has already been
348
+ // normalized through every default, so asking IT whether the user chose this
349
+ // key answers "not undefined" for a file that never mentioned it - which would
350
+ // silently switch off the inference this line exists to apply.
351
+ if (disk.parsed?.reducedMotion === undefined)
352
+ resolved.reducedMotion ||= !live.color;
342
353
  // THE SESSION KIT SURVIVES A RELOAD (D-6): the three connections it holds
343
354
  // must come from the kit, not from the file we just re-read, and the
344
355
  // projection has to be recomputed so the live config stays equivalent to
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();
@@ -4187,6 +4199,12 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
4187
4199
  // session value and never the config, so seeding from `cfg` would show
4188
4200
  // the launch value and an untouched save would quietly flip it back.
4189
4201
  developerMode: state.developerMode ? 'on' : 'off',
4202
+ // FROM `cfg`, like `liveToolOutput`: `reducedMotion` has no chord, so the
4203
+ // config IS the live value. BOTH HALVES of the row (seeded here, read back
4204
+ // in `readDirtySettings`): the sibling comments above record what omitting
4205
+ // either one costs - this is the switch every spinner in the TUI hangs on
4206
+ // (tui-footer-spinner-frozen-reduced-motion A').
4207
+ reducedMotion: reducedMotion ? 'on' : 'off',
4190
4208
  // `auto`, not an empty string: an empty field reads as "unset", which
4191
4209
  // is indistinguishable from AUTO and is not a state this can be in.
4192
4210
  maxTokens: cfg.maxTokens ? String(cfg.maxTokens) : 'auto',
@@ -4394,6 +4412,10 @@ export function App({ controller, version, initialOverlay, initialPrompt, confir
4394
4412
  // running" are both true at once now, and only the pair looks like a fault.
4395
4413
  ...(state.team?.active === true ? { teamLive: state.team.dispatchId } : {}),
4396
4414
  interruptPhase: interruptGesture.current.phase,
4415
+ // WHY NOTHING IN THE FOOTER MOVES, as a FACT rather than as a bug report
4416
+ // (tui-footer-spinner-frozen-reduced-motion A'): the row says so only while the
4417
+ // switch is on, and ABSENT keeps every pre-existing frame byte-identical.
4418
+ ...(reducedMotion ? { motionOff: true } : {}),
4397
4419
  updateAvailable: !!updateSnapshot && shouldRenderUpdateLine(updateSnapshot) } });
4398
4420
  const composer = (_jsx(Composer, { deleteDisambiguated: terminal?.deleteDisambiguated ?? false, onCompletionContextChange: setCompletion, cols: frameBudget.composerCols, terminalRows: rows, statusExpanded: statusExpanded, onInteraction: returnToComposer, reducedMotion: cfg.reducedMotion ?? false, onEscape: handleComposerEscape, onEscapeDismiss: cancelConfirmation, isActive: overlay === null && !tooSmall, running: state.status === 'running', history: promptHistory, commands: commandOptions, cwd: controller.getCwd(), showHint: false, submitCount: cfg.submitCount, hintsEnabled: cfg.hints, agentMode: state.agentMode, posture: state.posture,
4399
4421
  // ARMED AND IN EFFECT, never `armed` alone: a paused session keeps its plan / govern
package/dist/cli.js CHANGED
@@ -1441,6 +1441,13 @@ const CONFIG_SET_KEYS = new Set([
1441
1441
  // display-only developer mode. Listed here AND cased in the switch below, for
1442
1442
  // the reason `showThinking` records.
1443
1443
  'developerMode',
1444
+ // tui-footer-spinner-frozen-reduced-motion A'. `config get` has always read this
1445
+ // key; until now nothing could WRITE it, so a user whose file said `true` could
1446
+ // not turn the animations back on from anywhere in the TUI or this command -
1447
+ // the one-way switch the diagnosis measured (`config set` exit 2, file mtime
1448
+ // unchanged). Listed here AND given its own branch in `runConfigSetValue`,
1449
+ // because that branch must echo the STORED value rather than the typed one.
1450
+ 'reducedMotion',
1444
1451
  // MEMBERSHIP HERE ONLY DECIDES THAT THE KEY IS NOT REJECTED. The `switch`
1445
1452
  // below is what builds the patch, and a key present here but absent there
1446
1453
  // falls through every case, writes nothing, and still prints
@@ -1607,6 +1614,17 @@ function runConfigSetValue(key, value) {
1607
1614
  runConfigSetMaxTokens(value);
1608
1615
  return;
1609
1616
  }
1617
+ // ITS OWN BRANCH FOR THE ECHO, not for the parse: like every other boolean key
1618
+ // this one coerces `true`/`1` to true and EVERYTHING ELSE to false ("abc" is
1619
+ // not a typo for a number here, it is an answer of `off`). What the generic tail
1620
+ // cannot do is print the value that was STORED - it echoes the typed string,
1621
+ // which would report `Set reducedMotion = yes` for a file that now says `false`
1622
+ // (the `maxTokens` / `contextWindow` reason, recorded above those branches).
1623
+ if (key === 'reducedMotion') {
1624
+ const merged = updatePersistedConfig({ reducedMotion: value === 'true' || value === '1' });
1625
+ process.stdout.write(`Set ${key} = ${String(merged.reducedMotion)}\n`);
1626
+ return;
1627
+ }
1610
1628
  // The second tri-state key, and it needs its own branch for the same reason.
1611
1629
  if (key === 'contextWindow') {
1612
1630
  runConfigSetContextWindow(value);
@@ -703,9 +703,17 @@ export function loadConfig(flags = {}, options = {}) {
703
703
  ? caps.colorLevel !== 0
704
704
  : flags.color !== undefined ? flags.color : !process.env.NO_COLOR;
705
705
  // `--no-color` implies calmer chrome; env / file may also opt in explicitly.
706
+ //
707
+ // AN EXPLICIT FILE VALUE BEATS THE INFERENCE, which is the whole of the
708
+ // parentheses below (tui-footer-spinner-frozen-reduced-motion A'). The `||`
709
+ // chain this replaces read as "file first" but resolved as "inference last,
710
+ // therefore loudest": a user who wrote `"reducedMotion": false` saw every
711
+ // animation freeze again the moment a session had no colour, while
712
+ // `config get` kept answering `false` - the exact "I changed it and nothing
713
+ // happened" shape this key's diagnosis is about. An ABSENT key still falls
714
+ // back to the inference, so a monochrome session that never chose stays calm.
706
715
  const reducedMotion = envFlagTrue(process.env.ARAGON_REDUCED_MOTION) ||
707
- (file.reducedMotion ?? DEFAULT_CONFIG.reducedMotion) ||
708
- !color;
716
+ (file.reducedMotion ?? !color);
709
717
  // Detect terminal capabilities once; force monochrome when color is disabled.
710
718
  const colorLevel = color ? caps.colorLevel : 0;
711
719
  // No flag and no env var: a privacy switch you set once, not a per-run knob.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aragon-agent/cli",
3
- "version": "0.6.73",
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.85",
62
- "@aragon-agent/tui": "0.0.26",
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",