Repository navigation
v20261031
New Features
- Prompt presets:
--preset <name|path>appends a preset to the system prompt, looked up aspresets/<name>.mdin the project and then the agent directory, or read from a path - Failure digest: a failed
bashcall ends with a[failures]block carrying the lines each toolchain prints for its failures, and/diagnosewrites the diagnostic bundle on demand (issue #336) /kill-bashbg: stops backgroundbash_bgjobs from the keyboard, one job or all (issue #381)- LSP navigation:
lsp_hover,lsp_definition,lsp_queryandlsp_edit, plus diagnostics beforereadand afteredit(issue #333) - Remember aging:
/rememberentries carry(kept YYYY-MM-DD),--listshows ages,/forgetdeletes by number and--pruneoffers stale entries (issue #214) - Markdown export:
/export <path>.mdand--exportwrite Markdown next to HTML, and each flavor carries only the formats it ships (issue #184)
Breaking Changes
--modeis now--output(text,json,rpc): the flag already meant the output interface, and the run-mode settings wanted the same word, so a script passing--mode jsonmust pass--output json.--modeis no longer recognized, and the CLI'sModetype is nowOutputModepi-lsp-mini'slsp_renameandlsp_deleteare now onelsp_edittool withkind: "rename"(plusnewName) orkind: "delete". They are the same lifecycle — destructive, workspace-wide, sequential, then a server rescan — and keeping them apart meant two copies of the dry-run, outside-project-skip, and post-change-check logic that had to be kept in sync by comment.applynow defaults tofalsefor both branches, whererenameused to default totrue: one tool cannot keep two defaults, and a workspace edit a model did not ask to be written is not recoverable from a tool message. A rename therefore costs one extra call (preview, thenapply=true) and no longer writes anything by accident
Added
/kill-bashbgstops backgroundbash_bgjobs from the keyboard: no argument stops every running job,<jobId>stops one,listshows them without stopping anything, and job ids complete as arguments. The jobs are the onespi-smart-flowstarts, so this is the user's side of the tool the agent already drives; the tool is what starts a dev server, and the command is what stops it without going back through the model. A stop that leaves a process alive reports which job survived instead of claiming success (issue #381)pi-lsp-minigainedlsp_hoverandlsp_definition, the two LSP requests that save the most context per call: a signature or a doc comment is one short answer instead of a whole file read, and a definition is afile:lineinstead of a grep. Both takeline/characteror asymbolname that the server's own document symbols are asked to locate, so a model that knows the name does not have to read the file to find the column; a server withouttextDocument/documentSymbolfalls back to the file text, and hover output is capped at 1600 characters so a 4k doc comment does not undo the saving.readnow also carries the errors a file already has (readDiagnosticsin~/.nanopi/agent/lsp.json, on by default, errors only, 4s budget): the model learns a file was broken before it started editing it instead of after, and nothing is reported when the file is clean, no server matches, or the publish is not newer than thedidOpenfor that read (issue #333)- Session export now covers Markdown next to HTML, and the build flavors split it the way the SKU ladder does:
fullwrites MD / HTML,basewrites MD only,minimalwrites nothing./export <path>picks the format from the extension (.md,.html,.jsonl; HTML stays the default),--exportdoes the same for a session file,--export-formatoverrides it, and RPC gainsexport_sessionwith aformatfield. Markdown keeps tool calls and tool results so the transcript is readable on its own. There is no PDF export: the HTML export document is the printable one, and its template now reveals collapsed tool output, thinking and compaction detail when printed (and hides the interaction bar), so a browser's Print > Save as PDF produces the paper copy. Asking for a PDF says exactly that instead of writing HTML under a.pdfname. A flavor that drops a format fails with "not included in this build" instead of writing an empty file (issue #184, issue #187) nanopi --export <session> <output>.jsonlnow writes the file it names. It used to answer with the input session path and leave the output unwritten, so the one format the docs call a copy was the one that produced no copy; without a destination the JSONL export now asks for one instead of overwriting the session it readspi-lsp-minican now report a language server's diagnostics for the content aneditjust wrote, opt-in through"editDiagnostics": { "enabled": true }in~/.nanopi/agent/lsp.json(debounceMs,timeoutMs,errorsOnly,maxDiagnostics). Publishing is revision-stamped, so the pre-edit snapshot a server sends on its own is never reported as the outcome of the edit, and no matching server, crash, or timeout leaves the edit result untouched.editruns far more often thanwrite, which is why a language server on that path has to be a choiceNANOPI_DEBUG=1now also writes a diagnostic bundle to<agent dir>/diagnostics/, once when an interactive session starts and once when it ends, without asking: the bundle is only useful when it was already on disk when the session went wrong, and the directory is printed on exit. Each bundle holdsdiagnostics.json(environment, model and provider with credentials redacted, loaded modules, settings),report.json(failed assistant turns and recorded crashes), the session branch assession.jsonl, and the tail ofnanopi-debug.log, beside abundle.zipwith the same files. Nothing is uploaded; the loose files stay readable without unzipping, and the transcript is only as private as the agent dir. This is the local half of the/bugflow restored without the command (issue #211)- Startup memory is now measured without asking anyone to turn a flag on: interactive mode appends
mem startup(before the TUI mounts) andmem first-render(at first usable state) tonanopi-debug.login the agent dir even withNANOPI_DEBUGoff, so the delta between the two lines is what managed tools, grammar loading, and session setup cost.pnpm run profile:tuiprints the same figure asstartup rssandMETRIC startup_rss_mib, next tostartup_time_ms /statusnow reports process memory: RSS, peak RSS, heap, and external/arrayBuffers.NANOPI_DEBUG=1turns on periodic sampling (everyNANOPI_DEBUG_INTERVAL_MS, default 5000) that appends the same line tonanopi-debug.logunder the agent dir, so startup cost and per-turn growth can be measured instead of guessed — the log is a file because interactive mode repaints over anything written to stderr (issue #165)- Release tags now also publish a container image and an npm package. GHCR gets
ghcr.io/nekosekaimoe/nanopi(node:24-bookworm-slim+ the release bundle +git/ripgrep, non-root user,lateston semver tags) andnpm.pkg.github.comgets@nekosekaimoe/nanopi, the same CLI under the scope GitHub Packages requires (GitHub only accepts publisher-scoped names). Both run inbuild-binaries.ymlbefore the release goes public, so a failed publish cannot leave a public release that nothing can install. The npm route never carried provenance;scripts/publish.mjskeeps--provenancefor a return to npmjs (issue #278) - Added the
pi-memorymodule and its/remembercommand: a session's durable conclusions are distilled into the project's context file (AGENTS.mdand its siblings) as one-line bullets. The extraction is deliberately stingy — the prompt names what the file already says, the reply is re-checked locally, and narration of one session, secrets, and anything the diff already states are rejected — so a rejected write costs nothing and an accepted one has to stay true after the session. A bullet retires its predecessor only inside a## Summarysection, where the content describes current state;/remember <text>appends one line directly. Writes preserve every line they do not own, and the file the loader already reads puts the entry in front of the next session with no new format (#158) /rememberentries now carry an age, and the list they live in can shrink. Every bulletpi-memorywrites ends with(kept YYYY-MM-DD), and each write restamps the other bullets in the same section — ignoring a candidate is a statement that the section is still true, so the stamp tracks "last confirmed", not "last edited", which no per-line annotation can express once the annotation is itself deleted./remember --listprints every entry with its age,/forget <numbers>deletes what that list numbers, and/remember --pruneoffers entries whose backticked path no longer exists or that nobody has confirmed for 180 days. Extraction also asks the model which existing entries this session proved wrong and offers those for deletion in the same confirmation step, which is the only reader that can tell "the file moved" from "the rule changed". Writes past 80 entries say so instead of silently growing. An unstamped bullet is dated bygit blame, so a file written before stamps existed still ages; a repository without git simply reports no age (#214)- Bumped the export template's vendored
highlight.jsto 11.12.0 (thehighlight.min.jscapture is now the v11 common set, 36 grammars) andmarkedto 18.1.2, matching themarkedthe package already depends on.highlight.jsitself goes 10.7.3 → 11.12.0, which drops three grammars from the on-demand table:c-like(usec,cpp),htmlbars(usehandlebars) andsql_more(usesql). The subpath specifiers lose their.jssuffix because v11's export map only knows the extensionless form, andhighlight.js's own types now describe the core module instead of a hand-written declaration (issue #307) - Added 106 highlight.js grammars to the eager set (22 → 128): markup and config formats (
xml,css,scss,less,yaml,ini,markdown,dockerfile,makefile,nginx,properties), query and data languages (sql,pgsql,n1ql,xquery), shell dialects (powershell,awk,shell), the mainstream ecosystem (objectivec,erlang,elixir,haskell,clojure,fsharp,ocaml,r,julia,fortran,lisp,scheme,vbnet,coffeescript,elm,crystal,nim,haxe,d,vala,zephir), hardware and assembly (verilog,vhdl,armasm,x86asm,llvm), anddiff,http,protobuf,cmake,tcl,twig,qml,glsl,latex,reasonml. A language without a grammar still renders as plain text, never as an error. The single-filefullbuild stays under 10 MiB because the four largest grammars stay out along withREADME.md/CHANGELOG.mdand three unreferenced doc screenshots (issue #149) --preset <name|path>appends a prompt preset to<addendum>, ahead of--append-system-prompt, so a preset carries the way of working and an append still overrides it. A bare name is looked up aspresets/<name>.mdin the project directory and then the agent directory, and a path is read directly; a name that matches nothing is skipped with a warning instead of being sent as the prompt text- A failed
bashcall now ends with a[failures]block: the lines vitest/jest, pytest, go test, cargo, meson/ctest, TAP, tsc (all three shapes), gcc/clang, ninja, make and autotools configure print for their failures are kept verbatim in output order, after the truncation notice and status line, while the log itself stays instructuredContent.output. A framework naming its failures suppresses the compile errors above it, and a passing command gets nothing;structuredContent.failurescarries the same list for codemode and JSON callers./diagnosewrites the bundleNANOPI_DEBUG=1writes at startup and exit, on demand, withphase: "manual"(issue #336) - The webui composer accepts document attachments next to images, and the settings page now switches the run mode. Text,
docxandxlsxare extracted in the browser (12 MiB per file, 60k characters each, 8 images) and appended to the prompt as one section, so a spec can be handed over without putting it in the repo
Changed
-
pi-fake-opencodenow shapes every protocol the Zen gate inspects, not just chat completions: anopenai-responsesbody gets the CLI prompt ininstructions, ananthropic-messagesbody in the top-levelsystem(string or block list) withinput_schematools, and agoogle-generative-aibody inconfig.systemInstructionwith function declarations — each with the official tool set appended and the request's own tool references renamed to match, which the previous version left pointing at names it had just replaced. The lane is picked from the base URL the way opencode2api picks it (/zenis the 1.x generation withbashtools and the bareopencode/<v>User-Agent;/inferenceand/zen/goare the 2.x CLI withopencode/latest/<v>/cliandshell), a chat body is no longer stripped oftool_choiceand now setsstream_options.include_usage, and a body that carries no explicit system message (the responses path sendsinstructionsinstead) is shaped too instead of being skipped (issue #393) -
pi-fake-opencodenow replays the shape the Zen free-tier gate actually validates, re-derived from opencode2api's captures of the official CLI: the identity headers (User-Agentmoved to the 2.x composite form,x-opencode-requestis onemsg_id per user turn instead of one per HTTP call,x-opencode-projectis the repo root commit instead of the literalglobal, since the free tier ledges quota per project and egress), and the body — the CLI system prompt with its<env>block ahead of nanopi's own prompt, nanopi's tools renamed to opaqueclint_<hash>wire names with the official tool set appended,stream: true,max_completion_tokens. Free-tier models can call tools again: the old version had to strip them because the gate compares the whole tool list, so the model now drives the session through the official schemas (issue #387) -
The footer's mode badges keep their hue on every terminal:
modeYolo,modePlan,modeMinimal, and theshelllabel'sbashModeare fixed in the system theme instead of borrowingerror/success/warning, whose hues follow the terminal palette's slots.minimalused to takewarning, i.e. whatever the palette painted index 3 — on a violet-slot palette the "blue" badge came out violet, and it shared that color withshell. Lightness still comes from the theme's contrast rules, so each badge is as readable as the background allows -
install.jsinstalls into~/.local/binby default instead of writing the bundle to the current directory, and it writes ananopishim (nanopi.cmdon Windows) next to the bundle, sonanopiruns from any shell once~/.local/binis onPATH— the installer prints a note when it is not.--prefixstill picks another directory.--outkeeps the old behavior for scripted use: exactly one file, no shim, no directory. Installing only<prefix>/bin/nanopi.jswas not reachable from a shell, and a bundle left in the current directory was not either (#236) -
The tag half of the GitHub-CNB mirroring moved out of two duplicated inline bash blocks into
scripts/mirror-tags.mjs, and sharesmirror-main.mjs's retry split: transport failures retry, the "exists on the other side, points at a different commit" refusal does not, so a diverged tag fails on the first attempt instead of after two timeouts (CNB issue #229) -
ctx.ui.setWidgetkeys are no longer the only way two modules can agree on a widget.ctx.ui.channel(channel)names a channel both sides import: the producer writes typed content, the last registered transform decides what is drawn, and the host owns the widget key.pi-subagent-miniandpi-uinow share oneSUBAGENT_CHANNELconstant instead of a"subagent-async"string duplicated at both ends, andpi-uino longer monkey-patchessetWidgetto see the job rows -
New
ctx.getAgentDir()is the user's agent directory as the host resolves it (NANOPI_CODING_AGENT_DIR, tilde expansion, a renamed config dir).mcp-litederived it fromhomedir()and ignored the override, so a moved config was read from two different places depending on which module asked;websearch,pi-smart-flow, andpi-subagent-mininow use the API too -
New
ctx.resolveHostEntry()answers "the node invocation running this installation's entry point", which is what a module spawning a child session actually needs.pi-subagent-minino longer derives it fromgetPackageDir()+package.json.bin, a path that pointed at the asset cache in a single-file build -
basenow ships a curated model catalog instead of all 46 provider catalogs: the newproviderSets.corelists openai, google, anthropic, glm/z.ai and qwen (12 catalog ids), which leaves ~700 KiB of model data out of the binary. Any other vendor still works through amodels.jsonentry, andfullkeeps every catalog.basekeeps the HTML export templates (--export,/export,/share) but not the browser UI, sonanopi webuithere reports the component as not included instead of shipping a Next build -
Single-file builds no longer embed
README.mdandCHANGELOG.md. The artifact documents itself through the embeddeddocs/tree, and nothing at runtime opens either file (issue #149) -
A single-file flavor without an asset component (
minimal: no docs, examples, webui or export templates) embeds no assets at all instead of a lonepackage.json, so it no longer extracts a cache directory or overridesNANOPI_PACKAGE_DIR -
The in-app bug reporter is gone.
/bugproduced a zip archive addressed to a Radius gateway that no longer exists, so the command, itscore/bug-report.tscollectors,summarizeForBugReport(), and the startup/bughints are removed; bug reports go to the GitHub tracker (https://github.com/NekoSekaiMoe/nanopi/issues/new?template=bug.yml) instead -
baseandfullshipopenrouter,opencodeandopencode-goagain: the curated catalog had dropped the OpenCode vendors, so the free Zen tier needed a hand-writtenmodels.jsonentry, and both aggregators now sit inproviderSets.core -
bashno longer treats the shell as the way to read a file: its snippet stops describing shell equivalents, and a preference rule namescat,head,tail,sed -n,grep,rg,findandfdas the calls to avoid whenread,grep,findorlscan answer (also:readpoints a long single line atgrepandoffsetinstead ofsed -n) (issue #354) -
The system prompt and tool declarations were trimmed to a 5k-token budget and then again by ~5% of prompt bytes: tool declarations went 4473 -> 4265 tokens and the prompt 1461 -> 1325 in the budget pass, and no capability was removed. Every removed sentence stated a fact its reader already had from the other side, such as a
<tools>snippet repeating the description orread's guideline duplicating the shared preference rule (issue #352) -
pi-rewindandpi-simplifywere re-aligned with upstream: file-level rewind is back onctrl+shift+r(double Esc belongs to the host'sdoubleEscapeAction), the output narrowing that skipped checkpoint rebuilds is gone, andpi-simplifykeeps its git-diff tests (issue #356)
Removed
pi-lsp-minifoldslsp_renameandlsp_deleteinto onelsp_edittool, so the shared destructive-workspace-edit invariants (dry-run, outside-project skip,executionMode: "sequential", post-change rescan) have one owner. Tool count is 5 instead of 6, 3370 characters of serialized schema+text+guidance instead of 3764, ~840 request tokens instead of ~940pi-lsp-minifoldslsp_referencesandlsp_callgraphinto onelsp_querytool (kind: "references"by default,kind: "callgraph"for callers/callees). They are the same question at two granularities on identical position parameters, andcallgraphalready fell back to references on servers without call hierarchy, so the two names made the model pick a tool where it meant to pick a detail. A tool namedkindstill has to say what it does, sopromptSnippetnow carries "find usages ... or trace callers/callees" the way the old tool names did. The description/snippet duplication went with it: "without reading the file" / "without grepping for it" said whatpromptSnippetalready said, so each text now has one job (description = how to call it, snippet = when). Measured: 6 tools instead of 7, 3277 characters of serialized schema+text instead of 3378, ~820 request tokens instead of ~990- The pi-fake-codex
apply_patchtool alias is gone. It was a byte-for-byte clone ofeditunder a Codex name, scoped to the impersonated Responses APIs, and it bought nothing:editalready handles exact replacement, and models reached over the plainopenai-completionsprotocol (which never saw the alias) confused the two names anyway. The module now only does what its name says: Codex identity headers,openai-responsesbody normalization, and the Codex-compatible hook adapter (issue #292)
Fixed
- The pi-ui footer no longer appends its own
shelllabel when themodestatus already carries one: pi-extra replaces its mode badges with that label while the composer is in shell mode, and the footer drew a second one right next to it, so the line readyolo shell shell(issue #364) - The
lsp_tools are prompted againstread, not againstgrep, which is why models kept opening whole files to answer what a symbol's signature was. The declaration said "reach for them before grepping for text a compiler resolves better", while the only rule that named a way to look at code wasread's "use read to examine files"; nothing in the prompt said when a symbol question is not a read question, so the LSP tools were never considered. The shared guidance now leads with the moment to use it (before opening a file to find out what a symbol is or where it comes from) and every tool carries one sentence for the case its own parameters allow —symbolon hover/definition, usages before a rename, diagnostics after an edit. Snippets drop the "without reading the file" framing that made the tools read as an optional shortcut next toread's "Read file contents". Cost is ~45 extra tokens per request: measured in characters, the five tools go from 3804 to 3988 across schema, description, snippet and the rendered<tools>/<rules>sections, becausebuildRulesdedupes the shared rule that all five now attach (issue #340) readrefuses anything that is not a regular file. It calledaccess()and then read whatever the path pointed at, so areadon a shell-made FIFO, on/dev/tty, or on a stale socket blocked insideopen()forever and hung the agent loop with no way out and no diagnostic. Thestatthe tool already took now names what the path is and points atbashfor the cases where the content genuinely matterseditsays so when the file changed on disk since the model last read it.readrecords size and mtime,editcompares them before matching and appendsNote: ... changed on disk after you read it ...to the success message. Advisory only: anoldTextthat still matches is applied, and a successfuleditrefreshes the snapshot so its own write never looks like someone else's change. Ambiguous matches now list the line numbers and the first line of each occurrence (capped at 5) instead of onlyFound 2 occurrences, and a miss lists the 3 closest lines by shared identifier tokens, soreturnor}cannot crowd out the line that actually resembles theoldText- The chat row a failed run leaves behind no longer repeats the error: it says
Run failed. /retry replays it.(wasRun failed: <error>. /retry replays it.). The failed assistant message already ends with the same text, and a tool call records its own error, so a multi-line provider error such as a 402 was printed twice. The attempt count stays, and a cancelled run now readsRun was aborted.instead ofRun failed(issue #235) - A
models.jsonwritten for a fuller flavor no longer takes a whole provider down. A model whoseapithe build does not carry (anopenai-responsesentry underminimal, which only shipsopenai-completions) is now skipped with a startup warning that names the provider, the model, the api, and the apis the build does carry; the provider keeps the models it can serve. A provider-levelapioutside the build's set remains an error, since every model of that provider inherits it (issue #205) - The webui run-mode switch now works.
/chatconsumes theapproval_modefield it was sent instead of dropping it, a webui session no longer replaysdefaultModeover the mode picked on the settings page (the SPA creates a session on the first send, which wiped it), andGET /mode/streampushes every engine change so the settings page highlight follows a mode the turn switched by itself. Beyond the endpoints, the extra extension now re-derives the active tool set on every mode change for every frontend: before, only the TUI badge listened, and a webui switch tominimalleft every tool active (issue #194) editnow says when the text it matched came from a stale view of the file:readsnapshots the file's size and mtime,editcompares before writing, and a change in between is reported as a note in the result. It never blocks the edit, because text that still matches is still the user's intenteditfailures are now actionable instead of "not found" / "found 2 occurrences": duplicates list their file lines with content, and a miss lists the three closest lines ranked by shared identifiers, so the model converges in one retry instead of guessing at more context- Fixed a build flavor that excludes the
module/extracomponent not actually dropping@nanopi/pi-extrafrom the bundle:moduleBundlescould only name a path inside the coding-agent src tree, so its entry was silently skipped and the code stayed in. The entry now names the package specifier and the named exports its stub has to keep - Fixed
pi-subagent-minilosing a finished child's report. The report was sent as a steering message, butisStreamingis already false while the run is settling, so the delivery fell through to a secondagent.prompt()that rejected on the run in flight and was caught and dropped.AgentSessionnow exposesdeliverCustomMessage(), which starts a turn only when the session is idle and reports whether the message was started, queued, or left pending; the tool no longer starts a turn nobody can read - Fixed the webui showing nothing for a report that arrived through the busy branch:
/chatanswered 409 while a turn ran, so a background delivery had no reader./chatacceptsqueue: true, parks the prompt and runs it when the running turn settles, and the webui polls/chat/activeto reload the transcript a background turn wrote (#162) - Fixed a
pi-subagent-minichild starting from an empty 1.7k-token context every round: children now run with their own session file andaction: "continue"appends to it, carrying the previous report forward - Fixed
pi-subagent-minileavingdependsOn,isolated, andonFailureto the model's self-restraint:spawnacceptsdependsOn(start condition is every dependency settled, a failed dependency blocks the dependent),isolated: true(the tool creates and removes the git worktree, so no path is copied by hand), andonFailure: "retry" | "report"with a fixed 3-attempt limit - Fixed
pi-subagent-minimaking the main agent copy a dependency's report into the next brief by hand.dependsOnnow pastes each settled dependency's report into the dependent's brief under### <jobId> (<status>), the same assemblycontinuealready used for the previous round, so a dependent starts with its inputs instead of prose about them - Fixed
pi-subagent-minilosing the graph across a restart.subagent-jobarchives now carrydependsOn, so a restore rebuilds the edges: a job archived asqueued/blockedis re-queued and runs with its dependency reports injected, and one archived asrunningbecomesinterrupted— settled, not succeeded — so its dependents are blocked instead of waiting on a process that is gone. ThereleaseDependentsloop also no longer re-processes an already-blocked job, which livelocked once a dependency could settle as a failure (#163) - Fixed the
greptool followingRIPGREP_CONFIG_PATH, where options such as--fixed-stringssilently changed regex searches into literal ones. The tool now runsrg --no-config(#11203). - Fixed
mcp.jsonfiles that start with a UTF-8 BOM failing to parse, which silently skipped every server and thediscoveryblock (#11191). - Fixed
/compact <instructions>being ignored when compaction splits a turn and the split turn is the only new content (#11058). - Fixed concurrent extension dialogs replacing each other, which left the displaced dialog's promise unsettled and hung extensions awaiting
ui.select()orui.confirm(). Extension dialogs now run one at a time (#11166, #9909). - Fixed resumed sessions and
/treenavigation leaving extension tools inactive when the branch recorded its tools before the extension was installed (#11062). - Fixed the webui dropping the
todotool's plan:/chatsent only the tool's text output, so steps were created and updated with nothing on screen.tool_resultnow carries the plan snapshot and the browser renders it beside the composer (#152). - Fixed a webui session reloaded from disk showing no plan until the next
todocall. The plan lives in tooldetailsthat the session detail messages do not carry, soGET /projects/:hash/sessions/:idnow derives it from the transcript: the last plan-shapedtodoresult on the recorded branch, skipping abandoned branches and results acontext_editreplaced (#152). - Antigravity requests now carry the native client's identity:
User-Agent: antigravity/hub/<version> darwin/arm64plusX-Client-Name,X-Client-VersionandX-Goog-Api-Client. The Google SDK sentnanopi (...)and its version-scoped headers beat the adapter's, so the request now sets the identity as the SDK client's own headers and replaces rather than layers explicit ones, whileAuthorizationstays the adapter's (issue #386) - A session with no prompt (print, json, subagent children) no longer settles every permission-gated call as dismissed, which had left subagents unable to edit or write: the handler carries
gatedinstead of a fake prompter that always answered "dismissed" (issue #376) - The TUI permission dialog's Explain no longer rejects the call, and the gate no longer spins when no second prompter can settle the pause:
explain()claims the call first, drives the explanation turn throughonExplain, and the TUI gets its own explanation prompter (issue #376) - The webui
/fs/list,/fs/mkdir,/fs/readand/fs/writeendpoints resolve paths inside the workspace and answer 403 otherwise, where they took any path the browser sent, and theextraAPI prefix is in the list that keeps a GET from falling through to the SPA shell (issue #376) - The macOS seatbelt profile actually denies the network instead of carrying
(allow default)whiledescribeSandboxCallreported "network blocked", and a configured sandbox whose launcher is missing notifies instead of silently running a local shell (issue #376) agentLoopandagentLoopContinueclose their stream when the run rejects, instead of hanging the consumer and leaking an unhandled rejection (issue #376)- The composer's placeholder is drawn as its own dim line with no cursor, so its first character is no longer covered by a fake cursor while the empty buffer still renders; the marker stays at the placeholder's end so an IME candidate window keeps its position. The exit hint gets its own line and the placeholder no longer swallows the first keystroke (issue #373, issue #375)
- Cancelling a webui terminal kills the process tree instead of leaving the command's children running
- The builtin module validator recognizes
extra, the one module registered through a spread helper, instead of reporting both a stalemodule/component and a missingmoduleBundlesentry and failing the build (issue #360)