@linzumi/cli 1.0.304 → 1.0.306

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/README.md CHANGED
@@ -54,31 +54,56 @@ the work side runs locally. This npm package is the local half.
54
54
 
55
55
  ## What's new in this release
56
56
 
57
- - Messages waiting on a thread whose startup restoration ran out of time are
58
- no longer failed. Before, if restoring a thread after a restart or
59
- auto-update took longer than its work window, the messages queued behind it
60
- failed visibly, so a timer decided their outcome. Now a window that only ran out
61
- of time keeps those messages waiting. One error-level alarm fires after 30
62
- seconds of waiting. The next message, or the replay a reconnect delivers,
63
- retries the restoration, and the waiting messages run once it succeeds. Only
64
- a refusal backed by clock-free evidence fails a waiting message.
65
- - A late failure from an older connection or restoration attempt no longer
66
- marks a thread that a newer one has already taken over as refused.
67
-
68
- This also keeps every fix from 1.0.303 and earlier. That includes the
69
- re-drive that 1.0.303 already shipped but did not describe in its notes: a new
70
- message to a thread whose startup restoration was refused retries the
71
- restoration, so the message runs instead of only failing visibly. Each new
72
- message or reconnect triggers at most one retry, and after three consecutive
73
- retries refused on durable evidence the thread reports a terminal failure. Also kept:
74
- held reconnect and follow-up controls always reaching a terminal outcome, the
75
- startup credential rebind, closed-window reporting, update-drain admissions,
76
- readiness without waiting for the journal inventory, credential-bound runner
77
- sockets, startup outcome custody, and the earlier reconnect, startup-timeout,
78
- retained-answer recovery and journal-cleanup improvements. Recovery still
79
- preserves uncertain outcomes and conflicting durable evidence. Update
80
- Commander to use these changes; publishing the package does not restart an
81
- already running Commander.
57
+ - A recovery restart no longer leaves Commander stuck draining. Before, when
58
+ recovering a broken execution leg, Commander could signal itself to restart
59
+ and then drain forever without starting a replacement, so new jobs and
60
+ reconnects to dormant threads were refused until someone restarted it by
61
+ hand (one production runner drained for ten hours). Now the supervisor
62
+ starts the replacement, including a same-version one, and the running
63
+ Commander keeps serving until the new one proves it is ready. Busy threads
64
+ stay with their current owner. If the replacement fails to start or take
65
+ over, Commander keeps admitting work and reports the failure with a reason.
66
+ - Stop now works on a thread whose finished turn still holds its agent
67
+ process after a lost acknowledgment. Before, Stop could be refused and the
68
+ messages queued behind that turn stayed stranded. Now Commander recovers
69
+ that exact owner, keeps the completed answer and the queued messages, and
70
+ pauses the thread; the pause is server-owned and survives reconnects and
71
+ restarts.
72
+ - Stop on a running turn is now bounded: if the agent does not stop,
73
+ Commander retires exactly that worker process and confirms it exited.
74
+ Replacement workers are never touched.
75
+ - A finished answer whose acknowledgment was lost after a reconnect is no
76
+ longer left as unfinished work that blocks the next message. Commander now
77
+ records the exact lease and frame the answer was published under and
78
+ replays it with that identity across reconnects and restarts.
79
+ - New assistant tools for permission requests: the assistant can list your
80
+ pending permission requests across jobs, answer one on your explicit
81
+ instruction, and change a job's permission mode.
82
+
83
+ This also keeps every fix from 1.0.305 and earlier: the "Still restoring" and
84
+ "Needs attention" rows (with Retry) for messages waiting on a startup
85
+ restoration, steering-aware recovery, keeping messages waiting instead of
86
+ failing them when a restoration only ran out of time, the bounded re-drive of
87
+ refused restorations, ignoring late failures from superseded connections or
88
+ restoration attempts, held reconnect and follow-up controls always reaching a
89
+ terminal outcome, the startup credential rebind, closed-window reporting,
90
+ update-drain admissions, readiness without waiting for the journal inventory,
91
+ credential-bound runner sockets, startup outcome custody, and the earlier
92
+ reconnect, startup-timeout, retained-answer recovery and journal-cleanup
93
+ improvements. Recovery still preserves uncertain outcomes and conflicting
94
+ durable evidence. Update Commander to use these changes; publishing the
95
+ package does not restart an already running Commander. The recovery-restart
96
+ repair runs inside the supervisor process, which does not replace its own code
97
+ during a live handoff. After an automatic update to this release, a supervisor
98
+ still running older code refuses a recovery restart explicitly instead of
99
+ draining forever. The repair itself takes effect only when the supervisor
100
+ process runs this release: auto-update never replaces the supervisor's own code, so
101
+ after updating, stop the running Commander and start it again from a CLI on this
102
+ release, for example `npx -y @linzumi/cli@latest connect --supervise --workspace
103
+ your-workspace`. Upgrade a global install first with
104
+ `npm i -g @linzumi/cli@latest`; a service that launches an older install path
105
+ keeps the older supervisor. The permission-request tools need a Linzumi server that includes
106
+ #11900.
82
107
 
83
108
  ## Manual Runner Setup
84
109
 
@@ -87,7 +112,7 @@ Install the CLI or run it with `npx`:
87
112
  ```bash
88
113
  npm install -g @linzumi/cli@latest
89
114
  npx -y @linzumi/cli@latest connect --supervise --workspace your-workspace
90
- npx -y @linzumi/cli@1.0.304 --version
115
+ npx -y @linzumi/cli@1.0.306 --version
91
116
  linzumi --version
92
117
  ```
93
118