Skip to content

fix: Kiro maxBuffer + ToolUse (#230 pt1), robust terminal fit (#259)#264

Merged
vakovalskii merged 1 commit into
mainfrom
fix/kiro-buffer-and-terminal-fit
Jul 21, 2026
Merged

fix: Kiro maxBuffer + ToolUse (#230 pt1), robust terminal fit (#259)#264
vakovalskii merged 1 commit into
mainfrom
fix/kiro-buffer-and-terminal-fit

Conversation

@vakovalskii

Copy link
Copy Markdown
Owner

Kiro — from PR #230 review (part 1, the confirmed mergeable half; @Sean10)

  • Add maxBuffer: 50MB to the scanKiroSessions + loadKiroDetail sqlite3 calls. A large conversations_v2 value exceeds the 1 MB default → the call throws ENOBUFS → the Kiro session list / detail came back empty.
  • Read assistant.ToolUse turns in addition to Response (Kiro now emits ToolUse), so those turns are no longer dropped.

(PR #230's part 2 — the new file-based ~/.kiro/sessions/cli/ format — is left for the contributor to finish, since it still needs wiring into findSessionFile/_buildSessionFileIndex + a UUID guard, per the review.)

Workspace terminal — #259 (Claude Code UI distorts at 2560×1440)

fit.fit() ran synchronously right after term.open(), which can measure a zero-size / not-yet-laid-out host (inactive tab, mid-transition pane); the pty then spawned at the wrong width and garbled full-screen TUIs, most visibly on large / hi-DPI displays. Now: fit only when the host has a real size, defer the initial fit to requestAnimationFrame, and re-fit + push a resize to the pty on ready so xterm and the pty always agree. The ResizeObserver uses the same guarded fit.

Fixes #259. Tests green (0 fail). @dedyyshka — please retest on your 2560×1440 screen after the next release.

🤖 Generated with Claude Code

Kiro (from PR #230 review, part 1 — the confirmed, mergeable half):
- Add maxBuffer (50MB) to the scanKiroSessions + loadKiroDetail sqlite3 calls.
  Without it, a large conversations_v2 value blows past the 1MB default and
  the call throws ENOBUFS, so the Kiro session list / detail came back empty.
- Also read assistant.ToolUse turns (not just Response), which Kiro now emits.

Workspace terminal (#259 — distortion at 2560×1440):
- Fit only when the host has a real size, defer the initial fit to rAF, and
  re-fit + push a resize to the pty on 'ready'. Fitting a zero-size / not-yet-
  laid-out host spawned the pty at the wrong width and garbled full-screen
  TUIs like Claude Code, most visibly on large / hi-DPI displays.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vakovalskii
vakovalskii merged commit f2b77f9 into main Jul 21, 2026
vakovalskii added a commit that referenced this pull request Jul 21, 2026
…it (#265)

Ships #263 (repair stripped GUI PATH so agents are detected when launched
from Finder/Dock) and #264 (Kiro maxBuffer + ToolUse; robust Workspace
terminal fit for large/hi-DPI displays, #259).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Интерфейс Claude Code искажается в терминале Codbash при разрешении 2560×1440

1 participant