Repository navigation
samagotchi 0.61.0
Added
- Hooks and plugins can attach refs to the answer:
event[:refs].call(match:, kind:, target:, label:, actions:)on
:after_turn, stored asdisplay_refson the answer (display only: the model never sees them). The web pairs them
with the answer's links and text: their actions join the ref's menu, live and after a reload. Caps: 200 refs and
256 KiB per answer; a refused ref is logged asrefs_rejected. See
docs/hooks.md.
Changed
- A ref's values are capped (
Ref,RefAction): a label at most 200 characters, at most 8 actions, a target id
200 and a path 4,096 characters; an action's id 64 and label 100. An action URL with userinfo
(https://user:pass@host/) is refused, and the web page refuses one too.
Fixed
- A worker that gets TERM, HUP or INT (
chi sessions stop, a closed terminal, a process-tree teardown) stops its
running turn as a Stop with reasonsignaland saves it, then exits; before, the turn and its prompt were lost.
A stopped session's worker now saves the turn it kept too. - A worker killed mid-turn (SIGKILL, a crash) no longer loses the whole turn: the worker writes the turn so far to
the session file with aninterrupted_turnmark (the prompt as the turn starts, then its iteration boundaries,
at most every 10 s), so it loses only what came after its last written boundary. The next worker (or a
--no-sharedREPL resuming the session) ends that turn as canceled with a note the model reads
(cancelled (worker-stopped)), so the session is idle again. - Workers outlive whoever spawned them: a worker leaves the spawner's process tree (forked again,
setsid,
reparented to init), so a tool tearing down a backgroundchi send --wait, or a closing terminal, no longer
kills it mid-turn (run #43 lost a 169-step turn that way). - A card shown during a turn by a worker that has since exited comes back read-only: no buttons. A stale check-in
card's Nudge steered the next worker's turn on every click. Cards shown between turns (github-pr's offer, btw,
coordinator) keep their buttons. - check-in nudges once per check-in: repeated Nudge clicks (or
/checkin nudge) on the same check-in answer
"check-in: already nudged at N tool calls" instead of steering the turn again. Run #43 got 12 identical nudges. - Web: a ref's
▾sits in room the ref makes on hover, never over the next words.
Update with chi update: the system bundle 0.61.0 and check-in 0.2.4 (nudges once per check-in). Then restart
chi web.