The publish job no longer reads the AUR key. A package-managers job in the release-keys environment reads the AUR key and the maintainer app key from the ci-kilocode-release STS bundle and runs only script/kilocode/package-managers.ts. The maintainer app id comes from the repository variable.
sign-cli-windows packages the signed Windows zips and records their digests; sbom-cli-windows writes new SBOM sidecars, manifest entries and checksum lines for them; upload-cli uploads the CLI set once and emits the attestation subjects, with the signed digests for the Windows zips.
The publish job uploads the VS Code packages before its draft check, and the CLI publish script uploads the distribution evidence, checks the complete draft and only then publishes the release, before AUR and Homebrew.
The Kilo Gateway answers a credential it cannot verify with 401 and the
INVALID_TOKEN code. No client matched on that code, so a signed-out user saw
a generic error with no way forward.
- CLI: the TUI shows the signed-out block with the /connect and
kilo auth login hint, and kilo run names the login command.
- VS Code: the chat shows a card with a Sign in button that starts the
device login.
- JetBrains: the login card says the user was signed out, opens User Profile,
and resends the message after sign-in. The held account is re-read so User
Profile offers the login, and the resend waits until that account has
cleared so it cannot loop into the same rejection.
Gemini rejects any key beside anyOf/oneOf except nullable and
description, and requires items on every array. A typed node beside a
combiner, e.g. {type: "array", anyOf: [...]}, broke both rules: the
sanitizer's items fallback skips combiner nodes, so the array shipped
without items. lowerTypeArrays produced the same shape when a type
array sat next to a combiner, since branch() copies the combiner into
each branch.
Distribute the parent keywords into each branch (A and anyOf(B, C) ==
anyOf(A and B, A and C)) in the Kilo-owned gemini-schema module, so
every branch stands alone and gets its own items fallback. Declared
items are preserved.
Revert the earlier transform.ts change: lowerTypeArrays runs first, so
that branch was unreachable for string type arrays.
When sanitizeGemini splits a JSON Schema type array (e.g.
`["string", "array", "null"]`) into an `anyOf`, the newly created
`{ type: "array" }` member bypasses the items fixup at line 2025
because `result.type` was already deleted. Gemini 4 rejects schemas
where `type: "array"` lacks `items`, producing:
properties[arg].any_of[1].items: missing field
Add `items: { type: "string" }` inline when constructing the anyOf
members, matching the existing fallback behavior.
* feat(cli): support additional repositories in Cloud workspaces
Expose scoped catalog paging through Session Host and require the deployed service to confirm capability before forwarding a selected create. Preserve the existing single-repository request shape.
* fix(cli): expose retryability for hosted create conflicts
* fix(providers): validate provider endpoint inputs and keep the gateway credential
* fix(providers): scope the gateway credential to a gateway endpoint and reuse one endpoint guard
* test(providers): name the gateway endpoint case
* fix(providers): require a plain region for the Vertex Anthropic location
* fix(providers): apply the region rule to the Vertex Anthropic provider in the CLI
* docs(changelog): state the shipped provider endpoint behaviour
* fix(providers): validate a Vertex location only when the endpoint derives from it
A Vertex model whose API URL is a concrete endpoint now keeps working with
any location input, because both SDKs use that URL as given. The location is
validated and normalized only when the request URL is unset, empty, or a
catalog template. This applies to the core google-vertex plugins, the
google-vertex-anthropic plugin, and the CLI resolver through one shared
predicate.
Also: persist and expand a location trimmed and lowercased, read a blank AI
Gateway baseURL as unset so the environment gateway credential is kept, and
move the CLI Vertex auth fetch into the kilocode module with tests for both
host branches.
* chore(providers): annotate the normalized anthropic location assignment
* test(providers): pin the concrete model endpoint case for the CLI resolver
* fix(providers): keep the Vertex token on an mTLS endpoint
The Vertex host guard covered the standard API hosts but not the mTLS
endpoints, so a request to an mTLS host no longer received the Google
Cloud access token. Extend the guard to both mTLS host families.
* fix(providers): resolve the Vertex region from the environment once
One resolver now decides the request region for the Vertex providers: the configured location, then GOOGLE_VERTEX_LOCATION, GOOGLE_CLOUD_LOCATION, VERTEX_LOCATION, then the provider default. A blank entry falls through. The model-time validator, both CLI loaders and the catalog transforms share it, so the value is validated wherever the request endpoint derives from it.
The Cloudflare AI Gateway credential rule is stated on the option, in the package README and on the provider page: an explicit gateway key applies on any host, and the environment names supply it for the gateway host itself.
* chore(llm): annotate the extended gateway option documentation
* chore(llm): keep the option documentation on its original line
* docs(providers): lead into each Cloudflare gateway example
Pins the configured Vertex Anthropic region with a test as well: a config-only location selects the regional endpoint.
* fix(providers): resolve the Vertex Anthropic region and project from config
The google-vertex-anthropic custom loader read only the environment for the
Google Cloud project and region, while the sibling google-vertex loader
already honoured the configured options. A configured project or region was
therefore ignored by the endpoint the loader pinned: with a config region the
request host came from the environment region, and with a config project the
URL carried the environment project.
Take the provider argument, resolve the project with the sibling's precedence
and pass the configured location into resolveVertexLocation. Two regression
tests pin the configured location and project reaching the endpoint.
* docs(providers): note the Vertex Anthropic endpoint precedence in the changeset
* docs(providers): state that a Vertex option takes precedence over the environment
* fix(providers): normalize the Vertex Anthropic region before building the endpoint
* fix(test): balance the kilocode_change markers around the Vertex Anthropic tests
* docs(providers): note the blank location option in the changeset
* Revert "docs(providers): note the blank location option in the changeset"
This reverts commit 7a233a25fc.
* test(providers): cover an empty endpoint option with a concrete model URL
* fix(providers): require a well-formed region label for Vertex endpoints
One rule decides a Vertex region label: it starts with a letter, ends with a letter or digit, and never repeats a hyphen. The same rule backs the Vertex API host check, so a region that would build an unusable host is reported as a configuration error at model use.
* fix(providers): build the Vertex Anthropic endpoint from the validated region
The Vertex Anthropic loader no longer decides the request endpoint. It is built at model use, after the region is validated and normalized, so an unusable region is reported as a configuration error and the multi-region rule exists once.
* docs(providers): describe the accepted region form
State the accepted region form in the rule comment.
* fix(providers): treat a blank endpoint option as unset and explain the gateway credential source
A whitespace-only endpoint option falls back to the derived endpoint for the Cloudflare gateway and Workers AI. The missing-credential message names where the gateway credential comes from for the request host. A whitespace-only Azure resource name counts as unset.
* fix(providers): treat a blank Azure resource name as unset on the CLI path
The catalog transform and the Azure plugin already treat a blank or whitespace-only
resource name as unset. The CLI endpoint resolver validated the value first, so the
same configuration reported an invalid name instead of taking the absent-name path.
This applies the same rule in the resolver, so both paths agree.
* test(providers): pin the resource name the resolver leaves untouched
* fix(providers): treat a blank endpoint option as unset on every Vertex path
* docs(providers): state that a blank endpoint option counts as unset
* test(providers): cover a blank endpoint option at each Vertex SDK handler
* test(providers): annotate the new Vertex handler cases
* test(providers): keep the Vertex test block markers contiguous
* fix(providers): treat a blank endpoint option as unset on the Azure SDK path
* refactor(providers): share the Azure resource name error text
* docs(providers): note the blank endpoint rule for Azure in the changeset
* fix(vscode): remove a saved permission rule from the prompt
The permission dock seeds each rule row from the saved config, so a row a
saved allow or deny covers shows the matching control pressed and labels
it "Remove from allowed list" or "Remove from denied list". Switching it
off now adds that pattern to a removals list that travels with the
permission response: webview message, host handler, the sdk helper, and
the always-rules endpoint. The backend deletes the pattern from the global
config and drops it from the running instance's in-memory approvals, so
enforcement keeps up with the row the user sees.
A row whose saved state comes from another config scope stays read-only
with a state icon and a "Managed by a config file" label, because a global
write cannot delete a rule a workspace file supplies.
* test(permission): cover tool-wide rule removal
Add a case for a permission whose saved rule is the tool-wide scalar, so
the delete path that clears a whole config entry is exercised, and drop
the unused import in the sdk test.
* fix(vscode): keep the session context inside its line cap
The permission response signature added a parameter, which pushed the file
past the maximum line count the package lint allows. Fold a two-line
comment into one so the file stays at the cap.
* fix(permission): build the rule patch from expressible additions
Construct the global config patch from the additions the config format can
express, then add the delete sentinels for the cleared patterns. A pattern
the format cannot express now leaves the permission key as it was.
* fix(permission): tighten rule ownership and patch scope
- A row is removable only when the global config holds an entry for that
exact pattern, so two scopes that agree no longer make a row look
revocable.
- Keep the tool entry when the saved entry still has patterns the patch
does not mention, and drop it when the saved entry is fully cleared.
- Cover both rules, plus the enforcement side of a cleared scalar entry.
* test(permission): seed the stored entry before an unexpressible approval
Start from a saved tool-wide action so the case proves the approval leaves
that entry untouched, rather than starting from an absent entry.
* fix(permission): scope the removal control and the config patch
- removableRuleIndices takes the workspace scope, so a row keeps the
removal control only when the global entry decides it.
- The config patch is built from the expressible additions plus the delete
sentinels, with no read outside the update lock. Other saved patterns
stay in the file, and sentinel-only entries are inert.
- Cover the both-scopes row and the scalar entry with tests.
* fix(permission): decide removal scope from the overlay source
- The dock reads the overlay's recorded source for the permission key, so a
row offers removal only when the global scope decides that key.
- The scalar promotion in both config writers removes the entry when every
value is a delete sentinel, so a cleared tool-wide rule leaves no object
of nulls behind. Covers the console writer and the updateGlobal writer.
- Cover the writer branch and the overlay-source gate with tests.
* fix(permission): read the merged workspace scope in the dock
The dock now reads the overlay's merged workspace scope, every project
config file combined, instead of one project file. A row keeps the removal
control only when the global entry decides it and no workspace file
supplies the same pattern. The extension sends that scope in the config
messages, and the webview keeps it beside the project scope.
* chore(vscode): ignore fixture bundles left by an interrupted test run
Fixture tests write a temporary esbuild bundle beside the package and delete
it afterwards. A killed run leaves one behind, so ignore that shape.
* fix(vscode): keep the story workspace scope empty and drop an unused field
An unscoped story has no workspace layer, so it no longer falls back to the
effective config and no saved rule is presented as workspace-supplied. The
message type drops a field nothing populates.
* fix(vscode): name the saved-rule state and widen the fixture ignore rule
The config-managed row no longer has a pressed toggle to carry its state,
so its indicator now names the state before the config-managed wording.
The fixture-bundle ignore rule covers every directory, not only the
package root.
* test(vscode): assert the state wording for a denied config-managed rule
Cover the deny branch of the indicator's accessible name, so the state
prefix is checked in both directions.
* test(config): cover the promoted-entry delete through updateGlobal
Seed a scalar permission entry, clear it with a delete sentinel, and assert
the entry no longer resolves.
* test(vscode): repair two unit cases that fail on main
- auto-approve: the case passed `true` where the shared helper takes a
layers object, so auto-approve read as disabled and the pending reply
never started. Seed the layer the helper expects and clear it the same
way the sibling cases do.
- session-release fixture: `ProviderProvider` resolves dialogs, so mount
the same `DialogProvider` the app wraps around it.
* fix(vscode): keep saved permission rules while editing dock rows
A rule row is a small editor for the saved rule it shows. Changing a row and
then changing it back returns the row to its saved state, so the response
matches the state the user finished on.
Membership of a row in the workspace scope now covers every entry that
applies to it, including a tool-wide entry, so each control acts on the scope
that owns the rule.
* fix(vscode): compare workspace rules the way the backend does
A workspace rule and a row pattern now compare after both path separators
become `/`, so a rule written with either separator covers its row.
* fix(vscode): treat a workspace rule as covering its row across letter case
A row is shown as managed by the workspace scope when an entry there matches
it regardless of letter case, so a control is only offered for a row whose
state this prompt can change.
* fix(config): keep promoted permission entries free of empty sentinels
* test(permission): cover a named-pattern removal from a scalar entry
* fix(vscode): judge rule removal against the merged global scope
* docs: state the config scopes a saved rule removal cannot change
* chore(vscode): format the rule guard and its fixture
* fix(vscode): read the write target and the overlay response for rule rows
A rule row now offers its removal control when the primary global config file
holds that pattern with that action, so the control deletes the entry the row
shows. A row another config file supplies shows a state indicator.
A settings save maps the overlay write response explicitly, so the merged
global scope reaches the webview after a save as it does after a refresh.
* test(vscode): pin the merged scope a settings save publishes
The provider fixture now gives the merged global scope and the merged workspace
scope different values from the single write target, so a save that reads the
wrong field fails the payload comparison.
* fix(vscode): keep named saved rules removable across global files
A named pattern is deleted from every global config file that holds it, so the
row keeps its removal control wherever the pattern is saved. The wildcard row
still needs the primary file to hold its own entry, because a bare scalar in
another file has no pattern path to delete.
The auto-approve page now describes the indicator by its accessible name.
* docs(vscode): name the broader-global case in the auto-approve scope note
* fix(vscode): resolve a saved rule's home prefix and follow the config live
The permission prompt compares a saved rule against the row it decides. The
evaluator expands a `~` or `$HOME` prefix with the home directory of the
process that runs the rules before it matches, so the prompt does the same:
the extension sends that directory with the config scopes, and an entry the
webview cannot resolve is treated as covering the row, so a row never offers
a control the prompt cannot honour.
The saved row states and the removable rows are memos over the config
accessors, so a prompt that mounts before the first config payload shows the
saved state when that payload arrives, and a config change while the prompt
is open updates the controls.
* fix(vscode): state the dock row's own rect in its late-config case, apply scopes on a failed save
The prompt's shortcut listener reads the dock's rect, so the late-config case states
it as the shared loop does instead of relying on the DOM default, which keeps the
Enter assertion able to fail.
A failed settings write still carries the scopes the host read, so the read-only
config view follows them there as well as on a successful push.
* fix(cli): keep rejected session-export batches pending
An ingest response of 401 or 403 now suspends the upload queue instead of retrying the same credential. Pending rows stay in storage, and a changed credential or a worker restart resumes delivery. The rejection reports its own telemetry event.
* fix(cli): clarify session-export rejection changeset
Name the outcome the uploader produces for an accepted queue and keep the note factual about the telemetry event.
* fix(cli): decide the session-export pause before reading a batch
* test(cli): match the session-export uploader test formatting
* fix(cli): report session-export delivery resuming after a pause
* fix(cli): apply permission rules to workflow and subagent tool calls
* fix(cli): apply the edit and read permissions to their tool aliases
* fix(cli): keep a path-scoped rule from changing a tool's preapproval
* fix(cli): single-source the tool-to-permission map
The workflow tool gate and the disabled-tool check each carried their own
copy of the map from a tool name to the permission that governs it. The gate
read a local map and the check read two inline arrays, so a new alias, or a
changed one, could apply to only one of them.
Export one resolver from Permission and read it from both places, and extend
the gate test to the resource tools so a drift in their aliases fails.
* test(cli): cover the workflow tool and subagent delegation wiring
The gate and the task permission check had unit tests, but nothing exercised
the session wiring that installs them. Add two test files:
- workflow-attach: reaches the real workflow branch through a provider stub and
drives the installed executor, so a whole-tool rule, an unoffered name, a
path-scoped rule and each result shape are asserted against the code that
runs them.
- named-agent-types: drives a real prompt turn whose message names a subagent,
and asserts the turn delegates and creates the child session.
Both fail when the corresponding wiring changes.
* test(cli): resolve the session service through the test layer
The named-agent test created its session through the global runtime handle.
Dispose that handle in the test instead and let the compiled layer do the
work, matching the other session tests in this directory.
* test(cli): resolve the session and prompt services in one scope
The named-agent test created its session through a separate runtime, so the
database instance it wrote to was not the one the prompt read. Resolve both
services from the same layer and create the session inside that scope.
* fix(cli): keep the tool-to-permission lookup to its own entries
A name that the map does not define resolved to an inherited built-in
member instead of itself, so the gate handed a non-string to the wildcard
matcher and the call failed with a thrown error rather than the gate's
not-available answer. The map now answers only for the entries it
declares.
Also mark the removed wildcard import in the session runtime and pin the
scoped-rule ordering and the unknown-name answer in tests.
* docs(cli): state what the workflow preapproval list contains
The gate also lists a tool that no rule covers, and one whose matching
rule is scoped to a path. The comment now says that, so a later change
does not narrow the list by mistake.
* fix(vscode): apply the environment-file level to shell readers
The read rule asks before an environment file is opened. Shell commands
that print a file's lines now apply the same level, and so does a process
environment dump. One shared rule generator keeps the CLI defaults and the
work-style presets in step; a delegated agent that cannot answer a prompt
refuses instead. A sample file stays allowed as a sole operand.
* test(vscode): repair two unit-test harnesses
The session-release fixture mounted ProviderProvider without the
DialogProvider it reads from context, so the bundle threw at mount. The
auto-approve cancellation test passed a boolean where the settings layer
belongs and turned auto-approve off through a property nothing read.
* docs(core): describe the covered shell operand shapes
States the operand shapes the rules match, so the module comment and the
user guide agree with the emitted patterns.
* test(vscode): ignore generated session bundles
A test writes a temporary bundle into the package root and removes it
after the run. If the run is interrupted the file stays, so the
formatting check fails on generated output. The ignore list now covers
that name.
* chore: remove a stray generated file
* fix(core): cover every operand shape and the git readers in the shell guard
A reader gates its environment file at any operand position, including a glob, a
quoted operand and a nested path. A searcher gates the file when it is named as
an operand. The git readers gate the file in their revision spec, and their rules
land after the git allowlist so last-match precedence keeps them.
The sample file stays allowed only as the exact lone operand, and a test pins the
level of every operand shape the map states. Also lists @kilocode/cli in the
changeset, and ignores every harness bundle name in the package root rather than
only the session-named ones.
* docs(core): state the shell operand shapes that ask
* fix(core): cover the git commands that print a path
* fix(core): cover a git path in any operand position
* chore(vscode): keep the tracked config file in the format check
* docs(core): state the searcher operand shapes precisely
* docs(core): describe the searcher suffix forms accurately
* fix(core): gate a searcher's environment file after its pattern
A searcher's first operand is the search pattern, so the environment
file rules require an argument before the name and keep an ordinary
search at the command's existing level. A directory-prefixed name in a
middle position gains its own rule.
* docs(kilocode): narrow environment file guard coverage to the emitted searcher rules
* docs(kilocode): state the searcher coverage the rule table emits
* fix(core): gate a stream filter's redirected environment file
Cover the input-redirect shape for a command that prints what it is given,
and state that a last argument ending in .env counts as a file name.
* fix(jetbrains): map legacy mode groups to CLI permission keys
* fix(jetbrains): key the migrated MCP auto-approval switch by server
* fix(jetbrains): tighten legacy permission pattern translation
* fix(jetbrains): ask before editing when a file restriction cannot be migrated
* chore(jetbrains): add changeset for migrated permission mapping
* fix(jetbrains): parse legacy custom mode group options
* fix(jetbrains): ignore YAML comments in legacy mode parsing
* fix(jetbrains): keep legacy mode group parsing stable across comments
* fix(jetbrains): keep migrated mode permissions faithful to legacy selections
- A legacy mode group whose options block holds a line the parser does not
read now migrates that group to ask with a migration result message,
instead of granting the group in full.
- Migrated modes keep an explicit skill deny, so a mode does not inherit a
broader global default.
- The MCP auto-approval result reflects what was written, and its warning
carries the reason.
* fix(jetbrains): narrow a legacy mode group with an unread mode option
A group whose option map holds a key outside the legacy set now migrates
that group to ask with a migration result message, for modes read from
YAML and from JSON alike, instead of granting the group in full.
* fix(jetbrains): prompt for mcp tools when a mode option cannot be applied
An mcp group that carries a file restriction, or an option the parser
cannot read, now writes ask for each migrated server instead of denying
them. A mode with no migrated server reports the missing-server reason
and writes no key.
* fix(jetbrains): report one result row per migrated mode
A mode that produces several migration warnings now appears once in the
report, with its warnings joined into one message, and the missing-server
message states that no server was migrated rather than guessing why.
* fix(cli): map legacy mode groups to the permission keys the CLI reads
The CLI rewrites legacy custom modes into agent permissions on every
config load. A browser group now grants browser use, an mcp group grants
the tools of each migrated server instead of a key the CLI never reads,
and a file restriction is translated into wildcard globs with the
catch-all deny written first. A restriction the glob syntax cannot
express asks instead of denying every edit.
The same translation is shared with the JetBrains migrator, and the
migration doc states the mapping that results.
* chore: note the CLI mode migration in the changeset
* docs(cli): list MCP servers as part of the mode migration
* test(jetbrains): pin the browser group permission in the migrated agent
The migration report and the changeset now name the client that runs the
browser tool, and a conversion case asserts the permission a browser group
writes in the agent config.
* fix(cli): keep the injected config's MCP tools to project scope
The injected config defines no mcp section, so a mode's mcp group maps to
the project's MCP servers, which every consumer's legacy load reads from the
same project directory.
* test(cli): keep the injected-config case inside its temp home
The global storage path resolves from APPDATA on Windows, so the case sets
it to the temp home together with the mocked home directory.
* fix(cli): report MCP migration gaps only for servers the store had
The CLI mode migration warned about missing MCP access whenever a mode
declared the `mcp` group and no server reached the backend config, even when
the legacy store never declared a server. The plugin migration reported the
same condition only when the store had one, so identical legacy data produced
different reports on the two paths.
`McpMigrator.migrate` now reports whether the store declared any MCP server,
`loadMcpConfig` carries that flag to both callers, and the mode migration takes
it as `mcpAvailable`. The plugin converter takes the same flag as a required
parameter, so no caller can drop the reason by omitting it.
`docs/migration.md` now describes the supported `fileRegex` subset as the
implementation behaves (`?` after any supported atom), and records that the
`<server>_*` key follows the CLI MCP tool-id naming, so two server names that
differ only outside `[a-zA-Z0-9_-]` share one rule.
* fix(cli): require the MCP availability flag in the mode converters
The exported `convertPermissions` and `convertMode` still defaulted
`mcpAvailable` from the server list, so a caller that omitted the argument
could silently lose the "no MCP server was migrated" reason — the same trap
the plugin converter removed. Both arguments are now required, and the
organization-mode path passes no store and no grant.
* refactor: require the MCP availability argument at both migration entry points
Drop the defaulted MCP arguments so a caller cannot omit the value and report the MCP migration section as success without writing a key. Update every call site with the value it means.
* fix(cli): report mode migration warnings in the served config
* fix(cli): report migrated permission outcomes and keep file rules exact
A legacy mode migration writes one rule per CLI permission key. Three
details now follow the CLI's own resolution rules:
- A `fileRegex` arm that is a plain number is written as `ask` with a
migration message, because a numeric permission key is enumerated ahead
of the catch-all in the written config, which would resolve the catch-all
first. An unanchored numeric pattern still translates to a wildcard arm.
- A converted mode reports that skills are not available, because no legacy
group grants the `skill` permission. Both migrators carry the message, so
the outcome appears in the migration report and in the served config
warnings.
- `KilocodeConfigInjector.buildConfig` keeps its permission keys
project-scoped and takes the MCP availability flag from the scope the mode
migration reads, so a mode whose `mcp` group maps to no server is
reported instead of being dropped.
The migration guide and the changeset describe the resulting mapping.
* fix(cli): keep migration warnings to conditions the user can act on
A converted legacy mode is denied the `skill` permission because no legacy
group grants it. That outcome is expected, so it moves from the warning
channel to a notes channel:
- `ModesMigrator` carries `notes` beside `warnings`, each attributed to the
file the mode came from. The skill denial goes into `notes`; `warnings`
keeps the group-option, file-restriction and MCP conditions.
- `loadLegacyConfigs` and `KilocodeConfigInjector` log notes at debug and do
not add them to the config warnings, so `kilo config check` passes for a
legacy project that needs no action and the extension does not build a
toast from this text.
- The plugin keeps every converted mode at success in the migration report
and shows a note as the item message; a warning still produces a warning
item.
The migration guide lists what each channel carries.
* fix(cli): keep the narrower rule when a mode repeats a group
A mode that lists the same group twice now keeps the narrower rule, in both the
CLI migrator and the JetBrains plugin: ask over a file restriction over a plain
grant, and ask when two different restrictions cannot be combined. The repeat is
reported as a migration warning that names the permission key.
An organization mode with an mcp group also records a note that the group is not
scoped to the agent, since the mode loads before the project MCP config merges.
The changeset states the auto-approval outcome for the master switch.
* docs(cli): scope the repeated-group guidance to a repeat that changes the rule
An identical repeat produces no message, and two different restrictions are
deliberately not combined, so the guide and the changeset now say what the
migration actually reports.
* fix(cli): keep the default skill permission for migrated modes
A migrated legacy custom mode no longer carries a skill rule on the CLI
path, so it keeps the default ruleset and its skill access is unchanged.
The legacy-mode notes channel existed only for that denial, so it goes
with it; the organization-mode note stays. The JetBrains migration keeps
its skill denial and reports it.
* docs(cli): state the organization-mode note log level directly
* fix(cli): load the MCP store once and name the empty-alternative rule
The injector loaded the MCP store twice on the default path, so each MCP
migration warning reached the log twice. One load pass now reports which
converted servers came from a project file, and the injected permissions stay
project-scoped while availability follows the scope that pass read.
The glob translators in the CLI and the plugin checked for an empty arm after
padding, so the check could only fire when a pattern carried both anchors. Both
now read the empty arm before padding and reject it only for a fully anchored
pattern, where no glob can express the empty string. Returned globs are
unchanged.
* fix(cli): keep the arms that name a path when one alternative is empty
A both-anchored pattern with an empty alternative, such as `^(package\.json|)$`,
allows that file, so the migration now drops the empty arm and keeps the rest.
Only a pattern whose every arm is empty and that also pins both ends matches
nothing but the empty string; that one still asks and reports the restriction.
The change also makes the MCP duplicate-warning test independent of the log sink:
it counts the store load passes instead of capturing log output, because the log
goes to a file on CI and to stderr locally.
* docs(cli): state the empty-alternative rule as the translator implements it
An empty alternative matches the empty string. A pattern whose empty alternative
is its whole body matches every path; inside a longer pattern it matches that
pattern's surrounding characters. With both anchors the empty alternative is
dropped so the alternatives that name a path survive, and a pattern whose every
alternative is empty is reported and asks.
* fix(cli): keep home-relative file arms out of translated rules
A translated file restriction arm that begins with a home-directory prefix is
now reported instead of written, so that group asks before it applies. Both
translators share the rule, and each states the matcher normalization its
trailing-space guard covers.
* docs(cli): state the home-arm rule by the outcome it produces
The file permissions ask with a workspace-relative path, so the rationale now
says that such an arm does not match and the sibling catch-all deny decides,
rather than describing a grant that the ask path cannot reach.
* fix(cli): accept a backslash before ASCII punctuation only in migrated file patterns
Both migration translators now share one explicit ASCII punctuation set, so the
CLI and the plugin reach the same decision for every legacy fileRegex.
* docs: name the escapes the glob cannot carry in the changeset
* test: cover the escapes the glob cannot carry literally
* test: read one shared pattern fixture in both permission translators
The CLI translator and the plugin translator must produce identical globs for the same legacy file pattern. Until now each suite restated its own cases, so only a source comment tied them together.
One fixture at packages/kilo-jetbrains/backend/src/test/resources/migration/permission-glob-cases.json holds every pattern with its expected output, and both suites read it: the TypeScript suite through a path from import.meta.dir, the Kotlin suite from the test classpath. A change to either translator now fails the other side's suite.
* fix(jetbrains): read flow-style mode groups by their structure
A legacy mode may write its groups in YAML flow style. The parser now splits a
flow sequence at its top-level commas, reads a nested list item as a (name,
options) pair in both the inline and the block-item shapes, and treats a standalone
options entry as the options of the group name before it, so that group asks
instead of being granted in full. The CLI migrator reads the same input the same
way.
Both migrators therefore write the same rule for each group shape the legacy
format allows, and group options narrow a grant rather than widen it.
* fix(jetbrains): decode a doubled quote in a single-quoted mode scalar
A doubled single quote inside a single-quoted scalar is one literal quote, so a '#' after it stays part of the value instead of starting a comment, and the parsed slug, description and group name keep the decoded quote.
A flow sequence no longer splits at a comma that follows a doubled quote inside a quoted item.
* fix(jetbrains): share the MCP tool-id key and translate top-level alternation
The migrated `<server>_*` permission key and the CLI's own MCP tool-id naming
now come from one leaf definition, so a migrated grant always names the tools
the CLI registers. The plugin builds the same rule key, and a shared case file
read by both suites ties the two languages together.
A legacy `fileRegex` that alternates at the top level now translates: each
alternative carries its own anchors, and an alternative the glob syntax cannot
express rejects the pattern so the migration reports it.
Both loaders that migrate legacy modes grant an `mcp` group the tools of every
server the same migration converted, which is what the legacy group meant; the
project-only scope field is gone.
* fix(cli): apply the MCP tool-id rule per code point and reuse it everywhere
The shared rule now replaces one character per code point, so a server name
holding a character outside the Basic Multilingual Plane yields the same
permission key in the CLI and in the plugin. The two remaining copies of the
rule reuse the same definition, and the shared case file pins an astral name,
two unsafe characters and a name that is only unsafe characters.
* docs(cli): name the platform condition that reads the global MCP store
The migration guide states the store scope by the condition the loader uses
rather than by platform names, so it is accurate for the plugin as well.
* fix(cli): report an mcp group whose store the loader skipped
The legacy MCP load and the legacy mode load disagree about global stores: on
the CLI the MCP load skips the VS Code global store, while the mode load still
reads the global mode files. A mode from that store with an `mcp` group then
granted nothing and reported nothing.
`McpMigrator` now reports whether a global store it skipped declared a server.
The store is read only to answer that question, never to grant from it, and
`loadLegacyConfigs` folds the answer into the availability it hands the mode
migration, so the existing unmigrated-group message appears for that mode. A
mode with no MCP server anywhere stays silent, as before.
* fix(cli): report a skipped MCP store beside the migrated servers
The report for an `mcp` group fired only when no server was migrated, so a
load that granted a project server and skipped a global store declaring servers
granted part of the group and said nothing.
The two facts now pass separately. `mcpAvailable` keeps its meaning, a store
this load read that declared a server none converted, and the new
`mcpSkippedGlobal` carries the skipped global store. A mode whose `mcp` group
cannot cover that store reports it with its own message, whether or not other
servers were migrated, and the empty case keeps its existing message. Both
loaders pass the same two facts.
* fix(cli): keep the skipped-store report out of the hermetic path
Skipping global paths must not read a global path. The report of a skipped
store was unconditional, so a caller that asked to skip global paths still read
the host's real store: a machine whose legacy store declares a server changed
the result of a test that pins the empty case.
The report is now opt-in. The live config loader asks for it, because it reads
the same global stores for the modes themselves and must say what a mode lost.
The config injector does not ask, so its own skip flag stays hermetic, and the
pass-through of a fact it can never observe is gone.
* docs(cli): state when the skipped-store report is not checked
The report is opt-in, so `false` also covers a caller that never asked. The
field, the option and the loader now say that, so the exported contract matches
what the code returns.
* fix(cli): report a skipped MCP store only for a server the load lost
* fix(cli): compare skipped MCP coverage by permission key and tolerate an unreadable entry
* docs(cli): state the skipped-MCP loss rule as the code applies it
* fix(cli): apply cross-process turn ownership to failed-turn recovery
Both failed-turn recovery seams now check turn ownership before removing a
tail assistant message, the same way the dangling-tail seam does. A tail that
another Kilo process on the same data directory is serving is left in place.
* test(cli): clarify the turn marker test helper
* test(cli): cover the local marker case for both recovery seams
* fix(vscode): show approval card text in an escaped display form
Every text surface of the permission card renders through one display helper:
the description hint, pattern paths, rule text, the external-directory path,
the command block, the MCP input block and the diff file name. The helper
escapes control and format characters, and keeps line breaks readable in the
block surfaces.
The copy button copies the text the request carries rather than the escaped
display form.
* test(vscode): format the approval card display fixture test
* fix(vscode): escape an unknown tool name shown as the card label
An unknown tool has no label key, so the card shows the tool's own name from the
request. It now renders through the same display helper as the rest of the card.
* fix(vscode): normalize the skill command surfaces and cover the card text
The skill shell command list now normalizes Unicode hosts in its URLs the same
way the ordinary command does, and both command surfaces copy the bytes the
request carries. The display fixture covers the bash rule label, the normalized
command display, and the copied text on both command surfaces.
* chore: update kilo-vscode visual regression baselines
* test(vscode): repair two unit tests left stale by earlier changes
The auto-approve test called its config helper with the argument shape it had
before the setting became user-scoped, and cleared a field the helper no longer
exposes, so the auto-reply was never cancelled and the test timed out. The
session-release fixture mounts a provider that reads the dialog context, so it
now wraps the tree in the dialog provider its production composition uses.
* fix: show invisible format characters as literals in permission display text
* fix: cover the remaining zero-width format characters in display text
* test(vscode): format the display helper test
* fix: escape supplementary-plane format characters in display text
The permission card's display form now covers width-less characters in
every plane: the UI renders visible literals for the tag characters, the
variation selectors and the soft hyphen, and escapes a supplementary
character as a whole `\u{...}` code point instead of its surrogates.
The three mirrored implementations (webview dock helpers, CLI skill
display, JetBrains permission view) share the same ranges and the same
formatting rule: `\x` below 0x100, `\u` up to 0xffff, `\u{...}` above.
Kotlin walks commands by code point so a supplementary character is
matched and rendered as one unit.
* fix: cover the whole default-ignorable set in display text
Display text escapes characters that render without width. The escape set
covers the complete Unicode Default_Ignorable_Code_Point set and the Format
category, plus the C0 and C1 controls and the line and paragraph separators,
in the CLI command formatter, the approval card helpers and the JetBrains
permission view.
The escape format is unchanged: \x below 0x100, \u up to 0xffff and \u{...}
above. Tests cover the newly added code points at each surface.
* test(vscode): hold the three display classes to one code point set
The approval card, the CLI prompt and the JetBrains permission view each
declare the set of characters they render as literal escapes. The new test
parses all three sources, normalizes them to code point intervals and
asserts equality, so an edit to one declaration fails here instead of
leaving a surface behind. It also pins a golden table of code point to
escape vector through the real display helper, and two drift cases prove
the comparison reports a narrowed range.
The changeset states that presentation selectors and joiners now show as
escapes, so the release note describes the visible change.
* ci(vscode): run the unit job when the mirrored display classes change
The vscode display set parity test reads packages/opencode/src/kilocode/skills/display.ts and packages/kilo-jetbrains/frontend/src/main/kotlin/ai/kilocode/client/session/views/permission/PermissionView.kt, so a change to either must also trigger the unit tests workflow.
* ci(vscode): annotate the added display-class path filters
The shared-upstream annotation check requires a marker on every added line in a checked scope, so each new path filter carries one.
---------
Co-authored-by: kilo-maintainer[bot] <kilo-maintainer[bot]@users.noreply.github.com>
* fix(account): store the console server with each account
Each stored console account now carries the server address it was created
for, together with the user id that server issues, and is addressed by
both. A token refresh updates the account it was issued for.
- Derive the stored key in @opencode-ai/core/account/key, next to the
server address normalizer, so runtime writes and the data migration
share one definition.
- Rename the persistAccount input field to remoteID and keep the stored
address out of the conflict update.
- Migrate stored rows by deriving the key and normalizing the stored
address, keeping every row and the active selection.
- Extend the repo, service and migration tests.
* chore(account): wrap the migration registry marker helper
Keep the marker predicate for the new account migration readable.
* fix(account): normalize the server address once before deriving the key
accountKey now takes an address the caller already normalized, so a stored
address that cannot be normalized keeps its raw value and still receives a key
instead of failing the upgrade. The migration test pins the literal key format
and covers a stored address that cannot be normalized.
* test(account): restore the marker around the token refresh test
* fix(core): keep secret file read approval for the explore subagent
* fix(core): match secret file read rules without regard to case on macOS
* fix(core): describe the file-path case rule without naming inputs
* fix(core): share the path action list and align saved rule coverage
* fix(core): reuse the shared path action list
* test(opencode): cover saved rule coverage for the darwin case rule
Separate foreground exit from stdio closure for POSIX shell calls so inherited pipes cannot stall a completed command. Keep bounded output draining and scope process-group cleanup to the spawned command.
* feat(cli): add core telemetry level API
Persist and apply experimental.openTelemetry in one core endpoint, regenerate the SDK, and switch VS Code to that endpoint. VS Code no longer injects KILO_TELEMETRY_LEVEL or forces setEnabled from its own consent flag.
* fix(cli): honor telemetry config opt-outs
Treat experimental.openTelemetry as authoritative over client env opt-ins and normalize KILO_TELEMETRY_LEVEL so unrecognized values stay off.
* fix: preserve telemetry opt-outs across clients
Keep the editor and environment restrictions separate from the saved Kilo preference so runtime changes cannot bypass an opt-out. Report effective consent and keep telemetry requests off the webview startup path.
* test(telemetry): isolate consent cases on Windows
Give each environment value its own subprocess test so Windows startup overhead does not exhaust a shared timeout.
* chore: update kilo-vscode visual regression baselines
* fix: stabilize webview screenshot and Fireworks link check
Wait for syntax highlighting before taking the diff panel snapshot and direct users to Fireworks' public API key setup guide instead of the authenticated dashboard URL.
* chore: update kilo-vscode visual regression baselines
* fix(vscode): recover telemetry level after host update failure
A failed host permission POST no longer latches every later level read to null, so feedback re-enables after a transient error.
---------
Co-authored-by: kilo-maintainer[bot] <kilo-maintainer[bot]@users.noreply.github.com>
* feat(cli): add the browser hub transport and native host install
* test(cli): run the browser bridge tests on Windows
* fix(cli): harden the browser hub transport lifecycle
* fix(cli): make hub retries, registry writes, and idle activity sequential
* fix(cli): treat an early hub exit as a failed start
* fix(cli): keep hub exit bookkeeping tied to the child
* feat: expose hosted workspace pull request status
Keep partial and temporarily unavailable pull request observations distinct from authoritative absence across the local API and IDE transports.
* test(jetbrains): strengthen hosted PR transport regressions
Make the body-limit regression detect a missing guard without narrowing the provider-neutral transport contract.
* chore: split JetBrains transport from the core CLI release
Keep the CLI and SDK API in this PR while preserving the plugin integration and review fixes in draft PR #16194.
* chore: skip JetBrains tests for SDK-only changes
The plugin generates its Kotlin client from the pinned CLI release and does not consume @kilocode/sdk, so TypeScript SDK changes cannot affect its test suite.
* fix(jetbrains): keep the tool window test application castable to ApplicationEx
The test replaced the global application with a proxy implementing only Application. Platform cancellation and JFR hooks read it as ApplicationEx from other threads, which threw ClassCastException and left the following test failing.
* fix: address hosted PR review feedback
Honor the published profile organization scope, centralize refresh-state mapping, and strengthen the provider and fixture regressions raised in review.
* fix(cli): preserve organization scope when clearing profile defaults
Expose the optional organization query on the clear route and pass it through the handler so set and clear use the same token and Worker scope.
* feat(cli): expose hosted workspace and linked-pr diffs
Carry C13 workspace change snapshots, revision-fenced file reads, explicit refresh, and verified linked-pull-request patches through Session Host and the generated SDK. Keep committed, uncommitted, and PR-published comparisons distinct, preserve omission and stale outcomes, and expose the patch/content shape the native diff editor consumes.
* fix(cli): harden hosted workspace diff reads
Dispose cached attachments when a hosted diff read reports a missing workspace, matching the other workspace reads, and allow a scope-less file read to accept the record's scope while still fencing path and revision.
* test(cli): cover hosted diff routes in HttpApi exerciser
Add protected-route scenarios for the five new workspace diff endpoints so the exerciser coverage gate has no missing routes.
Surface the Cloud Agent features from cloud#10047 and cloud#10166 through the local Session Host API. Hosted workspace creation can now omit the initial prompt and profile, and clients can list profile defaults and set or clear the personal default.
zodJsonSchema throws for z.custom, z.instanceof, z.symbol, BigInt defaults and
duplicate meta({ id }). The throw escaped both plugin loops and the
ToolRegistry state constructor, so the registry yielded zero tools and every
prompt in the session failed with "Unexpected server error".
Wrap each plugin tool registration in Result.try so a failure is contained to
that tool: it is logged and skipped, every other tool still registers.
v2 already has this boundary (packages/core/src/tool.ts registrationError).
* fix(cli): keep a reply that another Kilo process is still writing
* fix(cli): expire turn markers of dead or silent processes
* fix(cli): trust pid liveness for local turn markers
* fix(cli): reclaim local turn markers of reused pids after a day
* test(cli): prove a running turn writes and clears its marker