Repository navigation
Motifcode 0.4.3 fixes clean interactive shutdown and prevents resumable work from being mistaken for a loop. Both changes are included in the published CLI bundle.
Fixes
- Clean terminal shutdown — Ctrl-D at an empty prompt and a second Ctrl-C no longer redraw the input box or shortcut hint after terminal cleanup. Ctrl-D still deletes forward in a nonempty draft, and Ctrl-C still interrupts an active run. Thanks to @nimbly1 for #43, resolving #32; maintainer validation adds a focused delete-forward regression.
- Allow repeated work that makes progress — LoopGuard now requires both identical calls and identical output to count a repetition. A resumable command with changing output can continue; unchanged call/output loops still stop on the third turn, and the existing output-stall rule is preserved. Implemented in #47 by @TaewoooPark. Snapshot format is unchanged. Changing incidental output, such as timestamps, can also avoid repetition detection; the turn limit still bounds the session.
Validation
The fixes were reproduced against their base revisions and checked on this Mac with built CLI artifacts and isolated local fixtures. A visible xterm.js terminal connected to a real macOS PTY checked shutdown and shell handoff. A real CLI process reproduced the progress-loop failure at the third call on the base revision and completed five calls on the patched revision; an unchanged-output control still stopped at three calls.
Local validation covers frozen dependency install, typecheck, build, 1,676 tests across 97 files (two local workers), and tool-schema lint. CI covers Node 20/22, Linux ARM64, Python, and generated goldens. These checks use local HTTP/SSE fixtures; no live model inference or six-hour micromagnetics benchmark was repeated for this release.
Upgrade
npm install -g motifcode@0.4.3
motif version
# or: motifcode versionRequires Node.js 20.3 or later. Published through the existing GitHub Actions trusted-publishing workflow with npm provenance.