Commit Graph
12353 Commits
Author SHA1 Message Date
Catriel Müller 14a4deb42b fix: bun action 2026-02-27 11:25:50 -03:00
Catriel Müller b3887f8eae Merge pull request #6449 from Kilo-Org/fix/publish-gh-repo-undefined
fix(ci): add GH_REPO env var to publish workflow steps
2026-02-27 11:16:33 -03:00
Catriel Müller d38376c84b fix: fix publish version script env 2026-02-27 11:09:00 -03:00
Marius 4c0b067bf8 Poll local workspace git stats in Agent Manager (#6405)
* Poll local workspace git stats in Agent Manager

Extend the stats polling mechanism (renamed from WorktreeStatsPoller to
GitStatsPoller) to also poll the local workspace's branch name, diff
stats, and unpushed commits on the same 5s interval used for worktrees.

Previously the local branch name was only fetched on-demand when the
user clicked the Local sidebar item or when the panel first opened,
and no diff stats were shown for local at all.

Changes:
- GitStatsPoller now accepts getWorkspaceRoot and onLocalStats callbacks
- Each poll cycle fetches local branch, resolves tracking branch, and
  computes additions/deletions/commits against remote
- New agentManager.localStats message type pushes data to the webview
- Local sidebar item displays diff stats badges (+N / -N / ↑N)
- Diff toggle button shows change indicator when local has changes
- Poller always enabled (not gated on worktree count)

* Fix review issues: gate polling on worktrees/panel, preserve stats on failure

- Only enable GitStatsPoller when worktrees exist or the panel is open,
  avoiding unnecessary background git fetch for users without worktrees
- On transient HTTP client or diff fetch failure, skip emitting instead
  of zeroing stats, preserving last-known values in the UI

* Refactor poller and fix the edge case that users cannot access origin

* Remove unrelated changes

* Extract GitOps from GitStatsPoller, fix PR review comments

- Extract git operations into GitOps class backed by simple-git
- GitStatsPoller now requires GitOps injection (no internal creation)
- AgentManagerProvider creates shared GitOps, passes to poller and WorktreeManager
- Remove duplicate getRemoteTrackingBranch/git methods from AgentManagerProvider
- WorktreeManager delegates currentBranch/defaultBranch to GitOps when available
- Fix: preserve last-known local stats on HTTP client failure
- Fix: fall back to origin/HEAD for branches with no upstream
- Fix: preserve throw behavior in WorktreeManager.currentBranch delegation
- Add GitOps unit tests (17 tests) and update poller tests

* Handle remaining edge cases

* Fix branch stripping
2026-02-27 14:02:21 +00:00
Catriel Müller bb4defe5e6 fix(ci): add GH_REPO env var to publish workflow steps 2026-02-27 11:01:43 -03:00
Joshua Lambert 9a5695d9d8 Merge pull request #6424 from Kilo-Org/docs/jl-improve-tabs
Allow linking directly to a tab in docs
2026-02-27 08:46:25 -05:00
Marius 0be778baf4 fix(agent-manager): make review toggle button actually toggle (#6447)
* fix(agent-manager): toggle review tab from toolbar

* fix(agent-manager): make review toggle button actually toggle
2026-02-27 13:14:20 +00:00
Marius e77ba3fe9a fix(agent-manager): prevent Cmd+F from breaking webview layout (#6448) 2026-02-27 14:13:47 +01:00
Marius 7e50ba6b8c fix(agent-manager): respect terminal panel visibility during session sync (#6445)
Track panel visibility from panel/terminal commands so switching sessions no longer force-opens a hidden terminal, while preserving automatic terminal switching when the panel is already visible.
2026-02-27 13:37:20 +01:00
Marius ca0222be88 fix(agent-manager): filter sessions by project ID to prevent cross-repo leaks (#6441)
* fix(agent-manager): filter sessions by project ID to prevent cross-repo leaks

* fix: address PR review - reset projectID from all fetches, remove kilocode_change markers

* fix: move project filter before trackedSessionIds guard, extract into tested function

The projectID filter was placed AFTER the trackedSessionIds guard,
making it unreachable — session.created events for untracked sessions
were already blocked before the projectID check could run. Moved the
filter to the top of handleSSEEvent so it runs first.

Extracted isEventFromForeignProject into sse-utils.ts as a pure
function with unit tests covering all event types and edge cases.
2026-02-27 12:34:23 +00:00
Catriel Müller 0ba6c23a5a Merge pull request #6407 from Kilo-Org/refactor/webview-component-folder-structure
refactor(vscode): reorganize webview component folder structure
2026-02-27 08:16:23 -03:00
Catriel Müller d8d86eb96e fix: fix sub agent permissions 2026-02-27 08:09:40 -03:00
Catriel Müllerandkilo-code-bot[bot] e36058172e Update packages/kilo-ui/src/components/message-part.css
Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
2026-02-27 08:09:40 -03:00
Catriel Müller cb08438bc3 fix(test): update model-selector-utils test import path after move to shared/ 2026-02-27 08:09:40 -03:00
Catriel Müller 98100e6f59 refactor(vscode): reorganize webview component folder structure
Move loose root-level components into feature folders and extract
cross-feature reusable components into a shared/ layer:

- components/profile/ — ProfileView + DeviceAuthCard (was at root)
- components/settings/Settings.tsx — moved from root into settings/
- components/shared/ — ModelSelector, ModeSwitcher, ThinkingSelector,
  WorkingIndicator, model-selector-utils (extracted from chat/)

Fixes the cross-folder coupling where settings/ProvidersTab and
agent-manager/ imported from chat/ for reusable selector components.
Update all import paths in App.tsx, PromptInput, MessageList,
ProvidersTab, AgentManagerApp, MultiModelSelector, and settings/index.ts.
2026-02-27 08:09:40 -03:00
Catriel Müller 691761aa15 fix: turn summary changes 2026-02-27 08:09:39 -03:00
Catriel Müller f010106c4b refactor: improve tool calls ui 2026-02-27 08:09:39 -03:00
Catriel Müller e0c5ddd454 fix: question-answers padding 2026-02-27 08:09:39 -03:00
Catriel Müller 6140f5560b refactor: vscode chat view 2026-02-27 08:09:39 -03:00
Marius e99668d31e fix: exclude github.com from lychee link checks (#6434)
GitHub URLs cause persistent HTTP/2 protocol errors when checked
from GitHub Actions runners, failing the CI with 27 false-positive
broken link errors. These are first-party URLs we control and are
not actually broken.
2026-02-27 09:29:42 +00:00
Imanol Maiztegui 1e04fbff55 Merge pull request #6427 from Kilo-Org/feat/autocomplete-add-orgs
Pass orgId to Autocomplete requests
2026-02-27 09:01:33 +01:00
Imanol Maiztegui ec4ad412eb feat(gateway): pass organization context to FIM autocomplete reqs 2026-02-27 08:16:17 +01:00
Josh Lambert 42092312cf Fix scrolling on mobile 2026-02-27 01:09:36 -05:00
Josh Lambert 7b2ad4e65e Make a new tab 2026-02-27 01:02:57 -05:00
kilo-maintainer[bot] 206783ca25 release: v7.0.31 v7.0.31 2026-02-27 01:53:55 +00:00
Joshua Lambert 2c6855e636 Merge pull request #6351 from Kilo-Org/jl-fix-preview-doc
Fix extension preview  content showing on other install types
2026-02-26 18:32:02 -05:00
Marius 71cef2267b Fix agent manager diff viewer collapse and scroll reset (#6406)
* Fix file view collapse regressions

* Fix agent manager diff viewer collapse and scroll reset bugs

Reset openInit flag when switching sessions via a new sessionKey prop so
diff files auto-expand for each session instead of staying collapsed.

Stabilize diff data references during 2.5s polling to prevent <For> from
tearing down and rebuilding <Diff> components, which destroyed scroll
position. Guard setOpen in the auto-open effect to skip updates when the
file list is unchanged.

* remove package.json
2026-02-26 23:37:22 +01:00
Josh Lambert 919481c13b Make a new tab 2026-02-26 17:37:01 -05:00
Igor Šćekić 5f2a5c6906 Merge pull request #6139 from Phoen1xCode/feat/profile-back-button 2026-02-26 20:29:40 +01:00
Igor Šćekić 12964b816d Merge branch 'main' into feat/profile-back-button 2026-02-26 20:24:18 +01:00
Igor Šćekić 584d67e15d Merge pull request #6415 from Kilo-Org/fix-caret-sync 2026-02-26 20:02:49 +01:00
Igor Šćekić 5b53c5a965 refactor(chat): simplify ghost text rendering by inlining into highlight overlay
Replace the separate ghost text overlay div with an inline span inside
the existing highlight overlay. Remove the dedicated `ghostRef`,
scroll-sync logic, and associated CSS classes (`prompt-input-ghost-overlay`,
`prompt-input-ghost-hidden`). Adjust padding on the highlight overlay and
textarea to accommodate the ghost text span in the same layout flow.
2026-02-26 19:57:13 +01:00
Igor Šćekić d13a2a7cf6 fix(chat): fix ghost text overlay positioning for caret sync
Move ghost text into a separate absolutely-positioned overlay div that
mirrors the textarea's scroll position, replacing the previous inline
span approach. Add a hidden span to offset the visible ghost text to
the correct position after the current input, ensuring the ghost text
stays aligned with the caret regardless of scroll state.
2026-02-26 19:32:51 +01:00
Igor Šćekić 67760f533f fix(chat): add display block to prompt input ghost wrapper 2026-02-26 19:22:09 +01:00
Christiaan Arnoldus 86a255509d Merge pull request #6344 from Kilo-Org/session/agent_c5400014-aac1-472a-9ef3-0ae6308637fe
fix: restore Claude tool call ID normalization from upstream
2026-02-26 16:45:07 +01:00
Joshua Lambert ae61baa33c Merge pull request #6375 from Kilo-Org/jl-fix-cli-mcp-docs
Fix CLI MCP docs
2026-02-26 10:44:43 -05:00
kilo-maintainer[bot] 3b3a165a27 chore: update nix node_modules hashes 2026-02-26 15:39:58 +00:00
Josh Lambert 51f181a892 Remove incorrect line about vscode 2026-02-26 10:36:36 -05:00
Josh Lambert 45e6960868 Swap to markdoc formatting 2026-02-26 10:35:19 -05:00
214088a327 Detailed updates to the KiloClaw docs (#6366)
* Move to multiple pages for KiloClaw

* Add a lot more details about how it all works

* Update packages/kilo-docs/pages/automate/kiloclaw/control-ui.md

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>

* Update packages/kilo-docs/pages/automate/kiloclaw/overview.md

Co-authored-by: Florian Hines <florian@kilocode.ai>

* Update packages/kilo-docs/pages/automate/kiloclaw/overview.md

Co-authored-by: Florian Hines <florian@kilocode.ai>

* Update packages/kilo-docs/pages/automate/kiloclaw/overview.md

Co-authored-by: Florian Hines <florian@kilocode.ai>

* Update packages/kilo-docs/pages/automate/kiloclaw/control-ui.md

Co-authored-by: Florian Hines <florian@kilocode.ai>

* Update packages/kilo-docs/pages/automate/kiloclaw/troubleshooting.md

Co-authored-by: Florian Hines <florian@kilocode.ai>

* Control UI update warning

* Add beta note

* Updated a few other values

---------

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
Co-authored-by: Florian Hines <florian@kilocode.ai>
2026-02-26 15:34:09 +00:00
Christiaan Arnoldus 02e377a853 Merge pull request #6402 from Kilo-Org/christiaan/update-openrouter-package
Update OpenRouter package
2026-02-26 16:31:47 +01:00
Marius 51aac1ff8b Revert "Detect and remove externally deleted worktrees from agent manager (#6361)" (#6401) 2026-02-26 15:28:25 +00:00
Christiaan Arnoldus 8c7cd9eb2c Update OpenRouter package
so we get the patch hopefully maybe?
2026-02-26 16:21:16 +01:00
Christiaan Arnoldus cc8ec8cbed Merge pull request #6398 from Kilo-Org/chrarnoldus-patch-1
Update default models
2026-02-26 15:39:12 +01:00
Christiaan Arnoldus 9d4300dd22 Update default models 2026-02-26 15:33:24 +01:00
Joshua Lambert f7bd5c7af1 Apply suggestion from @lambertjosh 2026-02-26 09:26:16 -05:00
Marius 146922bcc4 Detect and remove externally deleted worktrees from agent manager (#6361)
* detect and remove externally deleted worktrees from agent manager state via polling

* handle rejection in worktree validation polling

* prevent overlapping validation runs and redundant persistence writes

* guard polling startup on panel liveness and fix flush() to drain queued saves

* fix potential infinite loop in flush() when pendingSave is true without active save
2026-02-26 15:04:24 +01:00
Marius 25ac1341fc feat(agent-manager): add fullscreen review tab with shared diff controls (#6387)
* tmp

* merge

* tmp

* fix

* chore(agent-manager): remove fullscreen diff planning spec

* Fix review comments

* Fix scroll position problems and deduplicate code

* fix(agent-manager): restore Cmd+Enter send-all in review panes

* Add tests and fix cmd enter to send all comments

* Add translations

* Fix tranlsations

* Update translations

* Fix tranlsations
2026-02-26 13:59:01 +00:00
Marius dab4ae78fb fix: agent manager terminal follows context when switching to local mode (#6360)
* fix: agent manager terminal follows context when switching to local mode

When switching from a worktree to local mode with a pending tab,
currentSessionID() was undefined causing terminal triggers (Cmd+/ and
button click) to silently do nothing. Added a showLocalTerminal fallback
that opens a terminal at workspace root, and showExistingLocalTerminal
to auto-reveal the local terminal when switching contexts.

* fix: show warning when local terminal has no workspace folder

* refactor: centralize local terminal key in SessionTerminalManager
2026-02-26 14:54:12 +01:00
Christiaan Arnoldus 644579304a Merge pull request #6385 from Kilo-Org/christiaan/prompt
Add family, prompt, variants to the Kilo gateway
2026-02-26 14:32:57 +01:00