Repository navigation
v2026.10.27-2
·
7909 commits
to main
since this release
@code-yeongyu/senpi
Breaking Changes
Added
- Running session lifecycles expose known tool or model activity with stable start times and outstanding top-level tool counts, without persisting transient activity (#4231).
- Lifecycle RPC deliveries include wire-only
observedAttimestamps, refreshed for state responses and attach replay without changing persisted lifecycle ordering or completion identity (#4233). - Follow modern MCP task-backed tool calls through polling, task input, progress, and cancellation, with a configurable 30-minute task lifetime independent of RPC timeouts (#4238).
- The TUI footer shows lifecycle state, named waits, stop provenance and ordered live activity while preserving existing tool, compaction and retry detail. The status survives
/reload, and itssession-lifecyclekey is reserved:ctx.ui.setStatuswith that key is ignored (#4243). agent_end.failurenames the model that failed (model) and, when a fallback or routed model ran the request, the selection captured at dispatch (selectedProvider,selectedModel); switching models mid-request does not relabel the failure. The terminal failure line names them too (#4334)get_auth_providersrows carryorigin(builtin,models_jsonorextension, with known filesystem paths) so clients can say where a provider is defined. Providers shipped as builtin extensions reportbuiltin, and synthetic registration identifiers are omitted fromextensionPath(#4334)- Opt-in
tools.bash.redactSecretsInOutputsetting, default off, redacts credential-shaped bash output before streaming, spill storage and transcript persistence, including user!cmdcommands, persistent terminals and tool-child execution. Recognizes embedded credentials and charset escapes while keeping idle terminal prompts visible (#4358). get_provider_accountssays why a blocked account is blocked (blockedReason:auth_error,rate_limitordisabled) and when it is retried (blockedUntil), so clients can skip a key the provider already rejected (#4365)- A read-only
config agent-dir --jsoncommand reports the session engine's canonical agent-directory selection and provenance (#4368). - Shared golden fragment-record fixtures for engine/desktop conformance ship in
docs/engine-socket/fixtures/fragment-records/, with a deterministic generator and a test that keeps them byte-identical (part of #4272).
Changed
- The staged compact recovery consumer retains persistent active roots and rejects missing, duplicate, and stale producer start identities (part of #4272).
- Stage ordered cold status/removal and a paged settled index for compact recovery, with producer-bound live membership replacing the resident settled key catalog; rollout remains disabled (part of #4272).
- Write each compact-recovery index compaction round as one segment file holding only its surviving nodes, with bounded reclamation of partly dead segments; rollout remains disabled (part of #4272).
- Build each changed compact-recovery index node once per compaction round instead of copying a path per key, and make a partly dead segment's rewrite read only its live bytes; rollout remains disabled (part of #4272).
- Implicit Kimi picks now choose Kimi K3.1 Pro: the recommended-model rung, the look-at vision chain, and the OpenGateway, OpenCode Go and Moonshot provider defaults (#4443)
Fixed
- Presenter enrollment now binds a single-use launcher nonce, installation key, backend, realm, environment, predecessor, and fresh host incarnation in a versioned signature. Both successor paths require fresh enrollment; older launchers retain ordinary RPC without form authority (#4255).
- Serialize RPC supervisor startup publication with shutdown cleanup so a stop cannot remove ownership state while startup still writes it. Make child-exit regressions wait for startup, identity publication and GC completion, and preserve their subprocess hooks under Bun (#4273).
- Every provider error body is redacted where it enters the provider stream, and an error the provider throws instead of streaming is redacted and classified the same way (a model configuration error is classified on the raw body first), so no partial,
message_start/message_update/message_endevent, RPC or--mode jsonstream, session file or log line carries it. Redaction reads the text once, token by token: the value after a name whose normalized last part is a credential word (api_key,x-api-key,OPENAI_API_KEY_2,token2,api_key_value,apiKeyId,sessionToken,client_secret,bearer,sig; any case, separator, numbered slot orvalue/idqualifier) in a header, JSON (nested, escaped, doubly escaped, arrays), Go header map, Python repr, XML, URL query, form body or environment assignment, with ASCII, typographic or HTML-escaped quotes and a full-width colon, is masked at 16 characters or more, and whole at any length under a password, secret, authorization (includingBasic) or bearer name (to its closing quote, or to whitespace,,,;or&when bare); every cookie value, long values of an object held under a credential name, URL userinfo passwords, bearer tokens, known key prefixes (sk-,sk_live_,rk_live_,gsk_,xai-,hf_,xoxb-, GitHub, AWS, GoogleAIza) and JWTs are masked wherever a word starts with one, inside git remote and proxy userinfo, URL paths and joined values too. Names that only contain a credential word (max_tokens,token_type,token_count,session_id,primary_key_column,monkey,tokenizer) stay readable, and the work is linear in the text's length whatever its shape (#4283) - A provider or gateway answering that it does not serve the configured model (
model_not_found, OpenAI's "The model<id>does not exist",unknown provider for model, Anthropic'snot_found_errornaming the model, or Google'smodels/<id> is not found) no longer retries or walks the fallback chain onto another provider, whatever HTTP status wraps it (a 502 or 503 included): the turn fails with the redacted provider body,errorCause: { type: "model_config" }, and onemodel_config_errorsession event and fallback-log line per model and session. On a model the session already fell back to, the turn ends there instead of trying the next rung (#4283) - A session whose last save was torn (for example by a full disk) keeps the incomplete bytes in
<session file>.torn-<time>-<id>and tells you once (session_recoveredevent, a TUI warning).-cno longer glues the next message onto a torn tail, which lost it on reload (#4295) - The outside-the-workspace permission prompt is no longer skipped for paths written as
@/path,file:///path, with Unicode spaces, as a grep path array, or as a grep line selector on a symlink; it now shows the resolved path. Anexternal_directoryallow rule written as a relative path now asks; write it as an absolute or~path. Rules written with~or absolute paths now match, and paths the tools write inside the workspace ($HOME/xfor write/edit,~/xin apply_patch bodies, Windows/c/...paths under the workspace) no longer ask (#4316) - Anthropic Subscription: after a turn failed on every account, the retry goes back to the account that last served the session as soon as that account can serve again, instead of to the last account tried. The retry reads that account's prompt cache instead of writing the whole conversation to an account that never served it, and it is no longer logged as a seat change (#4304)
- A refused tool call (a user denial, a permission rule or a call with no UI to ask) now tells the model that the refusal is final for what the call was meant to do: it must not reach the same result through another tool, command, path or host. Goal continuations no longer treat a refusal as something to retry another way (#4321)
- A 401 right after the same key served a response is reported as
request_refusedinagent_end.failure, keeps the provider's own error text, and conservatively skips other models on that provider for the turn. Retry or choose another model; re-authenticate the named provider if failures persist (#2491) - Bound served-credential history to 1,024 entries and 10 minutes, and keep goals recovering after a request-level refusal instead of blocking them with login guidance (#4332)
- External-directory permission checks and saved approvals now use the symlink-resolved target; internal case aliases are recognized by filesystem identity, and approval prompts show both the resolved target and original spelling (#4351).
- The experimental, OFF-by-default compact recovery path retains terminal content when transcript persistence fails and rejects terminal carriers from retired session epochs (part of #4272).
- MCP servers that advertise supported legacy versions after rejecting modern discovery now connect through the legacy handshake. Unsupported-version errors show the server's supported versions (#4403).
- Staged structured records preserve seed frontiers and reject backwards replay without changing legacy output (part of #4272).
- Compaction on Claude subscription (anthropic-subscription) sessions summarizes again instead of failing before the provider request and falling back to a checkpoint that dropped older context. The summary request now carries the session directory; the experimental micro adapter does the same (#4409, reported by @Bongrak in #4393).
- The interactive TUI no longer runs out of memory or overflows the stack when a tool result or message holds a very wide array or object (#4415)
- With a subscription sign-in and a metered API key for the same vendor (for example a ChatGPT sign-in plus
OPENAI_API_KEY), new sessions without a saved default now start on the subscription instead of the per-token API lane (#4417) - Opening a session with many installed skills does far fewer synchronous filesystem calls: unchanged skill files are not re-read, package lookups are shared per folder, and ignore files are read from the directory listing (#4423).
- A rule in your AGENTS.md such as "don't ask me with choices" now outranks the agent's default asking style: the prompt now says instruction files override that style, your own files get their own "User Instructions" section, and the question tool defers to them (#4457)
Removed
@code-yeongyu/senpi-ai
Breaking Changes
Added
- Assistant messages can carry
errorCause: { type: "model_config", model }for a model id its route does not serve; every provider stream sets it from the raw body of an error message (stopReason: "error") and keeps only the redacted body of every provider error, andisRetryableAssistantErrornever retries it.isModelConfigError, the value-basedredactSecrets(one token-wise pass, linear in the input, no regular expressions),redactCredentialShapes(known key prefixes and JWTs only) andsanitizeProviderErrorMessageare exported (#4283) AssistantMessage.credentialServedRecently?: truemarks a failed response whose credential served a response moments before (#2491)- Internal block seeds declare their producer-time replay or continuation offset (part of #4272).
Changed
- The bundled model catalog is refreshed from models.dev and the providers' model listings (
github-copilot,huggingface,opengateway,openrouter,venice,vercel-ai-gateway).
Fixed
- Moonshot
kimi-k3.1-proandkimi-k3.1-pro-highspeednow sendreasoning_effort(low / high / max) likekimi-k3, replay reasoning content, and bill the official USD list price on both Moonshot endpoints (#4442)
Removed
@code-yeongyu/senpi-agent-core
Breaking Changes
Added
- Assistant stream-start events carry an optional
streamingmarker so consumers can distinguish live model streams from prepared and synthetic messages (#4231).