Commit Graph

670 Commits

Author SHA1 Message Date
Christiaan Arnoldus 1de8c6f3cd Revert "feat: add x-kilocode-machineid header to API requests" 2026-02-12 23:00:57 +01:00
kilo-maintainer[bot] 324a30e679 chore: generate 2026-02-12 08:01:36 +00:00
Catriel Müller 1eedad9213 Refactor publish workflow and environment variables (#261)
* feat: changelog generation

* refactor: rename all ENV variables to KILO prefix

* refactor: publish rework

* refactor: publish rework

* refactor: unify git commiter action

* refactor: add all kilobots to the team
2026-02-12 09:00:51 +01:00
Catriel Müller 52588386a4 feat: merge opencode v1.1.57 2026-02-11 14:26:25 -03:00
Catriel Müller bc3512892d Merge branch 'dev' into catrielmuller/kilo-opencode-v1.1.55 2026-02-11 11:30:10 -03:00
Catriel Müller 3080736471 Merge pull request #224 from Kilo-Org/catrielmuller/kilo-opencode-v1.1.54
OpenCode v1.1.54
2026-02-11 11:29:51 -03:00
Igor Šćekić aa0e341d04 Merge pull request #155 from Kilo-Org/add-o11y-phase-1b 2026-02-11 12:46:17 +01:00
Igor Šćekić 978fb3d078 refactor(session): use finished flag instead of try/catch for turn close reason
Replace try/catch wrapping ~400 lines with a finished flag pattern to
minimize upstream merge conflicts. Combine multiple kilocode_change
markers into single blocks.

Addresses review feedback from marius-kilocode on PR #155.
2026-02-11 12:36:34 +01:00
Aiden Cline 0fd6f365be fix(core): ensure compaction is more reliable, add reserve token buffer to ensure that input window has enough room to compact (#12924)
Co-authored-by: James Lal <james@littlebearlabs.io>
2026-02-10 19:55:22 -06:00
Catriel Müller 6827756fa1 feat: merge opencode v1.1.55 2026-02-10 22:48:25 -03:00
Catriel Müller f8131c2e00 feat: merge opencode v1.1.54 2026-02-10 22:10:03 -03:00
Christiaan Arnoldus 82de52e6d8 Merge branch 'dev' into feat/add-machineid-header 2026-02-10 22:50:43 +01:00
Igor Šćekić bc2b7d5ea5 Merge branch 'dev' into add-o11y-phase-1b 2026-02-10 21:03:52 +01:00
Dax 8bdf6fa359 fix: show helpful message when free usage limit is exceeded (#13005) 2026-02-10 19:04:10 +00:00
John Fawcett 1762590ff4 feat(opencode): add project ID resolution and tracking
refactor(opencode): improve project ID resolution and normalization
Implement logic to resolve a unique project identifier with priority given
to `.kilocode/config.json` and falling back to the git origin remote URL.
The resolved ID is normalized, cached per-instance, and sent as a header
to the Kilo Gateway provider to enable project-specific tracking.
2026-02-10 12:10:00 -06:00
Adam 659f15aa9b fix(app): no changes in review pane 2026-02-10 11:53:33 -06:00
Marius c8464fbc98 feat: add Kilo soul prompt for consistent personality across all models (#214)
* feat: add Kilo soul prompt for consistent personality across all models

* fix: gate soul prompt behind Codex check to match existing prompt delivery pattern

Codex sessions deliver prompts via options.instructions, not system messages.
Prepend the soul to options.instructions for Codex, and skip it from the
system array, matching how SystemPrompt.provider() is already handled.
2026-02-10 14:03:55 +00:00
Peter Dave Hello 87795384de chore: fix typos and GitHub capitalization (#12852) 2026-02-10 06:53:38 -06:00
kiloconnect[bot] 7ac6852a46 feat: add x-kilocode-machineid header to API requests
Add the x-kilocode-machineid HTTP header to outgoing requests when using
the kilo-gateway. This enables the cloud backend to track machine IDs
in the microdollar_usage_metadata table (Kilo-Org/cloud#90).

The header is set alongside the existing x-kilocode-mode header when
the model API uses @kilocode/kilo-gateway.
2026-02-10 10:00:17 +00:00
Surma 832902c8e3 fix: publish session.error event for invalid model selection (#8451) 2026-02-09 16:27:48 -06:00
Aiden Cline 8ad4768ecd tweak: adjust agent variant logic to not require exact match on model, and instead check if the variant is available for model (#12838) 2026-02-09 11:00:06 -06:00
Catriel Müller 50121e0e20 feat: merge opencode v1.1.53 2026-02-09 13:07:23 -03:00
Igor Šćekić cb84cb0439 fix(session): align close reason type and publish turn close reliably
Unify ingest queue and session close reasons via `Session.CloseReason` and
ensure `TurnOpen`/`TurnClose` publishing is awaited; mark close reason as
`error` on unexpected exceptions and handle abort-induced stops correctly.

Add ingest queue tests for stable-key coalescing of session open/close and for
including `?v=1` on flush requests.
2026-02-09 13:58:09 +01:00
Aiden Cline 99ea1351ce tweak: add new ContextOverflowError type (#12777) 2026-02-08 23:54:01 -06:00
Aiden Cline 62f38087b8 fix: parse mid stream openai responses style errors to prevent infinite retries for errors that should STOP execution (#12768) 2026-02-08 20:55:41 -06:00
Shantur Rathore a486b74b14 feat(core): Set variant in assistant messages too (#12531)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-02-06 16:33:47 -06:00
Khang Ha (Kelvin) fde0b39b7c fix: properly encode file URLs with special characters (#12424) 2026-02-06 16:16:56 -06:00
Igor Šćekić 4a179f85c0 fix(session): mark turn close reason as interrupted on abort 2026-02-06 23:16:11 +01:00
opencode-agent[bot] e767801db2 chore: generate 2026-02-06 22:14:34 +00:00
Goni Zahavy def907ae4b fix(opencode): SessionPrompt.shell() now triggers loop if messages are queued (#10987) 2026-02-06 16:13:11 -06:00
Igor Šćekić 6ba626be19 fix(session): set turn close reason on abort/error
Ensure TurnClose is published with an accurate reason by marking aborted
turns as "interrupted" and stop-with-error turns as "error".
2026-02-06 23:02:51 +01:00
Igor Šćekić de05fea01b feat(session): track turn open/close in kilo ingest
Add session.turn.open and session.turn.close bus events and publish them
from the prompt loop with a close reason (completed/error/interrupted).
Extend the ingest queue to sync session_open/session_close items and
version the ingest endpoint with ?v=1.
2026-02-06 23:00:49 +01:00
Mariam Jabara 95ad6758af feat: add specific system prompt for Trinity model (#12144)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 11:43:10 -06:00
Dax a45841396f core: fix unhandled errors when aborting with queued messages (#12369) 2026-02-05 22:27:27 +00:00
Catriel Müller eb213cb635 feat: merge opencode v1.1.52 2026-02-05 16:43:43 -03:00
Catriel Müller f137ce623d feat: merge opencode v1.1.51 2026-02-05 09:50:16 -03:00
Zhiming Guo 72de9fe7a6 fix(opencode): Fixes image reading with OpenAI-compatible providers like Kimi K2.5. (#11323)
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
2026-02-05 01:54:07 -06:00
Catriel Müller dd7da05bd9 feat: merge opencode v1.1.50 2026-02-04 18:24:00 -03:00
Catriel Müller 452320af42 feat: merge opencode v1.1.49 2026-02-04 17:06:38 -03:00
Catriel Müller 1a0b0077dc feat: merge opencode v1.1.48 2026-02-04 14:48:20 -03:00
Catriel Müller e4163a0ff0 feat: merge opencode v1.1.46 2026-02-04 13:46:48 -03:00
Adam 1721c6efdf fix(core): session errors when attachment file not found 2026-02-04 10:21:03 -06:00
Łukasz Gładysz 6daa962aaa fix: prioritize OPENCODE_CONFIG_DIR for AGENTS.md (#11536) 2026-02-04 01:35:22 +00:00
Aiden Cline b5a4671c64 Revert "feat: add Trinity model system prompt support" (#12029) 2026-02-03 16:39:03 -06:00
Mariam Jabara 015cd404e4 feat: add Trinity model system prompt support (#12025)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-03 16:33:27 -06:00
Tyler Gannon a30696f9bf feat(plugin): add shell.env hook for manipulating environment in tools and shell (#12012) 2026-02-03 15:18:41 -06:00
Aiden Cline b7b734f51f fix: ensure mcp tools are sanitized (#11984) 2026-02-03 12:22:00 -06:00
Igor Šćekić 5e729cd4f7 Merge branch 'dev' into add-auto-model 2026-02-03 14:26:28 +01:00
Catriel Müller 9ab79857ce Code Agent (#84)
* refactor: rename build agent to code

* refactor: add backward compat for build config
2026-02-03 08:04:27 +01:00
Igor Šćekić b8daf18f39 feat(llm): send x-kilocode-mode header for gateway 2026-02-03 00:29:35 +01:00