Commit Graph

10238 Commits

Author SHA1 Message Date
Igor Šćekić 6fa046e1d9 fix: collapse checkbox-content wrapper to remove excess height in todos 2026-02-18 17:35:41 +01:00
Igor Šćekić 4f0bce7fab fix: reduce todo label line-height to normal 2026-02-18 17:30:46 +01:00
Igor Šćekić 797d737eff fix: tighten spacing between todo items and restore defaultOpen 2026-02-18 17:28:40 +01:00
Igor Šćekić 04fbc043bf fix: collapse todo blocks by default to reduce wasted space 2026-02-18 17:20:04 +01:00
Igor Šćekić 01363014ce fix: reduce todo block padding to remove wasted space 2026-02-18 17:06:25 +01:00
Igor Šćekić 90fe14e512 Merge pull request #426 from Kilo-Org/feat/vscode-image-paste
feat(vscode): image paste and drag-and-drop in chat input
2026-02-18 16:26:09 +01:00
Igor Šćekić c1f2f3425a chore: resolve merge conflict with dev in PromptInput.tsx
Preserve upstream worktree-mode routing (agentManager.createWorktreeSession)
while keeping our allFiles merge of mention + image attachments.
2026-02-18 16:11:10 +01:00
Igor Šćekić ff2f326d67 fix(vscode): remove unused imports and always preventDefault in handleDrop
- Remove onCleanup and onMount imports (unused)
- Move event.preventDefault() before early returns in handleDrop to
  prevent browser navigation when non-image files are dropped
2026-02-18 16:08:53 +01:00
kilo-maintainer[bot] 3f9b540e92 chore: update nix node_modules hashes 2026-02-18 15:03:49 +00:00
kilo-maintainer[bot] 18ca6ef192 chore: generate 2026-02-18 14:56:46 +00:00
Kevin van Dijk 9ef1bb3030 Merge pull request #425 from Kilo-Org/kevinvandijk/kilo-opencode-v1.1.61
OpenCode v1.1.61
2026-02-18 15:55:58 +01:00
Kevin van Dijk 6824d6722c Merge branch 'dev' into kevinvandijk/kilo-opencode-v1.1.61 2026-02-18 15:44:25 +01:00
Kevin van Dijk f3f82fb65a Resolve merge conflicts 2026-02-18 15:43:38 +01:00
Igor Šćekić 3cd8a7df2a feat(vscode): add CSS for image attachment thumbnails and drag-and-drop indicator 2026-02-18 15:42:05 +01:00
Igor Šćekić 570375b7ae feat(vscode): integrate image paste and drag-and-drop into PromptInput
- Add onPaste handler to textarea via useImageAttachments hook
- Add drag-and-drop handlers to the container
- Render image thumbnail strip above the textarea
- Allow sending with images but no text (image-only messages)
- Clear image attachments after send
2026-02-18 15:41:36 +01:00
Igor Šćekić 8b6cd36abd feat(vscode): add useImageAttachments hook for paste and drag-and-drop 2026-02-18 15:40:36 +01:00
Igor Šćekić a02657d2f4 feat(vscode): allow data: URIs in sendMessage file attachments
Zod validation previously rejected non-file:// URLs, blocking
clipboard-pasted images which arrive as data: URIs.
2026-02-18 15:40:12 +01:00
kilo-maintainer[bot] 267eb13c8e chore: update nix node_modules hashes 2026-02-18 14:34:52 +00:00
kilo-maintainer[bot] 9e880b7aa1 chore: update nix node_modules hashes 2026-02-18 14:33:57 +00:00
kilo-maintainer[bot] 76a073b551 chore: generate 2026-02-18 14:28:26 +00:00
Kevin van Dijk 049375110b Merge pull request #422 from Kilo-Org/kevinvandijk/kilo-opencode-v1.1.60
OpenCode v1.1.60
2026-02-18 15:26:36 +01:00
Marius 4b7e20bc21 feat(vscode): add git worktree support for agent manager sessions (#418)
* feat(vscode): add git worktree support for agent manager sessions

* test(vscode): add WorktreeManager unit and integration tests

* refactor(vscode): address review — extract branch-name, shared SessionMode type, remove premature delete handling

* refactor(vscode): pass directory through handler chain, fix listener leak, add cleanup regression tests

- Remove messageDirectory class field; pass dir as parameter to all handler methods
- Only trust directory override when onBeforeMessage interceptor is attached
- Add proper type for CreateWorktreeSessionRequest, remove `as any` cast
- Fix onMessage listener leak with onCleanup in AgentManagerApp
- Use removeWorktree() for pre-creation cleanup instead of inline fs.rm
- Add regression tests for orphaned directory removal and cleanup before re-creation

* refactor(vscode): bind directory to session not message, fix duplicate import

- KiloProvider: add sessionDirectories map and setSessionDirectory()
- getWorkspaceDirectory() resolves by sessionId lookup instead of per-message override
- Remove dir param from all 18 handler methods — they resolve directory from their sessionId
- AgentManagerProvider: call setSessionDirectory() at session creation and recovery
- Remove directory injection from message interceptor (interceptor only routes custom messages)
- Fix duplicate ExtensionMessage import in AgentManagerApp.tsx
- Forward agent param in worktree session creation

* fix: update stale docstring in AgentManagerProvider

* fix: path guard on rm, clean up sessionDirectories on delete/dispose, track recovered sessions for SSE, log metadata write failures

* fix: recover worktree sessions on restart by merging worktree directories into loadSessions

- handleLoadSessions fetches sessions from all registered worktree directories
  and merges them into the response (deduped by session ID)
- recoverWorktrees result is awaited by the interceptor before loadSessions
  passes through, ensuring sessionDirectories are populated first
- Fixes: worktree sessions disappearing after VS Code restart

* fix: non-blocking worktree recovery — refresh session list after discovery instead of blocking loadSessions

* fix: don't retry with new branch when existingBranch was requested
2026-02-18 14:25:11 +00:00
Igor Šćekić b3a470a4b3 Merge pull request #397 from Kilo-Org/feature/vscode-at-file-mention
feat(vscode): @ file mention with dropdown and file chips
2026-02-18 14:51:30 +01:00
Igor Šćekić 7ee51be50a fix(vscode): normalize Windows paths in file mention URL construction 2026-02-18 14:45:45 +01:00
Kevin van Dijk 217f56f58f refactor: kilo compat for v1.1.61 2026-02-18 13:32:24 +01:00
Kevin van Dijk 6f9f7443ef Resolve merge conflicts 2026-02-18 13:26:43 +01:00
Igor Šćekić 847367b1f0 Merge branch 'dev' into feature/vscode-at-file-mention
# Conflicts:
#	packages/kilo-vscode/webview-ui/src/components/chat/PromptInput.tsx
2026-02-18 13:15:45 +01:00
Igor Šćekić 78579cafd5 fix(vscode): address review feedback on @ file mention
- send empty fileSearchResult when httpClient is null so dropdown closes instead of hanging
- remove m flag from AT_PATTERN so $ anchors to end-of-string not end-of-line
- don't swallow Enter when mention dropdown is open but results are empty
- remove unused pos variable in buildHighlightSegments
2026-02-18 12:56:22 +01:00
Kevin van Dijk 53dea6e1e0 refactor: kilo compat for v1.1.60 2026-02-18 12:53:03 +01:00
kilo-maintainer[bot] 726f933c18 chore: generate 2026-02-18 11:51:41 +00:00
Kevin van Dijk 70d23af99b Merge pull request #372 from Kilo-Org/kevinvandijk/kilo-opencode-v1.1.59
OpenCode v1.1.59
2026-02-18 12:50:59 +01:00
Marius 1e68058f5c docs: add no-empty-catch-blocks rule to style guide (#419) 2026-02-18 12:38:28 +01:00
Kevin van Dijk 2c86299d45 Merge branch 'dev' into kevinvandijk/kilo-opencode-v1.1.59 2026-02-18 12:37:54 +01:00
Kevin van Dijk d4bbfb679f Skip test on windows for now 2026-02-18 12:36:13 +01:00
Igor Šćekić 315c0fa95e fix(vscode): construct valid file:// URL from relative paths using workspace dir 2026-02-18 12:35:51 +01:00
Igor Šćekić e714e5f36f fix(vscode): invalidate in-flight autocomplete request on send 2026-02-18 12:09:20 +01:00
Igor Šćekić 05522f4090 fix(vscode): adjust textarea height after file mention selection 2026-02-18 12:02:07 +01:00
Igor Šćekić 5ebec98afa fix(vscode): suppress ghost text and autocomplete while mention dropdown is open 2026-02-18 12:00:41 +01:00
Igor Šćekić d4e0c4dfee fix(vscode): position file mention dropdown absolutely above input 2026-02-18 11:53:12 +01:00
Marian Alexandru Alecu e8895d6217 Merge pull request #360 from Kilo-Org/feat/review-apply-fixes
feat: Add one-click apply fixes suggestions to review mode
2026-02-18 12:47:29 +02:00
Marius 3b077612c4 feat(vscode): add Cmd+Up/Down session navigation in Agent Manager (#412)
Register proper VS Code commands and keybindings scoped to the Agent
Manager panel so users can navigate between sessions with Cmd+Up/Down
(Ctrl+Up/Down on Windows/Linux). Shortcuts are discoverable in the
Command Palette and configurable via Keyboard Shortcuts UI.
2026-02-18 10:32:45 +00:00
Igor Šćekić aa287f27bf feat(vscode): inline @file mention with highlight overlay instead of chips 2026-02-18 11:32:31 +01:00
Marius 5207fa695e feat(kilo-vscode): per-session model and agent mode selection (#392)
Make agent/mode selection per-session in SessionProvider so each Agent
Manager session carries its own ephemeral model and agent choice.

- Add agentSelections map to SessionStore (mirrors modelSelections)
- Replace global selectedAgentName signal with per-session memo
- Add pendingAgentSelection for pre-session agent selection
- Transfer pending agent to new session in handleSessionCreated
- Clean up agentSelections on session delete, reset on clear/create
- Extract ModeSwitcherBase reusable component (matches ModelSelectorBase)
- Add getSessionAgent/getSessionModel accessors to context
2026-02-18 10:28:57 +00:00
Marius 10fc19b6a1 fix(kilo-vscode): make prompt input per-session in agent manager (#416)
* fix(kilo-vscode): make prompt input per-session in agent manager

The PromptInput text was stored in a single shared signal, causing
input content to leak between sessions when switching. Store drafts
in a module-level Map keyed by session ID so each session maintains
its own independent input state.

* fix(kilo-vscode): use explicit dependency tracking in session draft effect

Use on(sessionKey, ...) with untrack(text) so the effect only fires
on session switches, not on every keystroke. Fixes a bug where typing
after a session switch would overwrite user input with the stale draft.
2026-02-18 11:28:19 +01:00
Marius 480c2d1e64 docs(kilo-vscode): add concise Agent Manager section to AGENTS.md (#391)
* docs(kilo-vscode): add concise Agent Manager section to AGENTS.md

* Simplify
2026-02-18 11:27:41 +01:00
Marian Alexandru Alecu 40c412fea2 Merge branch 'dev' into feat/review-apply-fixes 2026-02-18 12:18:12 +02:00
Marius 1e416511e6 test(kilo-vscode): add architecture tests for agent manager CSS prefix and consistency (#393)
Validate that all CSS classes, custom properties, and keyframes in
agent-manager.css use the am- prefix to avoid webview naming collisions.
Also verify CSS/TSX consistency: no undefined classes used in the
component and no dead CSS left in the stylesheet.
2026-02-18 11:16:53 +01:00
Marius 44af8458df fix(kilo-vscode): sort agent manager sessions by created date instead of updated date (#394)
Sort sessions by createdAt only in the agent manager, keeping the
default updatedAt sort for the sidebar session list and recent sessions.
This prevents agent manager sessions from reordering when edited.
2026-02-18 11:16:34 +01:00
Igor Šćekić e2caa75cc0 Merge branch 'dev' into feature/vscode-at-file-mention 2026-02-18 11:12:15 +01:00
Alex Alecu 9d43ad40f9 fix: Update translations 2026-02-18 12:06:20 +02:00