Beetroot v1.6.2 — The Truncation Bug
A hotfix for v1.6.1's content truncation — AI transforms, preview, and copy were silently working with partial text. Plus Alt+T toggle and filter count fixes.
Remember the v1.6.1 performance fix where search results were truncated to 200 characters? Turns out I missed a few places that still used the truncated data.
At a glance:
- Fixed truncated content in AI transforms — quick-access prompts (Fix Grammar, Summarize, etc.) from the right-click menu received 200 characters instead of full text
- Fixed truncated preview — preview showed partial content with wrong line/char counts
- Fixed Alt+T toggle — pressing Alt+T twice now closes the transform menu instead of doing nothing
- Fixed Apps filter count — dropdown showed total count per app, ignoring the active type filter
The truncation bug
v1.6.1 added content truncation to search results — the list view only needs the first 200 characters to display a preview, so sending full content (which can be megabytes of HTML from browser copies) was wasteful. The fix worked great for performance.
The problem: several code paths still grabbed item.content directly from the search results instead of fetching the full item from the database. These paths silently worked with 200 characters:
- AI quick-access prompts — right-click a clip, choose "Fix Grammar" or "Summarize" from the context menu. The AI received a truncated snippet instead of your full text. The result looked fine if your clip was short, but anything longer than 200 characters was quietly cut off.
- Preview panel — the preview header showed "34 chars" when the full clip had 3,400. Copy from preview copied truncated text.
- Preview arrow navigation — navigating between clips in preview fetched full content for the first clip but used truncated data for subsequent ones.
The fix: every path that needs full content now calls dbGetItem() first. Search results are treated as display-only data — if you want to do anything meaningful with a clip (paste, transform, preview, copy), you fetch the real thing.
Alt+T toggle
Pressing Alt+T opens the transform menu. Pressing Alt+T again should close it — but it didn't. The overlay guard that prevents accidental actions during overlays was also blocking the "close this overlay" action. Now Alt+T passes through the guard in both focused and no-focus modes.
Apps filter count
The Apps dropdown in the filter bar showed total counts per application. If you had 500 clips from Chrome and filtered to "Images", the dropdown still said "Chrome (500)" even though only 12 of those were images. Now the count reflects the active type filter.
How to update
Beetroot will offer to update automatically. Or download v1.6.2 from GitHub.