Repository navigation
fix: issues found during the release smoke test - #1464
Conversation
Privacy and safety
- Apply prompt scrubbing on every surface (--plain, ACP, subagents,
compaction), not only the main TUI conversation
- Never cut truncated tool output through a token, so a secret is either
kept whole and scrubbed or dropped, not leaked as a fragment
- Stop the AI SDK looping on unknown tools so maxRepeatedToolCalls applies
- Headless subagent runs are no longer offered ask_user
Runtime
- nanocoder run exits 1 on provider errors and retry-cap stops
- Daemon-triggered runs share the skill tool registry and connect MCP;
MCP is disconnected on daemon stop so the process exits
- Checkpoints no longer snapshot .nanocoder/checkpoints and timeline
- --plain falls back when the saved provider was removed
- Carry promptCaching and maxRetries through provider config loading
- Update check uses the shared version helper and skips unknown versions
TUI
- Split batched control keys so held Backspace / Ctrl+Z work
- Fix caret jumps when fast typing races a late value echo
- Boot summary shows provider/model and drops the (default) marker
- Status row budgets fullscreen padding; hints yield to session names
- Pickers fit short terminals and shrink on resize
- Architect gate lists only files actually changed; no gate when nothing
changed; no "Could not capture file" noise for new files
- Markdown tables keep their last row
- Hide directory-only ignored folders in list_directory and the explorer
- {{args}} receives the raw argument text
- MCP wizard shows hand-written servers by name
- Assorted copy fixes (empty checkpoint, revise footer, empty /resume)
Tests
- Isolate NANOCODER_DATA_DIR in the AVA config so specs never write to a
developer's real sessions and stats
nc-review: comments — 3 nits@will-lamerton — a few things worth a look, none blocking. A 90-file, ~2600-line batch of fixes from a release smoke test (PTY-driven, scripted OpenAI-compatible and Anthropic-format stubs, test MCP, ACP over stdio). Each fix carries its own changeset and most carry a regression test that exercises the new behaviour. The change is justified, well-scoped at the per-fix level, and the design choices (per-client privacy fallback, ref-based one-shot boot identity capture, token-boundary snap before scrubbing, stopWhen on unknown SDK tool calls) match the project's architecture. The supplied diff is truncated at 2500 of 2619 lines; the changes to ⚪ nit · The const bootIdentity = React.useRef<...>(null);
if (!bootIdentity.current && appState.startChat) {
bootIdentity.current = {provider: appState.currentProvider, model: appState.currentModel};
}React allows lazy ref initialisation during render, but conditional writes gated on app state are unusual and a future reader will have to convince themselves the one-shot semantics are intentional. A one-line comment ('capture once on the first render after start-up resolves the provider/model') would carry the intent and remove the surprise. ⚪ nit · The PR deletes the three // Keep legacy formatter coverage because /status and external callers share
// the branch marker semantics.After the deletion, this comment sits above empty space and the formatter it references is gone from ⚪ nit · The drain scheduler in const drainKeypresses = () => {
const next = pendingKeypresses.shift();
if (next === undefined) { drainScheduled = false; return; }
filtered.write(next);
setImmediate(drainKeypresses);
};The justification in the code is that Ink's 🔴 blocking · 🟠 a reviewer would ask for a change · ⚪ optional Automated code review — correctness, security, design, tests, plus duplicates and scope. A human still decides; this is not a substitute for review and is not exhaustive. The required status checks separately cover lint, formatting, types, unused dependencies, the test suite and the build. This bot never merges. Maintainers can rerun with |
Fixes found while working through
RELEASE-SMOKE-TEST.mdagainst the built CLI (driven through a real pty with a scripted OpenAI-compatible stub, an Anthropic-format stub, a test MCP server, ACP over stdio, and Linux containers). Each fix has a changeset and, where it could be exercised, a spec that fails without it.Privacy and safety
--plain, ACP / VS Code, subagents, compaction), not only the main TUI chat. Secrets from.envand command output were reaching the provider with scrubbing on.maxRepeatedToolCallsapplies (previously up to 10 silent steps per request).ask_user.Runtime
nanocoder runexits 1 on provider errors and retry-cap stops (it always exited 0)..nanocoder/checkpointsand the timeline (each checkpoint was copying all earlier ones).--plainfalls back when the saved provider was removed;promptCachingandmaxRetriesprovider settings are carried through.TUI
{{args}}raw text, MCP wizard server names, and several copy fixes.Tests
NANOCODER_DATA_DIRso specs never write to a developer's real sessions and stats.Not included:
RELEASE-SMOKE-TEST.mdprogress.🤖 Generated with Claude Code