Commit Graph

29807 Commits

Author SHA1 Message Date
kirillk 921bce7cca fix(jetbrains): harden diagram rendering fallbacks and logging
Diagram rendering degraded to the mermaid source correctly for engine
refusals, but three paths could not recover and none of them left a trace
in the log.

Log every failure. An engine crash was converted to a Fault.Internal
carrying only err.message, discarding the throwable, so a parser or layout
bug reached the user as an unactionable red label and left nothing to
report. It now logs with the stack trace, as does a failing completion
callback and a failed image allocation.

Close the fallback holes. The completion callback ran unguarded inside the
render coroutine, so a failure in it was reported as a plugin error and
left the block pending forever. Painters.of used first {}, turning a future
art type without a painter into an exception in both paint and sizing.
Painting itself was unguarded, and by the time it runs the source pane is
already hidden, so a failure left a blank surface with no way back; paint
failures now hand a fallback to the owner, which restores the source.
diagramImage allocated 2x the scene with no ceiling, and Limits caps the
model rather than the geometry, so a legal diagram could ask for a
multi-gigabyte raster on the EDT the moment someone pressed copy.

Bound the work that limits did not cover. Cancellation is only checked
between lines, so one line needed its own cap, and per-index open/quote
scanning is replaced by a single pass because it made a long line
quadratic. FlowMarks was the only phase with no cancellation point at all
and resolved frame members by recursing per cluster, rescanning every node
each time; it now resolves bounds and depth in one reverse pass. The
remaining FlowLayout phases gained per-iteration checks, and a wall clock
ceiling ends a render that outlasts its cooperative checks as a limit
fault instead of an endless "rendering" state.

Unsupported diagram types now read as a muted note rather than an error.
classDiagram, stateDiagram and friends are valid mermaid this engine does
not draw, and marking each one red reported working markdown as broken.
2026-08-27 16:27:43 -04:00
kirillk 4801e43127 fix(jetbrains): use standard diagram toolbar icons 2026-08-27 14:18:00 -04:00
kirillk 0ee530d85a fix(jetbrains): refine diagram viewer interactions 2026-08-27 14:04:08 -04:00
kirillk 54b7225c4d fix(jetbrains): repair diagram viewer controls 2026-08-27 13:30:31 -04:00
kirillk dedd439bef feat(jetbrains): open diagrams in editor tabs 2026-08-27 09:38:58 -04:00
kirillk c0773eb77d fix(jetbrains): detect corrupt IDE extractions 2026-08-26 14:29:58 -04:00
kirillk 4ee3b8f4c1 Merge remote-tracking branch 'origin/main' into mighty-acorn 2026-08-26 13:46:35 -04:00
kilo-maintainer[bot] 2a16b871a0 release: v7.5.4 v7.5.4 2026-08-26 17:39:00 +00:00
kilo-maintainer[bot] 29b3315aa0 chore: update nix node_modules hashes 2026-08-26 17:13:24 +00:00
kilo-maintainer[bot] 89b7561c13 release: v7.5.3 v7.5.3 2026-08-26 17:11:02 +00:00
kirillk 83ec1b33df fix(jetbrains): harden mermaid parsing, limits and sequence layout
Addresses PR review on the mermaid diagram engine:

- Share AwtMeasure safely. The engine service holds one instance and draws
  off the EDT on the default dispatcher, so the font cache is now a
  ConcurrentHashMap. The Graphics2D that had no dispose() is already gone.
- Refuse pathological sources earlier. A character cap is checked before any
  preprocessing, node and link caps are enforced while the model is built so
  `A & B & ... --> ...` cannot expand first, and both parsers check
  cancellation per line. The `%%{...}%%` mask is a linear scan instead of a
  lazy regex that rescanned to end-of-text per unterminated opener, and the
  message regex can no longer backtrack over a colon-free line.
- Assign subgraph membership on re-mention. `Client --> Gateway` followed by
  `subgraph core` / `Gateway --> Auth` now puts Gateway inside the frame,
  which is how mermaid reads it.
- Report sequence scene size from glyph extents, not anchors, so a
  left-anchored self-message label is inside the bounds a renderer clips to.
- Close activations left open at the end of a script, so `A->>+B: hi` with no
  matching deactivate still draws its bar.
- Parse participant ids through unquote and match ` as ` case-insensitively
  outside quotes, so `participant "Alice"` and `PARTICIPANT C AS Client`
  resolve to one column.

assertInBounds now checks text extents rather than anchors, so this class of
overflow fails in tests instead of clipping at paint time.
2026-08-26 13:01:26 -04:00
Marius b0c5bb251e Merge pull request #13481 from Kilo-Org/fix-cli-bun-rollback
fix(cli): roll back Bun 1.4
2026-08-26 18:46:08 +02:00
marius-kilocode b269adb61c chore: retrigger CI 2026-08-26 18:23:10 +02:00
marius-kilocode cb4abf4327 chore(cli): restore Bun 1.3 build rationale 2026-08-26 17:07:26 +02:00
marius-kilocode 42a63663bf fix(cli): roll back Bun 1.4 2026-08-26 16:49:04 +02:00
Marius 362aaad2ba Merge pull request #13474 from Kilo-Org/fix-prerelease-pty-smoke
fix(cli): stabilize packaged PTY smoke test
2026-08-26 16:21:22 +02:00
marius-kilocode 9fa0c0a994 test(core): stabilize PTY exit ownership 2026-08-26 16:09:59 +02:00
marius-kilocode e84e232e20 fix(cli): stabilize packaged PTY smoke test 2026-08-26 16:00:56 +02:00
Marius 4282d1364a Merge pull request #13472 from Kilo-Org/fix-kilo-startup-black-screen
fix(cli): restore terminal startup
2026-08-26 15:48:56 +02:00
Kirill Kalishev 4032c39079 Merge pull request #13470 from Kilo-Org/fix/jetbrains-deleted-session-activity-snapshot
fix(jetbrains): prune deleted sessions in the merged activity snapshot
2026-08-26 09:40:51 -04:00
marius-kilocode 7b9a84f63a fix(cli): restore terminal startup 2026-08-26 15:39:23 +02:00
kirillk 17bef75509 fix(jetbrains): prune deleted sessions in the merged activity snapshot
activitySnapshot() merged statuses and activity, two StateFlows that each
prune the removed-session set through their own collector. After a delete,
one flow can still carry the session while the other has already dropped
it, so the snapshot briefly reported a deleted session as RUNNING and any
consumer reading it at that moment rendered a stale badge.

Subtract the removed set in the snapshot itself so the merged view is
consistent regardless of collector ordering, and wait on both flows in the
test that asserts every activity kind, which had the same latent race.

This fixes the flaky KiloSessionServiceTest failure on main.
2026-08-26 09:28:41 -04:00
kilo-maintainer[bot] 96388f9e2f chore: update nix node_modules hashes 2026-08-26 13:21:59 +00:00
Andrea Giammarchi 82ec63727a Merge pull request #13464 from Kilo-Org/fix/mermaid-security-update
fix(security): Mermaid updated due dependabot warnings
2026-08-26 15:13:56 +02:00
kilo-maintainer[bot] 4229f698c7 chore: update nix node_modules hashes 2026-08-26 12:42:53 +00:00
Andrea Giammarchi fe6ef12859 Merge pull request #13465 from Kilo-Org/fix/dompurify-security-update
fix(security): DOMPurify updated due dependabot warnings
2026-08-26 14:31:45 +02:00
webreflection e4003da9e1 fix(security): Mermaid updated due dependabot warnings 2026-08-26 14:20:50 +02:00
webreflection 4e38e0c2e4 fix(security): update DOMPurify to 3.4.13 to fix dependabot warnings 2026-08-26 14:18:08 +02:00
Marius 3c2bc841c7 Merge pull request #13463 from Kilo-Org/investigate-kilo-crowdstrike-high-cpu
fix(agent-manager): reduce background Git and GitHub process churn
2026-08-26 14:11:24 +02:00
Marius d8815eb51e Merge pull request #13459 from Kilo-Org/fix-worktree-session-metadata
fix(agent-manager): restore promoted session metadata
2026-08-26 14:02:27 +02:00
marius-kilocode d9f066556a fix(agent-manager): harden GitHub CLI fallback and check status 2026-08-26 13:58:26 +02:00
marius-kilocode 743fafce09 fix(agent-manager): reduce background Git and GitHub process churn 2026-08-26 13:29:39 +02:00
kilo-maintainer[bot] ed3380ea49 release: v7.5.0 v7.5.0 2026-08-26 11:03:25 +00:00
marius-kilocode f9606d8def fix(agent-manager): restore promoted session metadata 2026-08-26 12:59:59 +02:00
Marius b6e6d9df83 Merge pull request #13458 from Kilo-Org/fix-review-followup-message-spacing
fix(vscode): space review follow-up messages
2026-08-26 12:36:48 +02:00
kilo-maintainer[bot] 92ad04da4c chore: update kilo-vscode visual regression baselines 2026-08-26 10:33:43 +00:00
marius-kilocode b925f25a1a fix(vscode): space review follow-up messages 2026-08-26 12:29:58 +02:00
Marius 06bd7ef882 Merge pull request #13457 from Kilo-Org/fix-chat-scroll-user-intent
fix(vscode): preserve chat scroll intent
2026-08-26 12:29:47 +02:00
marius-kilocode c880daf764 fix(vscode): preserve chat scroll intent 2026-08-26 12:14:46 +02:00
Marius 6b4370b3b7 Merge pull request #13456 from Kilo-Org/revert-diff-viewer-performance-fixes
revert(agent-manager): remove diff batching regression
2026-08-26 11:41:30 +02:00
marius-kilocode 24cf297c80 Revert "Merge pull request #13449 from Kilo-Org/perf/agent-manager-bulk-diff-details"
This reverts commit f78d736e97, reversing
changes made to 7834f9308e.
2026-08-26 11:20:49 +02:00
Marius 472c301da2 Merge pull request #13454 from Kilo-Org/evaluate-agent-manager-panel-defaults
fix(ci): skip unsupported PTY smoke targets
2026-08-26 11:15:23 +02:00
Andrea Giammarchi 98278ab411 Merge pull request #13453 from Kilo-Org/kilo-local-settings
fix(vscode): remove top-level Auto-Approve permission on onboarding
2026-08-26 11:14:56 +02:00
marius-kilocode d6bc417a94 fix(ci): skip unsupported PTY smoke targets 2026-08-26 11:01:36 +02:00
webreflection 6722ea600e fix(vscode) Removed top level Auto-Approve permission on onboarding 2026-08-26 10:56:40 +02:00
Marius 3725fb488e Merge pull request #13435 from Kilo-Org/simplify-manual-abort-warning
refactor(vscode): simplify manual interruption handling
2026-08-26 10:56:38 +02:00
marius-kilocode 9e04b37f74 fix(agent-manager): surface worktree transfer abort errors 2026-08-26 10:54:49 +02:00
Marius 80d5353fb4 Merge pull request #13448 from Kilo-Org/fix-cli-errors-on-project-switching
fix(agent-manager): prevent false GitHub CLI warnings on project switches
2026-08-26 10:49:35 +02:00
Marius cf7a0023a6 Merge pull request #13450 from Kilo-Org/investigate-agent-manager-false-stops
fix(vscode): prevent completed sessions from staying busy
2026-08-26 10:33:48 +02:00
Marius f78d736e97 Merge pull request #13449 from Kilo-Org/perf/agent-manager-bulk-diff-details
fix(agent-manager): batch worktree diff details
2026-08-26 10:30:04 +02:00