* fix(cli): invalidate provider state after auth changes
After the Effect migration in #8870, provider state is cached via
InstanceState/ScopedCache. The hasKey check that determines which
models are available ran once at init and was never re-evaluated.
When auth changed (login, logout, org switch), only ModelCache was
cleared but the provider state retained the stale hasKey decision,
causing authenticated users to be stuck on the free model.
* chore: add changeset
* fix(gateway): scope disposeAll to KiloRoutesDeps, not ImportDeps
* perf: reduce git process load via adaptive polling and caching
Optimize GitStatsPoller and GitOps to mitigate heavy system load caused
by frequent git process spawns (~200+ processes/min).
- Implement adaptive backoff in GitStatsPoller: The polling interval
now scales (5s -> 10s -> 30s -> 60s) based on consecutive polls with
no detected changes.
- Add visibility awareness: The poller now switches to a 60s interval
immediately when the Agent Manager or Kilo sidebar is hidden.
- Introduce resolution caching in GitOps: Added a 60s TTL cache for
expensive operations (resolveRemote, resolveTrackingBranch,
resolveDefaultBranch) to prevent redundant sub-process execution
within a single polling cycle.
- Reset activity counters: Polling frequency returns to 5s immediately
upon detecting local changes or when the UI becomes visible.
These changes significantly reduce the baseline CPU footprint of the
extension while maintaining responsiveness during active development.
* fix: resolve review issues for PR #8703 - adaptive polling
- Centralize consecutiveNoChanges tracking in fetch() to fix double increment
- Add onChanged callback to reset backoff when worktree stats change
- Restore stop() call in setEnabled(false) to reset cached state on disable
* perf(agent-manager): remove adaptive backoff, keep visibility + cache
Drop the consecutiveNoChanges-based interval scaling that degraded
stats freshness to 10-60s during normal agent use. The visibility
check (5s visible, 60s hidden) and resolution cache already provide
the bulk of the optimization (192 → 156/min visible, 13/min hidden)
without any UX regression in stats update latency.
* chore: add changeset for git stats polling optimization
---------
Co-authored-by: marius-kilocode <marius@kilocode.ai>
* feat(vscode): support @terminal context mention in chat and agent manager
* docs: add @terminal to new extension docs tabs
* fix(vscode): revert toggleRemote extraction, remove plan file, extract terminal handler method
* chore: add changeset for @terminal feature and document changeset process in AGENTS.md
Align test fixtures with the agent naming convention change
where the "build" agent identifier was replaced by "code"
across all prompt and session interactions.
- Update `@kilocode/sdk` imports to use `@kilocode/sdk/v2` path
- Replace `@opencode-ai/sdk/v2` import with `@kilocode/sdk/v2`
- Change theme color types from `string` to `RGBA` in renderApiDescription
- Fix `build` return type in KiloToolRegistry to `Effect.Effect<T, never, any>`
Add api.githubcopilot.com to the exclude patterns in the extraction
script and regenerate source-links.md, dropping the now-filtered
entry and updating the unique URL count from 79 to 78.
Add GitHub Copilot API endpoint reference, update file paths to
reflect github-copilot plugin directory restructure and tui config
migration rename, and remove stale bun issue link references.
Align boolean expression continuation indent in isCompletionResult
and reformat generic type constraint in PopupSelectorProps interface
to follow consistent code style conventions.
Introduce new localized strings for git/branch change titles and
diff file list controls (changed, showAll, showLess, more) in 18
language files to support the updated session review UI.
Resolve merge conflicts across e2e tests, UI components, and core
packages. Clean up conflict markers in test specs by adopting the
upstream `project` fixture pattern over the legacy `withProject`
approach. Alphabetically sort package.json dependencies, apply
consistent code formatting across i18n files, flag declarations,
and TSX components. Update internal API calls to use current
signatures (Permission.defaultLayer, MessageV2.parts, Git.run).
Key changes:
- Remove Windows-specific test.skip guards and conflict markers
- Replace deprecated `git` util import with `Git.run` in worktree-family
- Drop unused SDK type import from share-next
- Add lib entries to kilo-gateway and kilo-telemetry tsconfigs
- Regenerate models-snapshot.js and SDK types with reordered events
- Fix SDK openapi.json code sample to reference @kilocode/sdk
- Add onCleanup import to popover component
* feat(agent-manager): add run script feature for worktrees
Add project-specific run script execution with cross-platform support.
Users configure a .kilo/run-script file that runs in any worktree or
the local repo root. Includes play/stop toolbar button with dropdown,
Cmd+E keybinding, run status badges on worktree cards, and VS Code
Task integration for terminal output.
New files in src/agent-manager/run/:
- service.ts: platform-aware script resolution (sh/ps1/cmd/bat)
- manager.ts: process lifecycle state machine (idle/running/stopping)
- controller.ts: orchestrates service, manager, and VS Code task
- task.ts: VS Code ProcessExecution adapter
- message.ts: webview message handler
* fix(vscode): avoid run shortcut in terminals
Reformats existing changelog entries to match the style that
@changesets/cli produces (2-space continuation indent, no blank lines
between entry header and bullet list, escaped asterisks). This avoids
a large formatting diff when the first changeset-based release runs.